1.查看控制文件:
SQL> select name from v$controlfile; NAME -------------------------------------------------------------------------------- /u01/app/oracle/oradata/ORA11GR2/control01.ctl /u01/app/oracle/fast_recovery_area/ORA11GR2/control02.ctl
2.增加控制文件:
SQL> alter system set control_files= 2 ‘/u01/app/oracle/oradata/ORA11GR2/control01.ctl‘, 3 ‘/u01/app/oracle/fast_recovery_area/ORA11GR2/control02.ctl‘, 4 ‘/u01/app/oracle/oradata/ORA11GR2/control03.ctl‘ scope=spfile; System altered.
3.操作系统拷贝控制文件
SQL> !cp /u01/app/oracle/oradata/ORA11GR2/control01.ctl /u01/app/oracle/oradata/ORA11GR2/control03.ctl
4.起库
SQL> startup ORACLE instance started. Total System Global Area 830930944 bytes Fixed Size 2257800 bytes Variable Size 536874104 bytes Database Buffers 289406976 bytes Redo Buffers 2392064 bytes Database mounted. Database opened.
5.查看控制文件:
SQL> select name from v$controlfile; NAME -------------------------------------------------------------------------------- /u01/app/oracle/oradata/ORA11GR2/control01.ctl /u01/app/oracle/fast_recovery_area/ORA11GR2/control02.ctl /u01/app/oracle/oradata/ORA11GR2/control03.ctl
时间: 2024-10-12 16:36:22