Install the Oracle 11.2.0.4 database software and execute root. sh. This is nothing special.
Then, we need to modify the ORACLE binary file permissions of oracle RDBMS so that the oracle database process can obtain the ASM disk group.
[Root @ lunar5 ~] # Su-grid
[Grid @ lunar5 ~] $ ORACLE_HOME/bin/setasmgidwrap o =/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/oracle
[Grid @ lunar5 ~] $ Ll/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/oracle
-Rwsr-s -- x 1 oracle asmadmin 239626689 Feb 15/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/oracle
[Grid @ lunar5 ~] $
Note: Here/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/oracle is the ORACLE_HOME for installing oracle rdbms.
Then, add the database to CRS and start the database:
[Oracle @ lunar5 ~] $ Srvctl add database-d lunar-n lunar5-o $ ORACLE_HOME-p + DATADG2/LUNAR/PARAMETERFILE/spfile.272.892409049-s OPEN-y AUTOMATIC-a "TEMPDG, DATADG1, DATADG2, DATADG3 "-t IMMEDIATE
[Oracle @ lunar5 ~] $
Check the configuration of the database in ocr:
[Oracle @ lunar5 ~] $ Srvctl config database-d lunar
Database unique name: lunar
Database name: lunar5
Oracle home:/u01/app/oracle/product/11.2.0.4/dbhome_1
Oracle user: oracle
Spfile: + DATADG2/LUNAR/PARAMETERFILE/spfile.272.892409049
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: lunar
Database instances:
Disk Groups: TEMPDG, DATADG1, DATADG2, DATADG3
Mount point paths:
Services:
Type: RAC
Database is administrator managed
[Oracle @ lunar5 ~] $
Start the database:
[Oracle @ lunar5 ~] $ Srvctl start database-d lunar
[Oracle @ lunar5 ~] $
Check the crs status:
[Root @ lunar5 ~] # Crsctl status res-t
--------------------------------------------------------------------------------
Name target state server STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
Ora. DATADG1.dg
ONLINE lunar5
Ora. DATADG2.dg
ONLINE lunar5
Ora. DATADG3.dg
ONLINE lunar5
Ora. LISTENER. lsnr
ONLINE lunar5
Ora. TEMPDG. dg
ONLINE lunar5
Ora. asm
ONLINE lunar5 Started
Ora. gsd
OFFLINE lunar5
Ora. net1.network
ONLINE lunar5
Ora. ons
ONLINE lunar5
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
Ora. LISTENER_SCAN1.lsnr
1 ONLINE lunar5
Ora. cvu
1 ONLINE lunar5
Ora. lunar. db
1 ONLINE lunar5 Open
Ora. lunar5.vip
1 ONLINE lunar5
Ora. Productname
1 ONLINE lunar5
Ora. scan1.vip
1 ONLINE lunar5
[Root @ lunar5 ~] #
So far, the entire process of identifying the old storage RAC (mainly recognition ASM) with the new host is complete. If it is a file system environment, it is much simpler than this, and all ASM can be omitted.