17 安装oracle软件
Oracle用户登录图形界面,执行安装介质中的10201_databse_inux-x86-64来进行。
Next:
Next:
Next:这里需要注意指定oracle软件的家目录,即/u01/app/oracle/product/10.2.0/db_1
Next:选中所有节点
Next:
根据提示,重新将双节点的 ip_local_port_range=9000 – 65500.
修改为ip_local_port_range=1024 – 65000。
Next:
Next:选中只安装软件;
Next:
Next:
Next:
Next:
根据提示,分别以root用户在双节点上执行:/u01/app/oracle/product/10.2.0/db_1/root.sh
Node1:
[root@node1 ~]# /u01/app/oracle/product/10.2.0/db_1/root.sh
Running Oracle10 root.sh script…
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/10.2.0/db_1
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 …
Creating /etc/oratab file…
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.
[root@node1 ~]#
Node2:
[root@node2 ~]# /u01/app/oracle/product/10.2.0/db_1/root.sh
Running Oracle10 root.sh script…
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/10.2.0/db_1
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 …
Creating /etc/oratab file…
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.
[root@node2 ~]#
Next:
完成,在双节点上安装Oracle数据库软件!
node1-> hostname
node1.oracleonlinux.cn
node1-> env|grep ORA
ORA_CRS_HOME=/u01/app/oracle/product/10.2.0/crs_1
ORACLE_SID=devdb1
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
node1-> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 – Production on Sat Dec 21 23:38:16 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> !
node1-> ssh node2
node2-> env|grep ORA
ORA_CRS_HOME=/u01/app/oracle/product/10.2.0/crs_1
ORACLE_SID=devdb2
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
node2-> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 – Production on Sat Dec 21 23:38:50 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL>