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!

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.

How do i find out which query is hanging the stored procedure?

msNov 4 2019 — edited Nov 5 2019

Hi All,

    I have a stored procedure which is running forever. The particular stored procedure reads a file and performs validation and inserts into some transaction table.

    There are many stored procedures that are called within the main procedure. There might be locks or blocks or some query is taking long time to execute

    How do i find out which query in which procedure is taking long time to execute? But sometimes the same procedures completes successfully within few seconds inserting

    all the records (10000 recs).

Thanks

Gautam S

Comments

Processing

Post Details

Added on Nov 4 2019
9 comments
2,979 views