一、首先将表空间设置为只读数据库
alter tablespace sysaux read only;oracle
二、而后将表空间设置为脱机状态app
alter database datafile '/oracle/app/oradata/sysaux01.dbf'offline;网站
三、而后将数据文件拷贝到一个新的位置spa
host cp '/oracle/app/oradata/sysaux01.dbf' '/orcl/sysaux01.dbf'blog
四、从新命名数据文件到一个新的位置it
alter database rename file '/oracle/app/oradata/sysaux01.dbf' to '/orcl/sysaux01.dbf'table
五、而后将数据文件联机file
alter database datafile '/orcl/sysaux01.dbf' online权限
六、将表空间设置为读写权限
alter tablespace sysaux read write;
七、最后删掉旧有的数据文件
重庆思庄18年4月OCP认证培训周末班正在授课,欢迎联系试听!新的OCP周末班将于6月2日开课,火热报名中,名额有限,请提早预约!更多详情访问思庄网站咨询在线客服。