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!

Why we consider the weak ref cursor as weak?

BS2012Nov 2 2014 — edited Nov 4 2014

Hi Everyone,

I've a doubt regarding strong and weak ref cursor.

Difference :

  • Strong ref_cursor will always use to return a value and compiler know the structure during the compile time, but in the weak ref cursor it will not return a value and compiler doesn't know the structure during the compile time (it's known at the run time when the cursor will be open).
  • Dynamic query is not possible in strong reference cursor where as it is possible in weak reference cursor

So my question is, if weak ref cursor is capable of handling multiple queries (Dynamically); then why it's considered as weak?? Is it because of it's return type is unknown at the compilation time or what?? Why would we consider this as weakly typed?? Please suggest something.

Regards,

BS2012.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 2 2014
Added on Nov 2 2014
7 comments
2,966 views