How to change Hostname / IP for a Grid Infrastructure Oracle Restart Standalone Configuration (SIHA) (文檔 ID 1552810.1)

來源:互聯網
上載者:User

標籤:nbsp   desire   ida   bsp   convert   sys   iter   state   host name   

 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 #6SQL> 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

 

How to change Hostname / IP for a Grid Infrastructure Oracle Restart Standalone Configuration (SIHA) (文檔 ID 1552810.1)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.