Skip to Main Content

APEX

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!

Problem with SQLERRM & SQLCODE..!

ApexLearnSep 25 2017 — edited Sep 25 2017

Hi All,

I am facing problem with SQLERRM & SQLCODE.

I want to insert into emp table.

if any exception will occur then Error code and error message needs to insert into my error log table i.e "ERROR_LOG_INFO" as below.

pastedImage_0.png

In the above code i have inserted empno as NULL then it goes to exceptions block and inert into error_log_info table.

The error_log_info table result as below.

pastedImage_1.png

But i want to insert the error code and error message as

pastedImage_2.png

I want to insert proper error message and Error Code into error_log_info as show in above screen

Please help me out regarding this.

Thanks,

Hanu

This post has been answered by Pavel_p on Sep 25 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2017
Added on Sep 25 2017
6 comments
1,107 views