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 trace insert statement in PL\SQL. PL\SQL logging.

user11995226Apr 18 2016 — edited May 6 2016

Hello,

i have a function in a package that creates a table and copies into it all the entries from an existent table and then deletes it.

Sometimes this fails and then the data is in an inconsistent state where i have both tables and half entries in one and the rest in the other.

I haven't figured why and under which case this error occurs.

The question is, what is the best way to trace this and find the error?

I have checked DBMS_OUTPUT and TKPROF but neither seemed to work.

Is there any clear procedure on how this can be done?

I am on Windows 2008 Server with Oracle 11gR2.

Thank you in advance.

This post has been answered by John Stegeman on Apr 18 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 3 2016
Added on Apr 18 2016
13 comments
3,905 views