Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: SELECT SKIP (Was: RE: Off Topic: Row Locking - Row Id)

RE: SELECT SKIP (Was: RE: Off Topic: Row Locking - Row Id)

From: Steve Adams <steve.adams_at_ixora.com.au>
Date: Wed, 14 Feb 2001 09:45:57 -0800
Message-ID: <F001.002B42EB.20010214092259@fatcity.com>

Hi Yong,

That has to be FOR UPDATE SKIP LOCKED.
There is some stuff about it on the Ixora web site.

@ Regards,
@ Steve Adams
@ http://www.ixora.com.au/
@ http://www.christianity.net.au/

-----Original Message-----
Sent: Thursday, 15 February 2001 2:31
To: Multiple recipients of list ORACLE-L

Hi, Riyaj,

Could you post your screen shot that shows select * from t1 skip locked? What version of Oracle are you using? Mine is 8.1.6 Enterprise Ed:

SQL> select * from test skip locked;
select * from test skip locked

                        *

ERROR at line 1:
ORA-00933: SQL command not properly ended

SQL> select * from test skip lock;
select * from test skip lock

                        *

ERROR at line 1:
ORA-00933: SQL command not properly ended

SQL> desc test

 Name                                      Null?    Type
 ----------------------------------------- -------- --------
 A                                                  NUMBER
 B                                                  ROWID
 D                                                  NUMBER

Yong Huang
yong321_at_yahoo.com

you wrote:

If you want to show only rows that are locked then you could use this undocumented feature: 'select * from t1 skip locked'. This will skip all the rows that have been locked.

Thanks
Riyaj "Re-yas" Shamsudeen

-- 
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 Wed Feb 14 2001 - 11:45:57 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US