Skip to Main Content

Oracle Database Discussions

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

pragma exception handling for sub errors within ORA-12801

KrishhOmJul 20 2018 — edited Jul 26 2018

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

My actual error is :

ORA-12801: Error in parallel query server P000, instance desp11hr: VPS1 (1) displayed ORA-01861: Literal does not match format string

I want to code : PRAGMA EXCEPTION_INIT (E_WRONG_DATE_FORMAT, -01861);

But it does not catch the exception.

So, I had to code: PRAGMA EXCEPTION_INIT (E_WRONG_DATE_FORMAT, -12801);

How to handle ORA-01861 directly ?

This post has been answered by unknown-7404 on Jul 20 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 23 2018
Added on Jul 20 2018
3 comments
367 views