第8步:安装Oracle

    1. 安装Oracle
注意,安装 Oracle 时须要以 oracle 用户身份执行,在那以前须要以 root 身份执行 xhost+ ,即命令:
代码 1
[root@sgdb1~]# xhost+
[root@sgdb1~]# su - oracle

 

graphic
1   执行 xhost+
[oracle @sgdb1~]$ cd database
[oracle @sgdb1~]$ ./runinstaller
graphic

 

2        执行 runInstaller
      1. 取消软件更新
取消勾选【 I wish to receive… 】,点击【 Next

 

graphic
35        取消更新邮件通知
      1. 跳过软件更新
选择【 Skip software
点击【 Next

 

graphic
36        跳过软件更新
      1. Oracle 安装选项
选择【 Install database software only 】,选择只安装数据库,不安装实例
点击【 Next

 

graphic
37        只安装数据库,不安装实例
      1. Oracle 安装方式
点击【 Oracle Real Application Clusters Database Installation 】,选择 RAC 方式安装,并将两个节点勾选。
注意此处要相似 grid 用户那样配置互信,点击【 SSH Connectivity 】配置户型,这次再也不详细描述。
点击【 Next 】,若是没有配置互信,会报错

 

graphic
38       RAC 方式安装
      1. Oralce 安装语言
注意要将 Simplified Chinese 加入到选中的语言中
点击【 Next

 

graphic
39        选择语言
      1. 安装版本选择
选择 Enterprise 版本(企业级),能够点击【 Select Options 】来确认安装内容
确认无误后,点击【 Next

 

graphic
40        选择 Enterprise 方式
      1. 选择安装目录
Oracle 对应的环境变量:
ORACLE_BASE     /oracle/db
ORACLE_HOME /oracle/db/product/11.2.0
       
点击【 Next

 

graphic
41        安装目录 (图有误,按文字标准)
      1. 选择组
ODDBA 组,选择 dba
OSOPER 组,留空
        点击【 Next

 

graphic
42        选择组
      1. 执行安装前检查
有若干错误,直接点击【 Ignore All 】便可

 

graphic
43        执行安装前检查
        点击【 Yes 】,确认忽略问题

 

graphic
44        确认忽略问题
      1. 安装信息统计
确认无误后,点击【 Install 】执行安装

 

graphic
45        安装信息统计
      1. 安装结束前,须要执行脚本
安装到最后阶段,须要在两节点( SGDB1 SGDB2 )上分别以 root 身份执行这个脚本:

 

graphic
46        安装结束前须要执行的脚本
代码 31
[root@sgdb1 ~]# /oracle/oraInventory/orainstRoot.sh
Changing permissions of /oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/oraInventory to oinstall.
The execution of the script is complete.
 
代码 32
[root@sgdb2 ~]# /oracle/oraInventory/orainstRoot.sh
Changing permissions of /oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/oraInventory to oinstall.
The execution of the script is complete.
 
代码 33
[root@sgdb1 ~]# /oracle/db/product/11.2.0/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /oracle/db/product/11.2.0
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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.
 
代码 34
[root@sgdb2 ~]# /oracle/db/product/11.2.0/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /oracle/db/product/11.2.0
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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.
 
此时点击【 OK 】,会看到已完成安装,点击【 Close

 

graphic
47        安装完成
相关文章
相关标签/搜索