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

[root@sgdb1~]# su - oracle

1  执行xhost+
[oracle @sgdb1~]$ cd database

[oracle @sgdb1~]$ ./runinstaller

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

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

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

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

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

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

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

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

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

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

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

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

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】

47       安装完成
 
 
 

第8步:安装Oracle的更多相关文章

  1. 在Linux上安装Oracle RAC 12 c(12.1) 虚拟机,一步一步向导

    Oracle RAC 12 c(12.1)在Linux上安装虚拟机,一步一步向导 今天我们将看到如何安装 12 c版本1 RAC(真正的应用程序集群)数据库2 Linux 64位的虚拟机 使用VMWa ...

  2. 一步一步搭建 oracle 11gR2 rac+dg之grid安装(四)【转】

    一步一步在RHEL6.5+VMware Workstation 10上搭建 oracle 11gR2 rac + dg 之grid安装 (四) 转自 一步一步搭建 oracle 11gR2 rac+d ...

  3. 一步一步搭建oracle 11gR2 rac+dg之database安装(五)【转】

    一步一步在RHEL6.5+VMware Workstation 10上搭建 oracle 11gR2 rac + dg 之database安装 (五)   转自 一步一步搭建oracle 11gR2 ...

  4. DBArtist之Oracle入门第3步: 安装配置PL/SQL Developer

    操作系统:            WINDOWS 7 (64位) 数据库:               Oracle 11gR2 (64位) PL/SQL Developer :    PL/SQL ...

  5. DBArtist之Oracle入门第1步: 如何安装Oracle 11g

    操作系统:  Windows 7 数据库   :  Oracle 11gR2 第一步: 下载Oracle安装包 Oracle官网:  https://www.oracle.com/index.html ...

  6. 安装oracle

    1.安装vnc  yum install tigervnc tigervnc-server 2.vncserver启动 3.安装依赖库 yum install -y compat-libstdc*   ...

  7. CentOS7安装Oracle 11gR2 安装

    概述 Oracle 在Linux和window上的安装不太一样,公司又是Linux系统上的Oracle,实在没辙,研究下Linux下Oracle的使用,oracle默认不支持CentOS系统安装,所以 ...

  8. Linux CentOS下安装Oracle

    1 .在安装oracle之前首先安装以下组件包,直接输入下列语句安装. yum install binutils* -y yum install compat-lib* -y yum install ...

  9. linux下一步一步安装禅道项目管理工具

    linux下一步一步安装禅道项目管理工具 因为禅道官网的安装教程实在是太简陋了,所以记录在此. 1.安装apache服务 archlinux下直接 sudo pacman -S apache ubun ...

随机推荐

  1. 【Python】学习笔记十:字典

    字典是Python中唯一的映射类型(哈希表) 字典的对象时可变的,但字典的键值必须是用不可变对象,并且一个字典中可以使用不同类型的键值 1.定义字典 dict={key1:value1,key2:va ...

  2. Spring MVC坑汇总+Stackoverflow巧解答

    1.http://stackoverflow.com/questions/25598406/spring-annotaion-autowired-inside-methods Q: Autowire ...

  3. sql 中 ALTER 和 UPDATE 的区别

    alter 是DDL语句,是修改数据库中对象(表,数据库,视图..)的语句. 如需在表中添加列,请使用下面的语法: ALTER TABLE table_name ADD column_name dat ...

  4. 解决在IE9,IE10浏览器下,程序没有任何错误,easy ui页面不加载任何数据的问题

    对于web应用程序,经常用到开发人员工具,按F12,可以调试脚本,可以查看监视网络,查看各页面加载时间,非常方便,今天在调试js时,不小心打开了兼容性视图, 之后每次打打开页面时,均不显示页面post ...

  5. Docker运行报Cannot connect to the Docker daemon错误

    核心问题所在:权限不足 操作docker命令提示:Cannot connect to the Docker daemon 请切换管理员权限,root权限,root安装的一般的用户访问会存在此问题.

  6. 从1KW条数据中筛选出1W条最大的数

    using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using S ...

  7. Android中的倒计时实现

    一.android.os包下提供了倒计时的抽象工具类: public abstract class CountDownTimer { /** * Millis since epoch when ala ...

  8. Hadoop文件解压缩

    Class org.apache.hadoop.io.compress .CompressionCodecFactory A factory that will find the correct co ...

  9. centos7 安装php 多线程pthreads

    第一步:yum源更新 yum update 第二步:下载php7源码 wget http://124.202.164.8/files/312100000A0BB72D/cn.php.net/distr ...

  10. c#各类型转byte[]或转回

    var tmp = BitConverter.ToInt32(new byte[]{...}); var bytes = BitConverter.GetBytes(tmp); 而String转byt ...