首页 > 代码库 > 【练习】增加控制文件至三个
【练习】增加控制文件至三个
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
【练习】增加控制文件至三个
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。