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!

Using PRAGMA AUTONOMOUS_TRANSACTION in Functions

1048939Sep 4 2014 — edited Sep 4 2014

Hi All,

I have a requirement, where I have to insert records into a temp table via a function. This function returns a table type object. The reason, I have to use functions is because the application which we are using doesn't support calling procedures. So, in order to make the function enable DML, I'm planning to use Autonomous_Transaction. The data will be inserted into the temp table.

Please note, this is a standalone function (meaning it is not calling any other functions/procedures etc in it,), and it only inserts data into temp table which gets deleted after the session.

Are there are any issues in using Autonomous_Transaction in a function? Like performance issue/dead-lock etc?

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 2 2014
Added on Sep 4 2014
12 comments
3,175 views