<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Eddie Awad’s Blog - Latest Comments in Little known way to get the error message in PL/SQL</title><link>http://awads.disqus.com/</link><description>News, views, tips and tricks on Oracle and other fun stuff</description><atom:link href="https://awads.disqus.com/little_known_way_to_get_the_error_message_in_plsql/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 28 Jul 2008 16:23:06 -0000</lastBuildDate><item><title>Re: Little known way to get the error message in PL/SQL</title><link>http://awads.net/wp/2006/08/01/little-known-way-to-get-the-error-message-in-plsql/#comment-3658720</link><description>&lt;p&gt;hi&lt;br&gt;i am preparing for job interviews as a pl/sql developer.&lt;br&gt;where can i find good interview questions on database triggers and cursors.&lt;br&gt;ne pointers to tat plzzz&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anjali</dc:creator><pubDate>Mon, 28 Jul 2008 16:23:06 -0000</pubDate></item><item><title>Re: Little known way to get the error message in PL/SQL</title><link>http://awads.net/wp/2006/08/01/little-known-way-to-get-the-error-message-in-plsql/#comment-3658719</link><description>&lt;p&gt;@Matt Good point. Thanks for the tip.&lt;/p&gt;&lt;p&gt;@Guillaume I'm afraid I cannot help you with C.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Wed, 16 Jul 2008 14:32:37 -0000</pubDate></item><item><title>Re: Little known way to get the error message in PL/SQL</title><link>http://awads.net/wp/2006/08/01/little-known-way-to-get-the-error-message-in-plsql/#comment-3658716</link><description>&lt;p&gt;Does anyone of you knows how to do the same in c.&lt;br&gt;You pass an error code and you get the message like perror in Unix.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gaubert</dc:creator><pubDate>Wed, 16 Jul 2008 10:10:54 -0000</pubDate></item><item><title>Re: Little known way to get the error message in PL/SQL</title><link>http://awads.net/wp/2006/08/01/little-known-way-to-get-the-error-message-in-plsql/#comment-3658717</link><description>&lt;p&gt;That should, of course, have ended with&lt;/p&gt;&lt;p&gt;  ELSE &lt;br&gt;    RAISE; &lt;br&gt;  END IF; &lt;br&gt;END;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Symes</dc:creator><pubDate>Wed, 16 Jul 2008 04:45:14 -0000</pubDate></item><item><title>Re: Little known way to get the error message in PL/SQL</title><link>http://awads.net/wp/2006/08/01/little-known-way-to-get-the-error-message-in-plsql/#comment-3658718</link><description>&lt;p&gt;I think this article misses the real difference between SQLERRM and FORMAT_ERROR_STACK.&lt;/p&gt;&lt;p&gt;The latter returns the entire error stack (the clue is in the name). Sometimes the real error you want to identify is some way down the error stack - in which case SQLERRM is no good for you.&lt;/p&gt;&lt;p&gt;If looking for a particular error number in FORMAT_ERROR_STACK you can simply do a:&lt;/p&gt;&lt;p&gt;EXCEPTION&lt;br&gt; WHEN OTHERS THEN&lt;br&gt;   IF INSTR(dbms_utility.format_error_stack, 'ORA-12345') != 0 THEN ...&lt;br&gt; ELSE&lt;br&gt;  RAISE;&lt;br&gt;END;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Symes</dc:creator><pubDate>Wed, 16 Jul 2008 04:43:11 -0000</pubDate></item></channel></rss>