-----8月在cq行做的,实现将UNDO表空间由UNDOTBS1改成UNDOTBS11
1.创建新的UNDO表空间,并设置自动扩展参数;
create undo tablespace undotbs11 datafile '/home/oracle/oradata/SUNCPS/undotbs11.dbf' size 10240M reuse autoextend on next 800m maxsize unlimited;
Alter tablespace UNDOTBS11 add datafile '/home/oracle/oradata/SUNCPS/undotbs12.dbf' size 10240m;
2.动态更改spfile配置文件;
alter system set undo_tablespace=UNDOTBS11 scope=both;
3.删除原有的UNDO表空间;
drop tablespace UNDOTBS1 including contents;
4.确认删除是否成功;
select name from v$tablespace;
5.确定$ORACLE_HOME/dbs/spfileSUNCPS.ora内容是否发生变更:
$more spfileSUNCPS.ora
*.undo_tablespace='UNDOTBS11'
并执行如下语句更新pfile参数文件:
create pfile from spfile;
File created.
6.删除原UNDO表空间的数据文件。
1.创建新的UNDO表空间,并设置自动扩展参数;
create undo tablespace undotbs11 datafile '/home/oracle/oradata/SUNCPS/undotbs11.dbf' size 10240M reuse autoextend on next 800m maxsize unlimited;
Alter tablespace UNDOTBS11 add datafile '/home/oracle/oradata/SUNCPS/undotbs12.dbf' size 10240m;
2.动态更改spfile配置文件;
alter system set undo_tablespace=UNDOTBS11 scope=both;
3.删除原有的UNDO表空间;
drop tablespace UNDOTBS1 including contents;
4.确认删除是否成功;
select name from v$tablespace;
5.确定$ORACLE_HOME/dbs/spfileSUNCPS.ora内容是否发生变更:
$more spfileSUNCPS.ora
*.undo_tablespace='UNDOTBS11'
并执行如下语句更新pfile参数文件:
create pfile from spfile;
File created.
6.删除原UNDO表空间的数据文件。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7590112/viewspace-1062390/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7590112/viewspace-1062390/
803

被折叠的 条评论
为什么被折叠?



