zoukankan      html  css  js  c++  java
  • RAC和ASM环境下修改控制文件control file11

    1,目前控制文件只有一个,为了安全性,计划增加到3

    SQL> select name from v$controlfile;


    NAME
    --------------------------------------------------------------------------------

    +DATA/tyolap/controlfile/current.256.772291325

    2,执行如下sql


    alter system set control_files = '+DATA/tyolap/controlfile/control01.ctl','+DATA/tyolap/controlfile/control02.ctl','+DATA/tyolap/controlfile/control03.ctl' scope=spfile;

     

    3,停止数据库

    [grid@dtydb3 ~]$ srvctl stop database -d tyolap

     

    4,复制控制文件

    ASMCMD> pwd
    +data/TYOLAP/CONTROLFILE
    ASMCMD> ls
    Current.256.772291325
    test.ctl
    ASMCMD> cp Current.256.772291325 control01.ctl
    copying +data/TYOLAP/CONTROLFILE/Current.256.772291325 -> +data/TYOLAP/CONTROLFILE/control01.ctl
    ASMCMD> cp Current.256.772291325 control02.ctl
    copying +data/TYOLAP/CONTROLFILE/Current.256.772291325 -> +data/TYOLAP/CONTROLFILE/control02.ctl
    ASMCMD> cp Current.256.772291325 control03.ctl
    copying +data/TYOLAP/CONTROLFILE/Current.256.772291325 -> +data/TYOLAP/CONTROLFILE/control03.ctl
    ASMCMD>

    5,重新启动数据库

    [grid@dtydb3 ~]$ srvctl start database -d tyolap

    6,验证结果


    SQL> select name from v$controlfile;

    NAME
    --------------------------------------------------------------------------------
    +DATA/tyolap/controlfile/control01.ctl
    +DATA/tyolap/controlfile/control02.ctl
    +DATA/tyolap/controlfile/control03.ctl

  • 相关阅读:
    208. Implement Trie (Prefix Tree)
    97. Interleaving String
    314. Binary Tree Vertical Order Traversal
    windows获取IP和MAC地址【Qt】
    阳历阴历转换
    getDat(char *val)获得某一天是这一年中的第几天
    int位数的获取及int类型转char *
    以二进制形式输出char *数据
    char类型变量二进制形式输出
    int类型变量以二进制形式输出
  • 原文地址:https://www.cnblogs.com/weixun/p/3112664.html
Copyright © 2011-2022 走看看