<?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-13265058.post7242239002884996550..comments</id><updated>2010-01-06T13:36:43.800+11:00</updated><category term='interval'/><category term='non-oracle'/><category term='teradata'/><category term='apex'/><category term='beer'/><category term='proxy'/><category term='postgres'/><category term='meetup'/><category term='SQL'/><category term='autonomous transaction'/><category term='debugging'/><category term='characters'/><category term='books'/><category term='concat'/><category term='Amazon'/><category term='passwords'/><category term='UI'/><category term='sql developer'/><category term='analytics'/><category term='gdal'/><category term='Spatial'/><category term='oracle-xe'/><category term='oralce'/><category term='insert'/><category term='XE'/><category term='presentation'/><category term='OpenStreetMap'/><category term='exceptions'/><category term='troubleshooting'/><category term='Personal Edition'/><category term='job'/><category term='excel'/><category term='exception handling'/><category term='direct-path'/><category term='11gR2'/><category term='ORM'/><category term='Log Buffer'/><category term='11g'/><category term='virtual'/><category term='developer'/><category term='subtype'/><category term='football'/><category term='raid'/><category term='odtug'/><category term='htmldb'/><category term='rant'/><category term='laptop'/><category term='backup'/><category term='humor'/><category term='plsql'/><category term='append'/><category term='technology summit'/><category term='plsql challenge'/><category term='emacs'/><category term='shapefile'/><category term='ogr2ogr'/><category term='servererror'/><category term='sydney'/><category term='to'/><category term='soccer'/><category term='mysql'/><category term='google maps'/><category term='oradbpedia'/><category term='security'/><category term='politics'/><category term='broadband'/><category term='dba'/><category term='optimizer'/><category term='humour'/><category term='XML'/><category term='timesten'/><category term='CSV'/><category term='proxy authentication'/><category term='cloud'/><category term='constructors'/><category term='sylk'/><category term='sql server'/><category term='multimedia'/><category term='oracle'/><category term='rownum'/><category term='AWS'/><category term='databases'/><category term='copyright'/><category term='named notation'/><category term='OTN'/><category term='data structures'/><category term='failsafe'/><category term='testing'/><category term='blogging'/><category term='OSM'/><category term='google'/><category term='SaxLoader'/><title type='text'>Comments on Sydney Oracle Lab: Autonomous SERVERERROR trigger</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.sydoracle.com/feeds/7242239002884996550/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13265058/7242239002884996550/comments/default'/><link rel='alternate' type='text/html' href='http://blog.sydoracle.com/2009/12/autonomous-servererror-trigger.html'/><author><name>Gary Myers</name><uri>https://profiles.google.com/116132019768637593422</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-AcOvwFaIPPo/AAAAAAAAAAI/AAAAAAAABOE/36JTjDn-Oh8/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-13265058.post-8315250913603426962</id><published>2010-01-06T13:36:43.800+11:00</published><updated>2010-01-06T13:36:43.800+11:00</updated><title type='text'>I wasn&amp;#39;t clear, it should say &amp;quot;not visibl...</title><content type='html'>I wasn&amp;#39;t clear, it should say &amp;quot;not visible to the trigger&amp;quot;.&lt;br /&gt;They are visible to the main transaction. However the SERVERERROR trigger runs as a separate transaction. You see it output the &amp;quot;Trigger ran&amp;quot; line, but the loop doesn&amp;#39;t see any rows in the table so you don&amp;#39;t see a &amp;quot;1:test&amp;quot; or &amp;quot;10:test 10&amp;quot; output line as those rows belong to a separate, uncommitted transaction.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13265058/7242239002884996550/comments/default/8315250913603426962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13265058/7242239002884996550/comments/default/8315250913603426962'/><link rel='alternate' type='text/html' href='http://blog.sydoracle.com/2009/12/autonomous-servererror-trigger.html?showComment=1262745403800#c8315250913603426962' title=''/><author><name>Gary Myers</name><uri>http://www.blogger.com/profile/08828771074492585943</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://photos1.blogger.com/blogger/4572/1159/1600/mepic.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sydoracle.com/2009/12/autonomous-servererror-trigger.html' ref='tag:blogger.com,1999:blog-13265058.post-7242239002884996550' source='http://www.blogger.com/feeds/13265058/posts/default/7242239002884996550' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2072907487'/></entry><entry><id>tag:blogger.com,1999:blog-13265058.post-5742702976592179146</id><published>2010-01-06T03:37:46.900+11:00</published><updated>2010-01-06T03:37:46.900+11:00</updated><title type='text'>Hi Gary, 



You said &amp;quot; but the two successfu...</title><content type='html'>Hi Gary, &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You said &amp;quot; but the two successful inserts are not visible (because the trigger is an autonomous transaction).&amp;quot;&lt;br /&gt;&lt;br /&gt;Is this a typo or am I missing something ?&lt;br /&gt;&lt;br /&gt;I got on 11GR1 and 10GR2&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; create table test_se_auto_tbl&lt;br /&gt;  2    (id number(2) primary key, val varchar2(20));&lt;br /&gt;&lt;br /&gt;Table created.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt;&lt;br /&gt;SQL&amp;gt; create or replace trigger test_se_auto_trg&lt;br /&gt;  2  after servererror on schema&lt;br /&gt;  3  begin&lt;br /&gt;  4    dbms_output.put_line(&amp;#39;Trigger ran&amp;#39;);&lt;br /&gt;  5    for c_rec in (select id, val from test_se_auto_tbl) loop&lt;br /&gt;  6        dbms_output.put_line(c_rec.id||&amp;#39;:&amp;#39;||c_rec.val);&lt;br /&gt;  7    end loop;&lt;br /&gt;  8  end;&lt;br /&gt;  9  /&lt;br /&gt;&lt;br /&gt;Trigger created.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; insert into test_se_auto_tbl values (1,&amp;#39;test &amp;#39;);&lt;br /&gt;&lt;br /&gt;1 row created.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; insert into test_se_auto_tbl values (10,&amp;#39;test 10&amp;#39;);&lt;br /&gt;&lt;br /&gt;1 row created.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; insert into test_se_auto_tbl values (100,&amp;#39;test 100&amp;#39;);&lt;br /&gt;Trigger ran&lt;br /&gt;insert into test_se_auto_tbl values (100,&amp;#39;test 100&amp;#39;)&lt;br /&gt;                                     *&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-01438: value larger than specified precision allowed for this column&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&amp;gt;&lt;br /&gt;SQL&amp;gt; select id, val from test_se_auto_tbl;&lt;br /&gt;&lt;br /&gt;        ID VAL&lt;br /&gt;---------- --------------------&lt;br /&gt;         1 test&lt;br /&gt;        10 test 10&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Two rows are visible ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13265058/7242239002884996550/comments/default/5742702976592179146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13265058/7242239002884996550/comments/default/5742702976592179146'/><link rel='alternate' type='text/html' href='http://blog.sydoracle.com/2009/12/autonomous-servererror-trigger.html?showComment=1262709466900#c5742702976592179146' title=''/><author><name>Coskan Gundogar</name><uri>http://www.blogger.com/profile/11570869033287689498</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sydoracle.com/2009/12/autonomous-servererror-trigger.html' ref='tag:blogger.com,1999:blog-13265058.post-7242239002884996550' source='http://www.blogger.com/feeds/13265058/posts/default/7242239002884996550' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1735104387'/></entry></feed>
