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!

How to write into an exception log from a function

saerdna.relleomJun 22 2016 — edited Jun 22 2016

For monitoring my PL/SQL code I have an exception log table. Any PL/SQL block has an exception handler that inserts a record with the exception string into this table, even the functions. Of course this doesn't work with the functions if they are called by a select statement.

I tried to avoid any DML, so I saved the exception string to a session variable. That works but I can't find a solution to insert the variable string into my exception log. I hope someone has a good idea or hint about that topic.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2016
Added on Jun 22 2016
5 comments
1,018 views