Professional Documents
Culture Documents
Give Feedback...
Copy right (c) 2019, Oracle. A ll rights reserv ed. Oracle Confidential.
Goal Yes
No
Solution
1. To Shrink the Undo Tablespace Size.
Document Details
Undo space once allocated will be available for reuse but will not be deallocated to the OS. The best way to shrink Undo tablespace Information Centers
is to switch to a new Undo tablespace and drop the old Undo tablespace. The steps are: Information Center: Overview
Database Server/Client
a) Create a new undo tablespace of the same size (larger or smaller) depending on your database requirements. Installation and
Upgrade/Migration [1351022.2]
SQL> create undo tablespace UNDOTBS2 datafile Index of Oracle Database
'D:\ORACLE\PRODUCT\11.2.0\ORADATA\ORCL\UNDOTBS02.DBF' size 5000M; Information Centers
[1568043.2]
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=91659740526958&id=1951696.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=2o8crxizi_77#aref_section23 1/4
1/20/2019 Document 1951696.1
インフォメーション・センタ
b) Switch to the new Undo tablespace ー: データベースおよび
Enterprise Manager 日本語ドキ
ALTER SYSTEM SET UNDO_TABLESPACE = UNDOTBS2 SCOPE=BOTH; ュメント [1946305.2]
If there are Undo segments with status other than OFFLINE in the tablespace to be dropped, we need to wait till they become Document References
OFFLINE. You may have to wait for the duration of the tuned_undoretention (from v$undostat) to ensure all Undo segments have
become OFFLINE. No References available for this
document.
eg:
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=91659740526958&id=1951696.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=2o8crxizi_77#aref_section23 2/4
1/20/2019 Document 1951696.1
Example:
alter database datafile 'D:\ORACLE_DB\TESTDB\TESTDB\UNDOTBS01.DBF' resize 1500M;
alter tablespace <UNDO tbs name> ADD DATAFILE '<COMPLETE_PATH_OF_UNDO_DBF_FILE>' size 20M;
Example:
alter tablespace UNDOTBS1 ADD DATAFILE 'D:\ORACLE_DB\TESTDB\TESTDB\UNDOTBS02.DBF' size 20M;
Related
Products
Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Enterprise Edition > RDBMS > Automatic Undo Management, ORA-01555, ORA-01628, ORA-
30036, ORA-22924, UNDO Space issues, UNDO Waits, Rollback Segments
Oracle Cloud > Oracle Infrastructure Cloud > Oracle Public Cloud Machine > Oracle Database Exadata Cloud Machine
Oracle Cloud > Oracle Platform Cloud > Oracle Cloud Infrastructure - Database Service > Oracle Cloud Infrastructure - Database Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Cloud Exadata Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Cloud Schema Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Exadata Express Cloud Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Cloud Service
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=91659740526958&id=1951696.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=2o8crxizi_77#aref_section23 3/4
1/20/2019 Document 1951696.1
Oracle Cloud > Oracle Platform Cloud > Oracle Database Backup Service > Oracle Database Backup Service
Keywords
AUTOMATIC; RETENTION; UNDO
Back to Top
Copy right (c) 2019, Oracle. A ll rights reserv ed. Legal Notices and Terms of Use Priv acy Statement
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=91659740526958&id=1951696.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=2o8crxizi_77#aref_section23 4/4