①.查看控制文件
[oracle@dbserver ~]$ sqlplus / as sysdba
SQL>desc v$controlfile
SQL>select * from v$controlfile;
②.新建目錄
$mkdir -p u01/oradata/epps
$mkdir -p u02/oradata/epps
$mkdir -p u03/oradata/epps
③.檢查是否以spfile啟動
SQL>show parameter spfile;
(VALUE值不為空,為spfile啟動)
④.修改控制文件位置
SQL>alter system set control_files=
'u01/oradata/epps/control01.ctl',
'u02/oradata/epps/control02.ctl',
'u03/oradata/epps/control03.ctl'
scope=spfile;
⑤.關閉數(shù)據(jù)庫
SQL>shutdown immediate;
⑥.移動控制文件
SQL> ! mv /u01/app/oracle/oradata/epps/control01.ctl /u01/oradata/epps
SQL> ! mv /u01/app/oracle/oradata/epps/control02.ctl /u02/oradata/epps/
SQL> ! mv /u01/app/oracle/oradata/epps/control03.ctl /u03/oradata/epps/
⑦.啟動數(shù)據(jù)庫
SQL>startup
⑧.檢查完成
SQL>select * from v$controlfile
當前文章:Oracle在Linux下移動控制文件步驟
路徑分享:
http://weahome.cn/article/gdjcoc.html