<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-26801181.post7359136421409554779..comments</id><updated>2009-09-06T19:55:49.095+02:00</updated><title type='text'>Comments on Programación PL/SQL y bases de datos Oracle: Triggers en PL/SQL</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.plsql.biz/feeds/7359136421409554779/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default?start-index=26&amp;max-results=25'/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-26801181.post-7540534443895360248</id><published>2009-09-06T19:55:49.095+02:00</published><updated>2009-09-06T19:55:49.095+02:00</updated><title type='text'>Nonstop, eso es simplemente un problema de permiso...</title><content type='html'>Nonstop, eso es simplemente un problema de permisos.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/7540534443895360248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/7540534443895360248'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1252259749095#c7540534443895360248' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-1680272307323596629</id><published>2009-09-06T18:22:40.458+02:00</published><updated>2009-09-06T18:22:40.458+02:00</updated><title type='text'>Hola Papelu, muy bueno tu blog, estoy tratando de ...</title><content type='html'>Hola Papelu, muy bueno tu blog, estoy tratando de entender los triggers y poder realizarlos, vi el que comentaste http://www.astral-consultancy.co.uk/cgi-bin/hunbug/doco.cgi?11020 lo hice pero al ejecutar el procedimiento, me da este error:&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-04089: cannot create triggers on objects owned by SYS&lt;br /&gt;ORA-06512: at &amp;quot;SYS.DPR_AUDITTABLE&amp;quot;, line 83&lt;br /&gt;ORA-06512: at line 1&lt;br /&gt;Y no se como solucionarlo. Muchas gracias Papelu!!!&lt;br /&gt;Saludos a todos.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1680272307323596629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1680272307323596629'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1252254160458#c1680272307323596629' title=''/><author><name>nonstop</name><uri>http://www.blogger.com/profile/00421964185504644296</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-8188482168924681364</id><published>2009-06-23T08:50:34.077+02:00</published><updated>2009-06-23T08:50:34.077+02:00</updated><title type='text'>Hola Julieta,

La ejecución de los triggers es sec...</title><content type='html'>Hola Julieta,&lt;br /&gt;&lt;br /&gt;La ejecución de los triggers es secuencial, primero saltaría el D_BILLING_COPY_TRG que haría saltar el TRG_SETTLEMENT, aunque obviamente el primer trigger no terminará de ejecutarse hasta que acabe el TRG_SETTLEMENT.&lt;br /&gt;&lt;br /&gt;Si tienes problemas de rendimiento que antes no existían, yo revisaría el trigger nuevo. Hay veces que consultas sencillas dan problemas de rendimiento si el optimizador genera un plan de ejecución inadecuado.&lt;br /&gt;&lt;br /&gt;Si crees que te puedo ayudar en algo puedes contactar conmigo por email (pepelu[arroba]gmail[punto]com).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/8188482168924681364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/8188482168924681364'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1245739834077#c8188482168924681364' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-7265379199752962799</id><published>2009-06-23T02:10:38.826+02:00</published><updated>2009-06-23T02:10:38.826+02:00</updated><title type='text'>Hola, soy nueva en esto de los triggers, actualmen...</title><content type='html'>Hola, soy nueva en esto de los triggers, actualmente en mi empresa se esta ejecutando un trigger de la siguiente forma: create or replace TRIGGER &amp;quot;BILLING&amp;quot;.&amp;quot;D_BILLING_COPY_TRG&amp;quot; AFTER INSERT ON MEDIATION.D_BILLING, este trigger a su vez hace una insercción a la tabla INSERT INTO MEDIATION.SETTLEMENT y este hace que se ejecute el siguiente trigger create or replace TRIGGER MEDIATION.TRG_SETTLEMENT &lt;br /&gt;BEFORE INSERT&lt;br /&gt;ON MEDIATION.SETTLEMENT, anteriormente este último trigger no existía  y este a afectadoconciderablemente el performace, el segundo trigger tiene consultas sencillas e indexadas que no deben de afectar notablemente, algo que se hizo es que ambos triggers se ejecutaran al mismo tiempo es decir create or replace&lt;br /&gt;TRIGGER &amp;quot;BILLING&amp;quot;.&amp;quot;D_BILLING_COPY_TRG&amp;quot; AFTER INSERT ON MEDIATION.D_BILLING, como funciona en este caso en realidad los dos trigger se ejecutan al mismo tiempo o en forma secuencial? la insercción del siguiente registro se realiza hasta que los dos triggers se acaben de ejecutar?, me podrías pasar alguna liga donde pueda obter más información sobre trigger y optimizacion?, gracias de antemano.&lt;br /&gt;&lt;br /&gt;Saludos</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/7265379199752962799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/7265379199752962799'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1245715838826#c7265379199752962799' title=''/><author><name>Julieta</name><uri>http://www.blogger.com/profile/00492646667961000598</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-5074597483094416058</id><published>2009-06-10T19:08:30.532+02:00</published><updated>2009-06-10T19:08:30.532+02:00</updated><title type='text'>Maite,

