zoukankan      html  css  js  c++  java
  • 【练习】增加控制文件至三个

    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
  • 相关阅读:
    子矩阵
    [Ahoi2008]Meet 紧急集合
    立体图
    CF933B A Determined Cleanup
    CF746G New Roads
    树的重量
    CF519E A and B and Lecture Rooms
    矩阵
    深入浅出乘法逆元
    20180519模拟赛T2——pretty
  • 原文地址:https://www.cnblogs.com/tomatoes-/p/6120344.html
Copyright © 2011-2022 走看看