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!

table locks recursively while execution

KK23Sep 12 2017 — edited Sep 22 2017

Hi team,

I have created stored procedure , inside there will be insert statement with parallel select statement. if try to execute. below table getting locks whenever i use to execute.

when i monitor session information in plsql developer below table getting lock. the process still running almost 4 or 5 hours ..still not disconnecting ..

TBL_TEST

BEGIN

  EXECUTE IMMEDIATE 'TRUNCATE TABLE TBL_TEST';

  INSERT INTO TBL_TEST

    SELECT *

      FROM TBL_TEST_EMP;

  COMMIT;

END;

Kindly advise it.

This post has been answered by Gaz in Oz on Sep 12 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2017
Added on Sep 12 2017
9 comments
1,163 views