Вы находитесь на странице: 1из 4

1/20/2019 Document 1951696.

PowerView is Off Ram (Available) (0) Contact Us Help

Dashboard Knowledge Service Requests Patches & Updates

Give Feedback...
Copy right (c) 2019, Oracle. A ll rights reserv ed. Oracle Confidential.

IF: How to Resize the Undo Tablespace (Doc ID 1951696.1) To Bottom

In this Document Was this document helpful?

Goal Yes
No
Solution
1. To Shrink the Undo Tablespace Size.
Document Details

2. Add Space to the Undo Tablespace.


Type:
HOWTO
Status:
PUBLISHED
Last Major
APPLIES TO: Update:
Aug 4, 2018
Aug 4, 2018
Last Update:
Oracle Database - Enterprise Edition - Version 9.2.0.1 and later
Information in this document applies to any platform.
***Checked for relevance on 21-Jul-2017*** Related Products
Oracle Database - Enterprise
GOAL Edition
Oracle Database Exadata Cloud
Machine
This document provides the steps to resize the Undo tablespace.ie, to add space or shrink the current Undo tablespace Oracle Cloud Infrastructure -
Database Service
Oracle Database Cloud Exadata
SOLUTION Service
Oracle Database Cloud Schema
Service
Show More
1. To Shrink the Undo Tablespace Size.

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]

Information Center: Overview


of Database Security Products
c). Check the status of the undo segments and determine if all the segments in the old undo tablespace are offline. [1548952.2]

Platform as a Service (PaaS)


select tablespace_name , status , count(*) from dba_rollback_segs group by tablespace_name , and Oracle Cloud Infrastructure
status; (OCI) Information Center
[2048297.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.

select status,segment_name from dba_rollback_segs where status not in ("OFFLINE') and


tablespace_name=<undo tablespace to be dropped>; Recently Viewed

Release Schedule of Current


eg: Database Releases
[742060.1]
select status,segment_name from dba_rollback_segs where status not in ("OFFLINE') and How to Validate Network and
tablespace_name='UNDOTBS1'; Name Resolution Setup for
the Clusterware and RAC
[1054902.1]
What Causes High Redo
d). If all the Undo segments in the old Undo tablespace to the dropped is of status OFFLINE, then drop the tablespace. When Supplemental Logging is
Enabled [1349037.1]
select tablespace_name , status , count(*) from dba_rollback_segs group by tablespace_name , High Redo Generation after
status; Database Upgrade From
11.2.0.3 To 11.2.0.4
[2219909.1]
Complete Checklist to
Verify and then drop: Upgrade the Database to
11gR2 Using DBUA
[870814.1]
Show More
SQL>Drop tablespace <tablespace_name> including contents and datafiles;

eg:

SQL>Drop tablespace UNDOTBS1 including contents and datafiles;

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

2. Add Space to the Undo Tablespace.

For increasing / resize undo tablespace there are two options :


a) Resize the existing undo datafile
b) Add new undo datafile to the tablespace.

a) To resize the existing undo datafile:

col T_NAME for a23


col FILE_NAME for a65
select tablespace_name T_NAME,file_name, bytes/1024/1024 MB from dba_data_files where
tablespace_name =(SELECT UPPER(value) FROM v$parameter WHERE name = 'undo_tablespace') order
by file_name;

alter database datafile '<COMPLETE_PATH_OF_UNDO_DBF_FILE>' resize <SIZE>M;

Example:
alter database datafile 'D:\ORACLE_DB\TESTDB\TESTDB\UNDOTBS01.DBF' resize 1500M;

b) Step to add a new datafile:

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;

Didn't find what you are looking for? Ask in Community...

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

Вам также может понравиться