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: Partitions of table read only

RE: Partitions of table read only

From: Johnston, Tim <TJohnston_at_quallaby.com>
Date: Wed, 18 Jun 2003 15:10:59 -0700
Message-ID: <F001.005B462F.20030618140419@fatcity.com>


In order to complete an alter to read only, ALL transactions against the database that were started before you issued that alter command must complete before the alter will continue... From the concepts guide...

The ALTER TABLESPACE ... READ ONLY statement places the tablespace in a transitional read-only mode and waits for existing transactions to complete (commit or roll back). This transitional state does not allow any further write operations to the tablespace except for the rollback of existing transactions that previously modified blocks in the tablespace. Hence, in transition the tablespace behaves like a read-only tablespace for all user statements except ROLLBACK. After all of the existing transactions have either committed or rolled back, the ALTER TABLESPACE ... READ ONLY statement completes and the tablespace is placed in read-only mode.

And there is a good example in the admin guide...

http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/tspa ces.htm#6884

HTH Tim

-----Original Message-----
Sent: Wednesday, June 18, 2003 3:30 PM
To: Multiple recipients of list ORACLE-L

there WERE no active transactions against that tablespace.

The steps I took were:

as system:

1) create tablespace as an LMT
2) create table within that tablespace
3) attempt to make the tablespace read-only
 when that hung I logged out (which certainly killed any active transactions against that tablespace!)

4) log back in as / as sysdba
5) attempt to make that tablespace read-only

No one else knows about that tablespace, it's brand-new. No one else has quota or access on the table I created.

However, for completeness, I just offlined and onlined that tablespace, then tried to make it read only. It's still hanging.

Oh yeah, 9.2.0.1 on Linux

Rachel


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Rachel Carmichael
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Johnston, Tim
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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 Jun 18 2003 - 17:10:59 CDT

Original text of this message

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