首页 > 代码库 > 基于RHEL 6.5安装Oracle 11g详细教程(5)——安装Oracle

基于RHEL 6.5安装Oracle 11g详细教程(5)——安装Oracle

5  安装Oracle

[root@oracle ~]# cd /temp/

[root@oracle temp]# ls

linux.x64_11gR2_database_1of2.zip lost+found yum

linux.x64_11gR2_database_2of2.zip pdksh-5.2.14-37.el5_8.1.x86_64.rpm

[root@oracle temp]# unzip linux.x64_11gR2_database_1of2.zip

[root@oracle temp]# unzip linux.x64_11gR2_database_2of2.zip

[root@oracle temp]# ls

database lost+found

linux.x64_11gR2_database_1of2.zip pdksh-5.2.14-37.el5_8.1.x86_64.rpm

linux.x64_11gR2_database_2of2.zip yum

1)如下图所示,选择oracle,敲击回车键

05-001

2)如下图所示,输入Password(1qaz@WSX,敲击回车键

05-002

3)如下图所示,进入oracle用户的桌面

05-003

[oracle@oracle Desktop]$ cd /temp/database/

[oracle@oracle database]$ ls

doc install response rpm runInstaller sshsetup stage welcome.html

[oracle@oracle database]$ ./runInstaller

4)如下图所示,在./runInstaller之后,等待…

05-004

5)如下图所示,取消选中I wish to receive security updates via My Oracle Support,单击Next

05-005

6)如下图所示,单击Yes

05-006

7)如下图所示,选中Install database software only,单击Next

05-007

8)如下图所示,缺省选择,单击Next

05-008

9)如下图所示,将Simplitied Chinese添加到Selected Languages列表中,单击Next

05-009

10)如下图所示,缺省选择,单击Next

05-010

11)如下图所示,缺省选择,单击Next

05-011

12)如下图所示,缺省选择,单击Next

05-012

13)如下图所示,缺省选择,单击Next

05-013

14)如下图所示,选中Ignore All(请确保被忽略的这些Package已经全部成功安装),单击Next

05-014

15)如下图所示,单击Finish

05-015

16)如下图所示,Oracle 11g R2 x86_64正在安装中…

05-016

17)如下图所示,根据提示执行两个必须的脚本文件(/u01/app/oraInventory/orainstRoot.sh/u01/app/oracle/product/11.2.0/db_1/root.sh)。

05-017

[root@oracle ~]# sh /u01/app/oraInventory/orainstRoot.sh

Changing permissions of /u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete.

[root@oracle ~]# sh /u01/app/oracle/product/11.2.0/db_1/root.sh

Running Oracle 11g root.sh script...

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]:

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.

Finished product-specific root actions.

18)如下图所示,Oracle 11g R2 x86_64已经成功安装完成,单击Close

05-018

You can find the log of this install session at:

/u01/app/oraInventory/logs/installActions2014-05-14_11-17-38PM.log