oracle 增加控制文件
1、看control_file路径
SQL> show parameter control
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
control_file_record_keep_time integer 7
control_files string /inspur/app/oracle/oradata/orc
l/control01.ctl, /inspur/app/o
racle/oradata/orcl/control02.c
tl
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 nomount
alter 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> startup
SQL> show parameter control_files
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
control_files string /inspur/app/oracle/oradata/orc
l/control01.ctl, /inspur/app/o
racle/oradata/orcl/control02.c
tl, /inspur/app/oracle/oradata
/orcl/control03.ctl