Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: SELECT SKIP
Hi Jack,
After having created a suitable table, a cut and paste of that SQL returns "no rows selected" running 8.1.6 on NT. No error message. I've used it under 8.1.6 on Solaris before, and it has worked there too.
@ Regards,
@ Steve Adams
@ http://www.ixora.com.au/
@ http://www.christianity.net.au/
-----Original Message-----
Sent: Friday, 16 February 2001 7:49
To: ORACLE-L_at_fatcity.com
Cc: Steve Adams
Steve,
Here's what I did to test Select...For Update Skip Locked.
The same ORA-03113 happens running SQL*Plus 8.1.6 or 8.1.7 (both window and command line versions) against either Oracle8i EE 8.1.6.0.0 or 8.1.7.0.0. SQL*Plus and the databases are running under Windows2000. Both the simple Select and the PL/SQL block work (or wait) as expected if the "Skip Locked" phrase is left off and either NoWait or Wait is specified.
First, in SQL*Plus session 1:
SQL> Select Document_ID
2 from Documents
3 Where RowNum < 3
4 For Update;
DOCUMENT_ID
9789959
9789960
Then, in SQL*Plus session 2:
SQL> Select Document_ID
2 from Documents
3 Where RowNum < 3
4 For Update Skip Locked ;
Select Document_ID
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Even putting the Select in a PL/SQL anonymous block doesn't
help.
In SQL*Plus session 2:
Declare
Type rc Is Ref Cursor ; c rc ; n Number ;
Does it work on other OSs or Oracle versions? Am I missing something?
Thanks.
Jack
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Steve Adams INET: steve.adams_at_ixora.com.au Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Feb 15 2001 - 16:39:50 CST