zoukankan      html  css  js  c++  java
  • How to change Hostname / IP for a Grid Infrastructure Oracle Restart Standalone Configuration (SIHA) (文档 ID 1552810.1)

     Therefore, please perform the next steps after the hostname was updated/changed/modified in the Oracle Restart configuration:

    1) Configure the CSS & OHAS services as root user as follows:

    # <11.2 Grid Infrastructure Oracle Home>/crs/install/roothas.pl -deconfig -force
    
    # <11.2 Grid Infrastructure Oracle Home>/crs/install/roothas.pl
    # cd <12.1 Grid infrastructure Oracle Home>/crs/install
    # perl roothas.sh -deconfig -force
    --This removes any configuration on the system that referenced the old host name.
    # cd <12.1 Grid infrastructure Oracle Home>
    # ./root.sh

    Go to the grid home's bin directory. Use the srvctl add database command with the -c SINGLE flag to add the database in an Oracle Restart configuration.
    Also use the srvctl add command to add the listener, the Oracle ASM instance, all Oracle ASM disk groups, and any database services to the Oracle Restart configuration.

     

      
    2) Please perform the next steps as oracle or grid OS user (as the Grid Infrastructure OS owner):  

    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl modify resource "ora.cssd" -init -attr "AUTO_START=1"  

    3) Restart the OHAS stack as grid or oracle OS user (as the Grid Infrastructure OS owner):

    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl stop has
    
    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl start has


    4) Check the CSS & OHAS state as grid or oracle OS user (as the Grid Infrastructure OS owner):

    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl check has
    
    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl check css
    
    $> <11.2 Grid Infrastructure Oracle Home>/bin/ crsctl stat resource
    
    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl stat res -t


    Note: If the CSS & OHAS service did NOT start, then you will need to reboot the Linux/unix box and check them again.

    5) Recreate the default listener (LISTENER) using port 1521 (or using your desired port), thru the NETCA GUI located on the new Grid Infrastructure Oracle Home (or manually if you do not have graphical access) as grid or oracle OS user (as the Grid Infrastructure OS owner):

    $> srvctl add listener
    
    $> srvctl start listener

    6) Please create the init+ASM.ora file on the <11.2 Grid Infrastructure Oracle Home>/dbs directory with the next parameters:

    asm_diskgroups= <list of diskgroups>
    
    asm_diskstring= '/dev/oracleasm/disks/*'  
    
    instance_type='asm'
    
    large_pool_size=12M


    7) Add the ASM instance as grid or oracle OS user (as the Grid Infrastructure OS owner):

    $> <11.2 Grid Infrastructure Oracle Home>/bin/srvctl add asm
    $> <12.1 Grid Infrastructure Oracle Home>/bin/srvctl add asm


    8) Enable ASM instance Auto Start as grid or oracle OS user (as the Grid Infrastructure OS owner) as follow:  

    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl modify resource "ora.asm" -attr "AUTO_START=1"   


    9) Make sure the disks are discovered by kfod as grid or oracle OS user (as the Grid Infrastructure OS owner) as follow:

    Example:

    $> <11.2 Grid Infrastructure Oracle Home>/bin/kfod asm_diskstring='ORCL:*' disks=all


    Or

    $> <11.2 Grid Infrastructure Oracle Home>/bin/kfod asm_diskstring='<full path ASM disks location>/*' disks=all


    10) If so, then startup the ASM instance as grid or oracle OS user (as the Grid Infrastructure OS owner) as follow:

    $> export ORACLE_SID=+ASM
    
    $> <11.2 Grid Infrastructure Oracle Home>/bin/sqlplus “/as sysasm”
    
    SQL> startup pfile=init+ASM.ora --#init file from point #6
    
    SQL> show parameter asm


    11) Validate that the candidate disks are being discovered:

    SQL> select  path  from v$asm_disk;


    12) Create a new ASM instance spfile:

    SQL> create spfile from pfile;


    13) Add the new ASM spfile and listener to the new ASM instance resource:

    $> <11.2 Grid Infrastructure Oracle Home>/bin/srvctl modify asm  -p <spfile full path>
    
    $> <11.2 Grid Infrastructure Oracle Home>/bin/srvctl modify asm  -l LISTENER

    14) Validate the OHAS (Oracle Restart) services start as follows:  

    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl  stop has
    
    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl  start has
    
    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl  stat res
    
    $> <11.2 Grid Infrastructure Oracle Home>/bin/crsctl  stat res -t
    Priestess©版权所有,禁止转载
  • 相关阅读:
    21. 斐波那契数列
    22. 旋转数组的最小数字
    php图像处理链接
    FileOprSer.class.php(文件上传与下载类)
    SqlHelper.class.php+分页类方法
    file写入方式 和copy
    file 读取方式
    pytest+allure+jenkins 持续集成平台生成allure报告
    memcached cas操作
    php-fpm
  • 原文地址:https://www.cnblogs.com/priestess-zhao/p/8366193.html
Copyright © 2011-2022 走看看