oracle 增加控制文件
1、看control_file路径
SQL> show parameter controlNAME TYPE VALUE
------------------------------------ ----------- ------------------------------
control_file_record_keep_time integer 7
control_files string /inspur/app/oracle/oradata/orcl/control01.ctl, /inspur/app/oracle/oradata/orcl/control02.ctl
control_management_pack_access string DIAGNOSTIC+TUNING
2、复制控制文件
关库
SQL> shu immediate
到控制文件目录下
cd /inspur/app/oracle/oradata/orcl
复制一个命名control03.ctl
cp control01.ctl control03.ctl
3、修改spfile
启动到nomout状态
SQL> startup nomountalter system set control_files = '/inspur/app/oracle/oradata/orcl/control01.ctl','/inspur/app/oracle/oradata/orcl/control02.ctl','/inspur/app/oracle/oradata/orcl/control03.ctl' scope=spfile;
4、确认增加成功
重新起库,数据库正常
SQL> shu immedaite
SQL> startupSQL> show parameter control_filesNAME TYPE VALUE
------------------------------------ ----------- ------------------------------
control_files string /inspur/app/oracle/oradata/orcl/control01.ctl, /inspur/app/oracle/oradata/orcl/control02.ctl, /inspur/app/oracle/oradata/orcl/control03.ctl