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!

What SQL is a stored procedure currently executing ?

MaxAug 4 2017 — edited Aug 7 2017

DB version: 11.2.0.4

Platform: Oracle Linux 6.7

I have a stored procedure which usually finishes execution in 3 hours. Today it has been running for 10 hours and still hasn't finished execution.

I got the SQL from v$session.sql_id . But, it just shows the procedure (in the package) like below.

BEGIN manh_batches_pkg.calc_current(:errbuf,:rc,:A0,:A1,:A2,:A3,:A4,:A5,:A6,:A7); END;

I want to know which SQL the stored procedure is stuck at. This procedure calls around 8 functions and 2 stored procedures within its code.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2017
Added on Aug 4 2017
9 comments
517 views