Oracle UNDO tablespace Reconstruction Method

Source: Internet
Author: User

Oracle is still quite common, So I studied the Oracle UNDO tablespace and shared it with you here. I hope it will be useful to you.

1. In order to open the database, the first thought is to clear bad logs,:

 
 
  1. SQL> alter database clear unarchived logfile group 3 ;  
  2. SQL> alter database clear unarchived logfile group 3 unrecoverable datafile;  
  3. alter database clear unarchived logfile group 3 unrecoverable datafile 

Ii. Reconstruction of the system Oracle UNDO tablespace

1. Create a New Oracle UNDO tablespace

 
 
  1. CREATE UNDO TABLESPACE "UNDOTEMP"  
  2. DATAFILE 'G:\ORACLE\ORADATA\HOME\UNDOTEMP.ora' SIZE 5M  
  3. CREATE UNDO TABLESPACE "UNDOTEMP"  DATAFILE 
  4. '/home/oracle/oradata/oracle9/UNDOTEMP.ora' SIZE 50M 

2. On the OEM console, modify the default Oracle UNDO tablespace name from UNDOTBS to UNDOTEMP, or use the following command to modify the identifier of the default Oracle UNDO tablespace.

 
 
  1. ALTER SYSTEM SET UNDO_TABLESPACE = UNDOTEMP 

3. Delete the default Oracle UNDO tablespace and recreate the UNDOTBS.

 
 
  1. DROP TABLESPACE "UNDOTBS1" INCLUDING CONTENTS AND DATAFILES 

4. On the OEM console, modify the default Oracle UNDO tablespace name from UNDOTEMP to UNDOTBS and change it back to the original Oracle UNDO tablespace ID.

 
 
  1. ALTER SYSTEM SET UNDO_TABLESPACE = UNDOTBS 

5. Delete the temporary Oracle UNDO tablespace UNDOTEMP

 
 
  1. DROP TABLESPACE "UNDOTEMP" INCLUDING CONTENTS AND DATAFILES 

Iii. ORACLE 9I rebuilding TEMP tablespace

1. startup: Start the database.

2. create temporary tablespace TEMP_TEMP TEMPFILE '/home/oracle/oradata/oracle9/temp_temp.dbf' SIZE 128 M REUSE AUTOEXTEND
On next 640 k maxsize unlimited: create temporary tablespace for transit

3. alter database default temporary tablespace TEMP_TEMP: Change the default temporary tablespace to the newly created temporary tablespace temp2.

4. drop tablespace temp including contents and datafiles: Delete the original temporary tablespace

5. create temporary tablespace temp tempfile '/home/oracle/oradata/oracle9/temp01.dbf' SIZE 512 m reuse autoextend on next 640 k maxsize unlimited: recreate a temporary tablespace

6. alter database default temporary tablespace temp: reset the default temporary tablespace

  1. Five-minute master of Oracle tablespace
  2. Explain how to query user tablespaces in Oracle
  3. An analysis of the specific methods for assigning Oracle user permissions
  4. Step 4: Change the Oracle user name
  5. Simple Oracle user table search example

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.