Undotbs01.dbf file too large solution

Source: Internet
Author: User

Undotbs01.dbf file too large solution

Reduce the size of the UNDOTBS01.DBF file in the Oracle directory

Log on to Oracle using the sys user

Method 1: reset the tablespace size

Run

Alter database datafile '/opt/oracle/oradata/res/undotbs01.dbf' RESIZE 100 M;

In Windows, execute alter database datafile 'e: \ ORACLE \ ORADATA \ undotbs01.dbf' RESIZE 100 M;

'/Opt/oracle/oradata/res/undotbs01.dbf' indicates the storage path of the undotbs01.dbf file in your system, and 100M indicates the size After resetting. Modify the size as needed.

If method 1 cannot be executed, use method 2.

Method 2: Create an UNDO tablespace and replace the original UNDO tablespace.

1. Create a new small undo tablespace

Run the following command in Linux:

Create undo tablespace undotbs2 datafile '/opt/oracle/oradata/res/undotbs02.dbf' size 100 M reuse autoextend on;

'/Opt/oracle/oradata/res/undotbs02.dbf' indicates the location where the tablespace file is to be stored. 100M indicates the initial size of the new tablespace.

Run the following command in Windows:

Create undo tablespace UNDOTBS2 DATAFILE 'e: \ oradata \ undotbs02.dbf' SIZE 100 m reuse autoextend on;

2. Set the new tablespace to the system's Undo tablespace.

Run

Alter system set UNDO_TABLESPACE = UNDOTBS2;

3. Restart the database

You can use the sys user to log on from sqlplus, execute the startup force Command, and force restart

4. Delete the old Undo tablespace

Log On with the sys user and run

Drop tablespace UNDOTBS01 including contents and datafiles;

So far, the UNDOTBS01.DBF file has been reduced. To restore the original tablespace name, run method 2 again.

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.