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!

dbms_xmlgen.getxml

Raj MBApr 18 2014 — edited Apr 18 2014

Hello Gurus,

I am using dbms_xmlgen.getxml function to generate xmltype output for a dynamic select statement.

Whenever the SELECT statement is well formed i.e., no parsing errors, it works fine for me. but, if at all the select statement will raise any parsing errors, the oracle opens a cursor select statement and doesn't close the cursor. Hence, it causes cursor leak and tries to kill the memory. I have written dbms_xmlgen.closecontext function in When others handler.

Please let me know, how to close the open cursor, which is being opened for a parsing failed SELECT query.

Thanks,

Rajendra

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2014
Added on Apr 18 2014
14 comments
2,714 views