Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: SELECT SKIP
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: Jack C. Applewhite INET: japplewhite_at_inetprofit.com 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-LReceived on Thu Feb 15 2001 - 15:53:08 CST
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).