root 17889 1 0 14:47:27 0:00 /oracle/crs/bin/crsd.bin reboot
oracle 18211 18093 0 14:47:28 0:00 /bin/sh -c ulimit -c unlimited; cd /oracle/crs/log/node2/cssd; /oracle/crs
从现在node2上的进程就能看出,执行完vipca.sh后,会多出三个后台进程。
root@node1 # crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....c03.gsd application ONLINE ONLINE node1
ora....c03.ons application ONLINE ONLINE node1
ora....c03.vip application ONLINE ONLINE node1
ora....c04.gsd application ONLINE ONLINE node2
ora....c04.ons application ONLINE ONLINE node2
ora....c04.vip application ONLINE ONLINE node1
4. 安装数据库软件(binary)时需在最后一步:执行$ORACLE_HOME/root.sh
root@node2 #$ORACLE_HOME/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/10g
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it (y/n) [n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it (y/n) [n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it (y/n) [n]: y
Copying coraenv to /usr/local/bin ...
Creating /var/opt/oracle/oratab file...
Entries will be added to the /var/opt/oracle/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.
该脚本的作用在于在指定的目录(默认为/usr/local/bin)下创建dbhome,oraenv,coraenv,在/var/opt/oracle/里创建oratab文件。
root@node2# ls –rlt /usr/local/bin
total 18
-rwxr-xr-x 1 oracle root 2428 Apr 2 15:07 dbhome
-rwxr-xr-x 1 oracle root 2560 Apr 2 15:07 oraenv
-rwxr-xr-x 1 oracle root 2857 Apr 2 15:07 coraenv
root@node2 # ls –rlt /var/opt/oracle/
total 10
-rw-r--r-- 1 root root 55 Apr 2 14:42 oraInst.loc
drwxrwxr-x 5 root root 512 Apr 2 14:47 oprocd
drwxr-xr-x 3 root root 512 Apr 2 14:47 scls_scr
-rw-r--r-- 1 root oinstall 48 Apr 2 14:47 ocr.loc
-rw-rw-r-- 1 oracle root 678 Apr 2 15:07 oratab
root@node1 # /oracle/10g/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/10g
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it (y/n) [n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it (y/n) [n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it (y/n) [n]: y
Copying coraenv to /usr/local/bin ...
Creating /var/opt/oracle/oratab file...
Entries will be add