oracle 增加控制文件的方法

1、查看控制文件位置:
SQL>select name from v$controlfile;
NAME
--------------------------------------------------------------------------------
/datafile/orcl/control01.ctl
/u01/oracle/fast_recovery_area/orcl/control02.ctl
2:
shutdown immediate;
3:
然后拷贝一个控制文件
$cp /datafile/orcl/control01.ctl  /oraclebackup/control03.ctl
or
#cp /datafile/orcl/control01.ctl  /oraclebackup/control03.ctl
#chown oracle:oinstall /oraclebackup/control03.ctl
4:
然后如果用的spfile就用alter system 如果是用的pfile直接修改文件,这里用spfile
sqlplus /nolog conn /as sysdba
startup nomount
务必按照顺序:
alter system set control_files='/datafile/orcl/control01.ctl','/u01/oracle/fast_recovery_area/orcl/control02.ctl','/oraclebackup/control03.ctl',  sope=spfile;
System altered.
5:
然后shutdown immediate
startup
就ok了
6:
再一次查看确认
select name from v$controlfile;
SQL> select name from v$controlfile;
NAME
--------------------------------------------------------------------------------
/datafile/orcl/control01.ctl
/u01/oracle/fast_recovery_area/orcl/control02.ctl
/oraclebackup/control03.ctl



你可能感兴趣的:(oracle数据库)