10.2.0.4 及 11.2.0.3 測試
[oracle@mmdb2 ~]
[root@mmdb1 crs]# moreroot.sh
!/bin/sh
/oracle/product/10.2.0/crs/install/rootinstall
/oracle/product/10.2.0/crs/install/rootconfig
拷貝grid(base及home)
[root@mmdb1 crs]# ./root.sh
WARNING: directory '/oracle/product/10.2.0' is not owned by root
WARNING: directory '/oracle/product' is not owned by root
WARNING: directory '/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/oracle/product/10.2.0' is not owned by root
WARNING: directory '/oracle/product' is not owned by root
WARNING: directory '/oracle' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node :
node 1: mmdb1 mmdb1-priv mmdb1
node 2: mmdb2 mmdb2-priv mmdb2
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
mmdb1
mmdb2
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Waiting for the Oracle CRSD and EVMD to start
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
Creating VIP application resource on (0) nodes.
Creating GSD application resource on (0) nodes.
Creating ONS application resource on (0) nodes.
Starting VIP application resource on (2) nodes...
Starting GSD application resource on (2) nodes...
Starting ONS application resource on (2) nodes...
Done.
拷貝ORACLE安裝目錄
[oracle@mmdb1 ~]$ crs_stat -t
Name Type Target State Host
++++++++++++++++++++++++++++++++++++++++++++++
ora.mmdb.db application ONLINE ONLINE mmdb2
ora....b1.inst application ONLINE OFFLINE
ora....b2.inst application ONLINE ONLINE mmdb2
ora....SM1.asm application ONLINE OFFLINE
ora....B1.lsnr application ONLINE OFFLINE
ora.mmdb1.gsd application ONLINE ONLINE mmdb1
ora.mmdb1.ons application ONLINE ONLINE mmdb1
ora.mmdb1.vip application ONLINE ONLINE mmdb1
ora....SM2.asm application ONLINE ONLINE mmdb2
ora....B2.lsnr application ONLINE ONLINE mmdb2
ora.mmdb2.gsd application ONLINE ONLINE mmdb2
ora.mmdb2.ons application ONLINE ONLINE mmdb2
ora.mmdb2.vip application ONLINE ONLINE mmdb2
[root@mmdb1 db]# ./root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/product/10.2.0/db
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
[oracle@mmdb1 ~]
crs_start -all
Attempting to start ora.mmdb1.ASM1.asm on member mmdb1
Start of ora.mmdb1.ASM1.asm on member mmdb1 succeeded.
Attempting to start ora.mmdb.mmdb1.inst on member mmdb1
Start of ora.mmdb.mmdb1.inst on member mmdb1 succeeded.
Attempting to start ora.mmdb1.LISTENER_MMDB1.lsnr on member mmdb1
Start of ora.mmdb1.LISTENER_MMDB1.lsnr on member mmdb1 succeeded.
[oracle@mmdb1 ~]$ crs_stat -t
Name Type Target State Host
+++++++++++++++++++++++++++++++++++++++++++++++
ora.mmdb.db application ONLINE ONLINE mmdb2
ora....b1.inst application ONLINE ONLINE mmdb1
ora....b2.inst application ONLINE ONLINE mmdb2
ora....SM1.asm application ONLINE ONLINE mmdb1
ora....B1.lsnr application ONLINE ONLINE mmdb1
ora.mmdb1.gsd application ONLINE ONLINE mmdb1
ora.mmdb1.ons application ONLINE ONLINE mmdb1
ora.mmdb1.vip application ONLINE ONLINE mmdb1
ora....SM2.asm application ONLINE ONLINE mmdb2
ora....B2.lsnr application ONLINE ONLINE mmdb2
ora.mmdb2.gsd application ONLINE ONLINE mmdb2
ora.mmdb2.ons application ONLINE ONLINE mmdb2
ora.mmdb2.vip application ONLINE ONLINE mmdb2