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!

Issue while calling Alter Session inside the Pragma autonomous_transaction Block

Ramesh_85May 30 2019 — edited May 30 2019

Hi All,

in Packaged Procedure, we are using the below line,

EXECUTE IMMEDIATE 'ALTER SESSION SET CURSOR_SHARING=FORCE';

The procedure is marked, pragma autonomous_transaction.

While try to execute the procedure, it not executing.

If I commended out the lineĀ  "EXECUTE IMMEDIATE 'ALTER SESSION SET CURSOR_SHARING=FORCE';", it got executed successfully.

I want understand what is happening while calling Alter session inside the autonomus transaction, please explain...

Comments
Post Details
Added on May 30 2019
3 comments
213 views