10 安装11gR2 oracle软件
解压oracle 11g 11.2.0.4.0版本的数据库软件:
解压前2个压缩文件,解压后copy database文件至/home/oracle目录:
[root@node1 ~]# unzip p13390677_112040_Linux-x86-64_1of7.zip
[root@node1 ~]# unzip p13390677_112040_Linux-x86-64_2of7.zip
Oracle用户登录图形界面,执行安装:
进入安装界面:
Next:
Next:
Next:
解决安装RAC数据库软件时,OUI找不到节点:
node1-> pwd
/u01/app/oracle/oraInventory/ContentsXML
node1-> ll
total 12
-rwxrwx— 1 oracle oinstall 329 Dec 25 21:11 comps.xml
-rwxrwx— 1 oracle oinstall 924 Dec 25 21:11 inventory.xml
-rwxrwx— 1 oracle oinstall 292 Dec 25 21:11 libs.xml
node1-> cat inventory.xml
<?xml version=”1.0″ standalone=”yes” ?>
<!– Copyright (c) 1999, 2013, Oracle and/or its affiliates.
All rights reserved. –>
<!– Do not modify the contents of this file by hand. –>
<INVENTORY>
<VERSION_INFO>
<SAVED_WITH>11.2.0.4.0</SAVED_WITH>
<MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME=”crs” LOC=”/u01/app/oracle/product/10.2.0/crs_1″ TYPE=”O” IDX=”1″ CRS=”true”>
<NODE_LIST>
<NODE NAME=”node1″/>
<NODE NAME=”node2″/>
</NODE_LIST>
</HOME>
<HOME NAME=”db” LOC=”/u01/app/oracle/product/10.2.0/db_1″ TYPE=”O” IDX=”2″>
<NODE_LIST>
<NODE NAME=”node1″/>
<NODE NAME=”node2″/>
</NODE_LIST>
</HOME>
<HOME NAME=”Ora11g_gridinfrahome1″ LOC=”/u01/app/11.2.0/grid” TYPE=”O” IDX=”3″ CRS=”true”>
<NODE_LIST>
<NODE NAME=”node1″/>
<NODE NAME=”node2″/>
</NODE_LIST>
</HOME>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>
node1->
在双节上去掉该文件的下述部分:
<HOME NAME=”crs” LOC=”/u01/app/oracle/product/10.2.0/crs_1″ TYPE=”O” IDX=”1″ CRS=”true”>
<NODE_LIST>
<NODE NAME=”node1″/>
<NODE NAME=”node2″/>
</NODE_LIST>
</HOME>
重新执行安装:
Next:
Next:
Next:输入第4步骤中创建的ORACLE_HOME目录:/u01/app/oracle/product/11.2.0/db_1
Next:
Next:
Next:
Next:
Next:
节点1:
[root@node1 ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_1
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]:
The file “oraenv” already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file “coraenv” already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
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 script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
[root@node1 ~]#
节点2:
[root@node2 ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_1
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]:
The file “oraenv” already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file “coraenv” already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
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 script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
[root@node2 ~]#