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©版权所有,禁止转载
  • 相关阅读:
    软件开的目录规范+sys,os,time模块
    模块与包
    匿名函数+函数递归+二分法+面向过程编程
    快捷键
    补充叠加多个装饰器:加载顺序与执行顺序+迭代器+自定义迭代器的方式:生成器+三元表达式
    闭包函数的应用+内置函数
    函数对象+函数嵌套+名称空间与作用域+闭包函数
    SP15637 Mr Youngs Picture Permutations 高维动态规划
    LG3825/BZOJ4945/LOJ2305 「NOI2017」游戏 dfs+2-SAT
    LG1198/BZOJ1012 「JSOI2008」最大数 线段树+离线
  • 原文地址:https://www.cnblogs.com/priestess-zhao/p/8366193.html
Copyright © 2011-2022 走看看