in reply to Re^5: Closing Oracle cursors
in thread Closing Oracle cursors
Yes, I can retrieve data from the cursor without a problem.
I tried modifying the curref.pl example script, and I get the following error:
The package has been created... The package body has been created... These are the results from the ref cursor: 0 rows Use of uninitialized value in subroutine entry at curref.bat line 83. DBD::Oracle::st dump_results warning: at curref.bat line 83. Unable to SELECT from SYS.V_$OPEN_CURSOR: User testuser needs SELECT p +ermission. DBD::Oracle::st execute failed: ORA-01008: not all variables bound (DB +D: oexec error) at curref.bat line 93.
So from that error message, one problem is that the user I'm connecting as doesn't have the appropriate permissions. In my workplace getting that permission will be difficult, I think.
But the last error message is noteworthy -- that's what happens when the procedure to close the cursor is called, and it's exactly what happens when I try to do the same using bind_param() instead of bind_param_inout().
There's only one variable, and I'm binding it, so I don't know why it thinks I'm not binding all variables.
Could this be a problem in my version of Perl, DBI, or DBD::Oracle?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Closing Oracle cursors
by Transient (Hermit) on Apr 19, 2005 at 19:49 UTC | |
by mickey (Acolyte) on Apr 19, 2005 at 20:15 UTC |