12c RAC扩容undo表空间

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了12c RAC扩容undo表空间相关的知识,希望对你有一定的参考价值。

Oracle 12cR1 RAC

col sid for a10
col name for a20
col value for a20
select sid,name,value from v$spparameter where name=‘undo_tablespace‘;

SID        NAME                 VALUE
---------- ------------------------------ --------------------
orcl2      undo_tablespace      UNDOTBS2
orcl1      undo_tablespace      UNDOTBS1

[email protected]> show parameter create_file

NAME                   TYPE          VALUE
------------------------------------ ---------------------- ------------------------------
db_create_file_dest        string         +DATADG
[email protected]> 
[email protected]> show parameter undo

NAME                                 TYPE                   VALUE
------------------------------------ ---------------------- ------------------------------
temp_undo_enabled             boolean               FALSE
undo_management               string                   AUTO
undo_retention                       integer                900
undo_tablespace                   string                  UNDOTBS1

--不自动扩展,没有最大值
[email protected]> alter tablespace undotbs1 add datafile  size 10m;
[email protected]> alter tablespace undotbs2 add datafile  size 20m;
--扩容到30m
[email protected]> alter database datafile ‘+DATADG/ORCL/DATAFILE/undotbs2.273.964970069‘ resize 30m;
--自动扩展,最大100M
[email protected]> alter database datafile ‘+DATADG/ORCL/DATAFILE/undotbs2.273.964970069‘ autoextend on maxsize 100m;

col file_name for a50
set lines 200
select file_name,bytes/1024/1024 mb,maxbytes/1024/1024 max_mb from dba_data_files where tablespace_name like ‘UNDOTBS%‘;
FILE_NAME                                                                            MB     MAX_MB
---------------------------------------------------------------------------- ------------- ----------
+DATADG/ORCL/DATAFILE/undotbs1.261.964970069      155 32767.9844
+DATADG/ORCL/DATAFILE/undotbs2.273.964970069      30        100
+DATADG/ORCL/DATAFILE/undotbs1.367.965681119      10          0
+DATADG/ORCL/DATAFILE/undotbs2.369.965681285      20          0

以上是关于12c RAC扩容undo表空间的主要内容,如果未能解决你的问题,请参考以下文章

Oracle12c创建及删除PDB

ORACLE RAC 11G 添加以及删除UNDO表空间

Oracle 12C 新特性之临时undo控制

12C RAC for ASM添加磁盘步骤

oracle rac扩表空间

Oracle-表空间添加数据文件扩容出错解决措施