码迷,mamicode.com
首页 > 其他好文 > 详细

【练习】增加控制文件至三个

时间:2016-12-01 03:53:59      阅读:117      评论:0      收藏:0      [点我收藏+]

标签:fas   tar   div   16px   base   instance   alter   code   练习   

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

 

【练习】增加控制文件至三个

标签:fas   tar   div   16px   base   instance   alter   code   练习   

原文地址:http://www.cnblogs.com/tomatoes-/p/6120344.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!