RAC安装时需要执行4个脚本及意义(三)

2014-11-24 15:19:36 · 作者: · 浏览: 2
n ...

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 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.