Te aconsejo que eches un vistazo a este ar...</title><content type='html'>Maite,&lt;br /&gt;&lt;br /&gt;Te aconsejo que eches un vistazo a este artículo del blog: &lt;a href="http://www.plsql.biz/2009/06/el-paquete-plsql-dbmsscheduler-para.html" rel="nofollow"&gt;El paquete PLSQL DBMS_SCHEDULER&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Un saludo,&lt;br /&gt;Pepelu.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/5074597483094416058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/5074597483094416058'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1244653710532#c5074597483094416058' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-1400632586014264582</id><published>2009-06-01T20:39:29.946+02:00</published><updated>2009-06-01T20:39:29.946+02:00</updated><title type='text'>Muy util, he aprendido un poco mas sobre triggers ...</title><content type='html'>Muy util, he aprendido un poco mas sobre triggers en tu post!&lt;br /&gt;&lt;br /&gt;saludos!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1400632586014264582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1400632586014264582'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1243881569946#c1400632586014264582' title=''/><author><name>Ricardo</name><uri>http://www.blogger.com/profile/15873666510553702463</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-3818572245026031103</id><published>2009-05-19T12:22:55.424+02:00</published><updated>2009-05-19T12:22:55.424+02:00</updated><title type='text'>Hola, me gustaria ejecutar un procedimiento desde ...</title><content type='html'>Hola, me gustaria ejecutar un procedimiento desde un front-end y dejarlo desatendido, el procedimiento no devuelve ningun parametro, pero realiza una serie de acciones sobre diferentes tablas y tarda un rato. He visto que puedo utilizar el paquete de DBMS_SCHEDULER, pero necesita ponerle una repeticion. ¿Que puedo utilizar?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/3818572245026031103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/3818572245026031103'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1242728575424#c3818572245026031103' title=''/><author><name>Maite</name><uri>http://www.blogger.com/profile/12330877283032806135</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-276072996580117792</id><published>2009-03-22T20:08:35.674+01:00</published><updated>2009-03-22T20:08:35.674+01:00</updated><title type='text'>Hola Agustina, lo que pides se puede hacer con un ...</title><content type='html'>Hola Agustina, lo que pides se puede hacer con un trigguer pero no es un tema que pueda contestar en un comentario de forma rápida.&lt;BR/&gt;&lt;BR/&gt;Echa un vistazo a esta página:&lt;BR/&gt;http://www.astral-consultancy.co.uk/cgi-bin/hunbug/doco.cgi?11020</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/276072996580117792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/276072996580117792'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1237748915674#c276072996580117792' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-758155682331268094</id><published>2009-03-21T16:55:02.926+01:00</published><updated>2009-03-21T16:55:02.926+01:00</updated><title type='text'>Hola Papelu, la consulta es la siguiente y se debe...</title><content type='html'>Hola Papelu, la consulta es la siguiente y se debe a desconocimiento casi total del tema: necesitaría hacer un trigger por un insert (este se produce sólo si hubo un update de alguno de los campos) pero debería grabar en otra tabla sólo los campos que han sido modificados, se entiende? Espero tu respuesta.&lt;BR/&gt;Muchas gracias y Saludos!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/758155682331268094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/758155682331268094'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1237650902926#c758155682331268094' title=''/><author><name>Agustina</name><uri>http://www.blogger.com/profile/17895471645216127215</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-1341937441741672379</id><published>2009-01-07T20:28:18.495+01:00</published><updated>2009-01-07T20:28:18.495+01:00</updated><title type='text'>Hola Victoria, en un trigger PLSQL "BEFORE INSERT"...</title><content type='html'>Hola Victoria, en un trigger PLSQL "BEFORE INSERT", puedes generar un error utilizando la función RAISE_APPLICATION_ERROR y se cancelaría la inserción. Pero claro, se haría un ROLLBACK de todos los cambios desde el último COMMIT.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1341937441741672379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1341937441741672379'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1231356498495#c1341937441741672379' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-1996256561104485899</id><published>2009-01-06T21:29:54.223+01:00</published><updated>2009-01-06T21:29:54.223+01:00</updated><title type='text'>Hola, no se mucho sobre triggers, y quisiera saber...</title><content type='html'>Hola, no se mucho sobre triggers, y quisiera saber si en un triggers se puede cancelar la accion es decir que dada una condicion no inserte (si es BEFORE INSERT)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1996256561104485899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1996256561104485899'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1231273794223#c1996256561104485899' title=''/><author><name>Victoria</name><uri>http://www.blogger.com/profile/16551769198493915170</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-2608360924825000569</id><published>2008-11-21T20:43:22.828+01:00</published><updated>2008-11-21T20:43:22.828+01:00</updated><title type='text'>Hola Moshi,Curiosamente la última entrada que he e...</title><content type='html'>Hola Moshi,&lt;BR/&gt;&lt;BR/&gt;Curiosamente la última entrada que he escrito en este blog tiene que ver con lo que me preguntas:&lt;BR/&gt;&lt;BR/&gt;&lt;A HREF="http://www.plsql.biz/2008/11/acceso-remoto-mediante-dblink-una-base.html" REL="nofollow"&gt;Acceso a bases de datos remotas mediante DBLink&lt;/A&gt;.&lt;BR/&gt;&lt;BR/&gt;Échale una ojeada que seguro que tus dudas quedan resueltas.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/2608360924825000569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/2608360924825000569'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1227296602828#c2608360924825000569' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-6238881756751288479</id><published>2008-11-21T20:24:07.606+01:00</published><updated>2008-11-21T20:24:07.606+01:00</updated><title type='text'>Hola Pepelu.Soy nuevo con lo de los triggers e int...</title><content type='html'>Hola Pepelu.&lt;BR/&gt;&lt;BR/&gt;Soy nuevo con lo de los triggers e intento hacer uno, de manera que cuado se haga un UPDATE,INSERT o DELETE sobre un registro de la TablaX de la Instancia A, se actualice en la TablaZ de la Instancia B.&lt;BR/&gt;&lt;BR/&gt;Hasta donde se, para realizar la conexión entre instancias se usa un DBLINK pero no se como.&lt;BR/&gt;&lt;BR/&gt;Espero me puedas orientar de como hacerlo.&lt;BR/&gt;&lt;BR/&gt;De antemano muchas gracias por tu atención y respuesta.&lt;BR/&gt;&lt;BR/&gt;Saludos!!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/6238881756751288479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/6238881756751288479'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1227295447606#c6238881756751288479' title=''/><author><name>Moshi V2.0</name><uri>http://www.blogger.com/profile/07912747964358668874</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-4463774441309501823</id><published>2008-11-01T11:31:31.304+01:00</published><updated>2008-11-01T11:31:31.304+01:00</updated><title type='text'>Gorozito, cada vez que se actualiza un registro (o...</title><content type='html'>Gorozito, cada vez que se actualiza un registro (o tupla) el trigger salta. En un UPDATE masivo, saltará para cada registro que sea actualizado, por lo tanto :new y :old hacen referencia al registro que se está actualizando en ese momento.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/4463774441309501823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/4463774441309501823'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1225535491304#c4463774441309501823' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-1495173863856744354</id><published>2008-11-01T03:27:11.178+01:00</published><updated>2008-11-01T03:27:11.178+01:00</updated><title type='text'>Hola!, te escibo desde Arg. y queria plantearte un...</title><content type='html'>Hola!, te escibo desde Arg. y queria plantearte una duda que me surge con la utilizacion de triggers de tabla (for each statement).&lt;BR/&gt;Supongamos que declaramos un trigger  fot each statement, al utilizar :new (u :old) ¿ a que tupla hara referencia ?, sabiendo que se pudieron modificar varias tuplas de la tabla.&lt;BR/&gt;Espero tu rta.&lt;BR/&gt;Si quieres me agregas a mi msn: &lt;BR/&gt;nicolasmiraccorucker@hotmail.com&lt;BR/&gt;Saludos.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1495173863856744354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1495173863856744354'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1225506431178#c1495173863856744354' title=''/><author><name>Gorozito</name><uri>http://www.blogger.com/profile/13299465692193566635</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-2843310750797778998</id><published>2008-10-16T05:12:29.576+02:00</published><updated>2008-10-16T05:12:29.576+02:00</updated><title type='text'>MUY BUEN BLOG. MUCHAS GRACIAS!</title><content type='html'>MUY BUEN BLOG. MUCHAS GRACIAS!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/2843310750797778998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/2843310750797778998'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1224126749576#c2843310750797778998' title=''/><author><name>Alejandro Ñañez Ortiz</name><uri>http://www.blogger.com/profile/14578875673563130347</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-1993750167253581433</id><published>2008-08-22T16:19:37.627+02:00</published><updated>2008-08-22T16:19:37.627+02:00</updated><title type='text'>Magnifico Pepelu!!!      Muchisimas gracias el eje...</title><content type='html'>Magnifico Pepelu!!! &lt;BR/&gt;     Muchisimas gracias el ejemplo está muy completo y justo a lo que necesito, y estamos en contacto por si tambien puedo aportar en algo.&lt;BR/&gt;&lt;BR/&gt;Saludos a todos.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1993750167253581433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/1993750167253581433'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1219414777627#c1993750167253581433' title=''/><author><name>Eudorax</name><uri>http://www.blogger.com/profile/08198584215677571071</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-869045572181763542</id><published>2008-08-22T08:41:51.112+02:00</published><updated>2008-08-22T08:41:51.112+02:00</updated><title type='text'>Hola Eudorax,Se puede hacer lo que pides. Echa una...</title><content type='html'>Hola Eudorax,&lt;BR/&gt;&lt;BR/&gt;Se puede hacer lo que pides. Echa una ojeada a esta página:&lt;BR/&gt;&lt;BR/&gt;http://www.astral-consultancy.co.uk/cgi-bin/hunbug/doco.cgi?11020&lt;BR/&gt;&lt;BR/&gt;En dicha página incluso han construido un procedure para crear el trigger de auditoría pasando como parámetro el nombre de la tabla a auditar.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/869045572181763542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/869045572181763542'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1219387311112#c869045572181763542' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-294522826790250840</id><published>2008-08-22T02:17:33.694+02:00</published><updated>2008-08-22T02:17:33.694+02:00</updated><title type='text'>Hola Pepelu:     Gracias por poner ejemplos en tu ...</title><content type='html'>Hola Pepelu:&lt;BR/&gt;     Gracias por poner ejemplos en tu Blog, no se si podeis ayudarme en algo en que me he atorado, resulta que debo realizar algo asi como auditoria de tablas, mi problema es el siguiente: &lt;BR/&gt;- Que se dispare un trigger cuando actualice campos en una tabla X.&lt;BR/&gt;- Que la funcion principal del trigger inserte en una tabla Y lo siguiente: IDRegistro modificado en la tabla X, junto con Nombre_Campo_Modificado y Valor_Nuevo_de_dicho_Campo.&lt;BR/&gt;&lt;BR/&gt;Se podrá, soy novata en esto del SQL, gracias Pepelu.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/294522826790250840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/294522826790250840'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1219364253694#c294522826790250840' title=''/><author><name>Eudorax</name><uri>http://www.blogger.com/profile/08198584215677571071</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-6468991687617611947</id><published>2008-08-21T23:02:30.177+02:00</published><updated>2008-08-21T23:02:30.177+02:00</updated><title type='text'>Hola Patov,Normalmente debería funcionarte el util...</title><content type='html'>Hola Patov,&lt;BR/&gt;&lt;BR/&gt;Normalmente debería funcionarte el utilizar la pseudo columna de la base de datos USER (SELECT user FROM dual).&lt;BR/&gt;&lt;BR/&gt;Pero si la aplicación utiliza un esquema de autentificación específico, es posible que tengas que utilizar desde PL/SQL la función V('APP_USER').</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/6468991687617611947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/6468991687617611947'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1219352550177#c6468991687617611947' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-7417127171254513488</id><published>2008-08-21T17:59:23.386+02:00</published><updated>2008-08-21T17:59:23.386+02:00</updated><title type='text'>Los triggers son muy utiles cuando queremos guarda...</title><content type='html'>Los triggers son muy utiles cuando queremos guardar los log's de las transacciones.  Pero cómo se puede hacer para guardar el usuario que realiza la transacción?. Cuando guardo el usuario me guarda siempres el mismo, ADMIN.  Si sabes como puedo obtener el usuario, te lo agradezco</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/7417127171254513488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/7417127171254513488'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1219334363386#c7417127171254513488' title=''/><author><name>Patov</name><uri>http://www.blogger.com/profile/10470431687553834870</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-8863139997945359059</id><published>2008-06-26T11:24:11.897+02:00</published><updated>2008-06-26T11:24:11.897+02:00</updated><title type='text'>saludos ;P me ha sido util :)</title><content type='html'>saludos ;P me ha sido util :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/8863139997945359059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/8863139997945359059'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1214472251897#c8863139997945359059' title=''/><author><name>Tomás</name><uri>http://www.blogger.com/profile/11441521475161586522</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-2604141423958601584</id><published>2008-03-12T22:52:06.797+01:00</published><updated>2008-03-12T22:52:06.797+01:00</updated><title type='text'>Hola laBeba, mi experiencia con Oracle Developers ...</title><content type='html'>Hola laBeba, mi experiencia con &lt;B&gt;Oracle Developers&lt;/B&gt; es muy limitada, pero los triggers de los formularios no tienen mucho que ver con los triggers de la base de datos.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/2604141423958601584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/2604141423958601584'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1205358726797#c2604141423958601584' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-5080033126815892776</id><published>2008-03-12T18:56:32.449+01:00</published><updated>2008-03-12T18:56:32.449+01:00</updated><title type='text'>Hola es excelente que publiques informacion tan ut...</title><content type='html'>Hola es excelente que publiques informacion tan util, solo una pregunta, estoy trabajando con forms (Developer) y hago algo parecido al ejemplo que colocaste, solo que me da un error en las variables :NEW.variable, si sabes como puedo solucionar esto agradezco tu ayuda ;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/5080033126815892776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/5080033126815892776'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1205344592449#c5080033126815892776' title=''/><author><name>laBeba</name><uri>http://www.blogger.com/profile/06418387739819499133</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-6426372482624373895</id><published>2007-11-21T07:45:36.021+01:00</published><updated>2007-11-21T07:45:36.021+01:00</updated><title type='text'>Hola Alonso,Si el resultado de la ejecución del tr...</title><content type='html'>Hola Alonso,&lt;BR/&gt;&lt;BR/&gt;Si el resultado de la ejecución del trigger es el mismo, resulta más efectivo el trigger sobre sentencia (&lt;I&gt;FOR EACH STATEMENT&lt;/I&gt;). &lt;BR/&gt;&lt;BR/&gt;Por cierto, aprovecho para decir que en caso de que no se especifique si el &lt;I&gt;trigger&lt;/I&gt; debe dispararse a nivel de registro (&lt;I&gt;FOR EACH ROW&lt;/I&gt;, es decir, cada vez que un registro se ve afectado por el trigger), o si debe dispararse al final de la ejecución de la sentencia SQL (&lt;I&gt;FOR EACH STATEMENT&lt;/I&gt;), entonces el interprete SQL toma como valor por defecto &lt;I&gt;FOR EACH STATEMENT&lt;/I&gt;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/6426372482624373895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/7359136421409554779/comments/default/6426372482624373895'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html?showComment=1195627536021#c6426372482624373895' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/02/triggers-en-plsql.html' ref='tag:blogger.com,1999:blog-26801181.post-7359136421409554779' source='http://www.blogger.com/feeds/26801181/posts/default/7359136421409554779' type='text/html'/></entry></feed>