查看当前undo表空间;
centos@SYS> show parameter undo; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ undo_management string AUTO undo_retention integer 5400 undo_tablespace string UNDOTBS1 centos@SYS>
创建undo表空间undo_tbs,大小500M;
centos@SYS> create undo tablespace undo_tbs datafile'/u01/app/oracle/oradata/centos/undo_tbs.dbf' size 500M; Tablespace created. centos@SYS>
切换undo表空间为undo_tbs;
centos@SYS> alter system set undo_tablespace=undo_tbs; System altered. centos@SYS> show parameter undo; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ undo_management string AUTO undo_retention integer 5400 undo_tablespace string UNDO_TBS centos@SYS>