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: convert RBS tablespace from DMT to LMT (Oracle 8173) steps?

RE: convert RBS tablespace from DMT to LMT (Oracle 8173) steps?

From: Thomas Day <tday6_at_csc.com>
Date: Wed, 23 Jul 2003 13:49:25 -0400
Message-Id: <25998.339203@fatcity.com>


How will you make sure that there are no active segments in your current rollback segments before you remove the datafiles with the OS? Even after you take the rollback segments off-line, Oracle will continue to use them as long as they have an active segment.

BTW --- One way to help to avoid the ORA-01555 when you are committing across an open cursor is to take the rollback segment that that cursor is using off-line. No one else will come in a step on the "free" segment but your session will continue to process just fine until you close the cursor. At least that's been my experience.

                                                                                                                                       
                      DENNIS WILLIAMS                                                                                                  
                      <DWILLIAMS               To:      Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>                    
                      @LIFETOUCH.COM>          cc:                                                                                     
                      Sent by:                 Subject: RE: convert RBS tablespace from DMT to LMT (Oracle 8173) steps?                
                      ml-errors                                                                                                        
                                                                                                                                       
                                                                                                                                       
                      07/23/2003 02:29                                                                                                 
                      PM                                                                                                               
                      Please respond                                                                                                   
                      to ORACLE-L                                                                                                      
                                                                                                                                       
                                                                                                                                       




Guang

    Yes, I noticed that after I posted my reply. Typically if this was a production system I would tend to create new rollback segments, online the new segments, offline the old segments, then change the init.ora. Sometime later I would drop the old segments and tablespace, maybe after a backup cycle has occurred. Now, you will say that is unnecessary, and technically you would be right. But one of the rules you learn by being a DBA for a long
time is to never delete anything until you are absolutely certain you won't need it. Always have a rollback plan (no pun intended). It is also a good idea to back up the control file to trace anytime you make changes in database structure. With my method, if you have one of those "oh crap" moments, you can quickly recover. This may be overkill in this specific instance, but there are many other circumstances where you may end up being awfully glad you were a little cautious.

Dennis Williams
DBA, 80%OCP, 100% DBA
Lifetouch, Inc.
dwilliams_at_lifetouch.com

-----Original Message-----

Sent: Wednesday, July 23, 2003 1:14 PM
To: Multiple recipients of list ORACLE-L

Do I need to? I thought after all the steps I still have the same rollback segment names (RBS01-06). The only difference is they will be in LMT now.

Guang

-----Original Message-----

DENNIS WILLIAMS
Sent: Wednesday, July 23, 2003 1:35 PM
To: Multiple recipients of list ORACLE-L

Guang - Don't forget to update your init.ora!

Dennis Williams
DBA, 80%OCP, 100% DBA
Lifetouch, Inc.
dwilliams_at_lifetouch.com

-----Original Message-----

Sent: Wednesday, July 23, 2003 12:24 PM
To: Multiple recipients of list ORACLE-L

Hi:

I need to convert RBS tablespace (used for rollback segments) from DMT to LMT on a 24x7 production machine (Solaris 2.8, Oracle 8173). Here are the steps I am thinking of taking:

  1. create a new rbslmt tablespace
  2. create new rollback segments (RBSlmt01, RBSlmt02, ... RBSlmt 06) in rbslmt ts , set them online
  3. alter all old rollback segments (RBS01, ... RBS06) offline;
  4. Drop all old rollback segments;
  5. alter old RBS tablespace offline
  6. Drop old RBS tablespace
  7. Remove old RBS tablespace's datafiles from OS
  8. Create new RBS tablespace as LMT
  9. Create new rollback segments (RBS01, ... RBS06) in RBS, set them online;
  10. alter rollback segments (RBSlmt01, RBSlmt02, ... RBSlmt 06) offline, then drop them;
  11. alter tablespace rbslmt offline
  12. drop tablespace rbslmt
  13. Remove tablespace rbslmt's datafiles from OS.

Anything I am missing?

TIA. Guang

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Guang Mei
  INET: gmei_at_incyte.com

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: 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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: DENNIS WILLIAMS
  INET: DWILLIAMS_at_LIFETOUCH.COM
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: 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).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Guang Mei
  INET: gmei_at_incyte.com

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: 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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: DENNIS WILLIAMS
  INET: DWILLIAMS_at_LIFETOUCH.COM
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: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L Received on Wed Jul 23 2003 - 12:49:25 CDT

Original text of this message

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