Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error numbers used with Pragma Exception_Init

Blue BirdFeb 22 2018 — edited Feb 23 2018

I'm studying exceptions and I would like to understand where and how are assigned error numbers, you can bind or associate when you define your named exceptions.

For example:

ex_Table_Exists Exception;

Pragma Exception_Init(ex_Table_Exists, -955);

I found this number in some sample code. I get then this message: ORA-00955: name is already used by an existing object. Or "DeadLock_Error Exception" is related to error code -60. Can please someone simply explain me how this is related and where I can see whole list with codes and their meanings. How author of this code knew that he has to use code -955, which is in this case correct?

BB

This post has been answered by padders on Feb 22 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2018
Added on Feb 22 2018
7 comments
1,184 views