1.安装相关的包(略)

2.建oracle用户 组

  groupadd oinstall --$ORACLE HOME/rdbms/lib/config.c
groupadd dba
chattr -i /etc/passwd /etc/shadow
useradd -g oinstall -G dba oracle
passwd oracle
chattr +i /etc/passwd /etc/shadow

3.系统参数调整(略)

[root@localhost oracle]# cat /etc/sysctl.conf
[root@localhost oracle]# cat /etc/security/limits.conf

4.环境变量设置

 export ORACLE_BASE=/home/oracle/app
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/jdk/bin:$PATH
export LANG="en_US.UTF-8"
export NLS_LANG=american_AMERICA.UTF8
export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"

5.静默安装之编辑response文件(注意:11gR2以后最好是在模板的基础上做)

cd /home/oracle/app/database/response
vi db_install_new.rsp oracle.install.option=INSTALL_DB_SWONLY #只安装数据库软件
UNIX_GROUP_NAME=dba #Oracle用户用于安装软件的组名 [oracle@localhost ~]$ cat /etc/oraInst.loc
INVENTORY_LOCATION=/u01/app/oraInventory #相关目录
INVENTORY_LOCATION=/home/oracle/oraInventory #oracle产品清单目录
ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1 #oracle安装目录
ORACLE_BASE=/home/oracle/app #oracle基础目录 #安装版本
oracle.install.db.InstallEdition=EE #用户组设置
oracle.install.db.DBA_GROUP=dba #oracle用户用于授权OSDBA权限的组名
oracle.install.db.OPER_GROUP=oinstall #oracle用户用于授权OSPRR权限的组名 #延迟安全检查
DECLINE_SECURITY_UPDATES=true [oracle@localhost ~]$ cat /etc/oraInst.loc

6.开始静默安装

[oracle@localhost database]$  ./runInstaller -silent -responseFile /home/oracle/app/database/response/db_install_new.rsp -ignoreSysPrereqs
Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 29365 MB Passed
Checking swap space: must be greater than 150 MB. Actual 4016 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-01-29_08-57-06PM. Please wait ...[oracle@localhost database]$ [WARNING] [INS-13014] Target environment do not meet some optional requirements.
CAUSE: Some of the optional prerequisites are not met. See logs for details. /home/oracle/oraInventory/logs/installActions2018-01-29_08-57-06PM.log
ACTION: Identify the list of failed prerequisite checks from the log: /home/oracle/oraInventory/logs/installActions2018-01-29_08-57-06PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
You can find the log of this install session at:
/home/oracle/oraInventory/logs/installActions2018-01-29_08-57-06PM.log
The installation of Oracle Database 11g was successful.
Please check '/home/oracle/oraInventory/logs/silentInstall2018-01-29_08-57-06PM.log' for more details. As a root user, execute the following script(s):
1. /home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh [root@localhost ~]# /home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh
Check /home/oracle/app/oracle/product/11.2.0/dbhome_1/install/root_localhost.localdomain_2018-01-30_14-21-01.log for the output of root script [oracle@localhost database]$ exit
登出
[root@localhost oracle]# /u01/app/oracle/product/12.2.0/dbhome_1/root.sh

7.验证:

[root@localhost ~]# su - oracle
[oracle@localhost ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Wed Jan 31 15:01:32 2018 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to an idle instance.

Oracle11gR2--静默安装数据库软件的更多相关文章

  1. oracle11gR2静默安装

    oracle11G静默安装过程——linux环境 1.操作系统及Oracle版本 Linux版本:CentOS release 6.8 (Final) Oracle版本:Oracle Database ...

  2. CentOS7.9静默安装Oracle19C软件

    CentOS7.9静默安装Oracle19C软件 Oracle发布了支持的版本.可以看到了Oracle11gR2和Oracle12C.一直到2022年就不支持patch和服务.(感慨Oracle 11 ...

  3. 单机静默安装GI软件并创建ASM实例和ASM磁盘组

    环境:RHEL 6.4 + Oracle 11.2.0.4 需求:单机静默安装GI软件并创建ASM实例和ASM磁盘组,为后续迁移数据库文件到ASM做准备 1. 安装配置GI软件 2. 创建ASM实例 ...

  4. linux下的oracle11gR2静默安装,经验分享

    说明: 1.我的linux是64位的redhat6.5,安装的oracle版本是11.2.0的. 2.我这是自己安装的linux虚拟机,主机名为ora11g,ip为192.168.100.122 3. ...

  5. 《Oracle Database 12c DBA指南》第二章 - 安装Oracle和创建数据库(2.2 安装数据库软件)

    当前关于12c的中文资料比较少,本人将关于DBA的一部分官方文档翻译为中文,很多地方为了帮助中国网友看懂文章,没有按照原文句式翻译,翻译不足之处难免,望多多指正. 2.2 安装数据库软件 这部分简短讲 ...

  6. redhat+11g+rac 安装数据库软件时只有一个节点可选

    在安装数据库软件时,只能检测到一个节点 650) this.width=650;" title="捕获.JPG" src="http://s3.51cto.co ...

  7. CentOS6.5上Oracle11gR2静默安装

    一.环境准备环境 操作系统:CentOS release 6.5 (Final) 内核版本:2.6.32-431.el6.x86_64 物理内存:2G(必须大于1G) swap分区:3G(必须大于3G ...

  8. oracle11g-R2静默安装报错[INS-32013]解决方案

    问题描述: oracle静默安装很强大...,参数搞不对.安装就扯dan了....这个报错搞了一个下午.终于搞定了如释负重.... 如果当初选择仅仅安装oracle软件就没多事情.想一步完成(数据库软 ...

  9. CentOS 6.2 X64上64位Oracle11gR2 静默安装,静默设置监听,静默建库经验

    1 安装前环境:  操作系统:CetnOS6.2x64 最小化安装,已配置好网络IP:172.16.2.182,物理内存8GB,硬盘100GB.  已下载: Linux.x64_11gR2_datab ...

随机推荐

  1. android 属性动画和布局动画p165-p171

    一.属性动画 ObjectAnimator ObjectAnimator是属性动画框架中最重要的实行类,创建一个ObjectAnimator只需通过他的静态工厂类直接返回一个ObjectAnimato ...

  2. LeetCode OJ:Missing Number (丢失的数)

    Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missin ...

  3. Dockerfile 模版

    最近一直在用docker,总结了一个靠谱的模版,分享给大家. From ubuntu:14.04 MAINTAINER pidong.li@genetronhealth.com RUN echo de ...

  4. NGUI 学习使用

    http://www.tasharen.com/forum/index.php?board=12.0

  5. 一次不成功的脚本Hack[捕鱼达人游戏]

    捕鱼达人这款游戏[http://keleyi.com/game/1/] 想当然的以为在这个id为“fishContainer”的div上绑定一个点击事件,子弹就可以快速的发射. 为此用油猴挂载了一个j ...

  6. 【MFC】MFC DLEdit 设计属于自己的编辑框_鼠标悬停

    MFC DLEdit 设计属于自己的编辑框 2012-02-04 13:00 by 捣乱小子, 3543 阅读, 5 评论, 收藏, 编辑 起因 无意间看到了大牛们写的自定义编辑框控件,于是找了个时间 ...

  7. 1138. Postorder Traversal (25)

    Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and in ...

  8. 重温CLR(六)方法和参数

    实例构造器和类(引用类型) 构造器是将类型的实例初始化为良好状态的特殊方法.构造器方法在“方法定义元数据表”中始终叫做.ctor(constructor的简称).创建引用类型的实例时,首先为实例的数据 ...

  9. serf  简单使用

    1. 介绍 // 以下为官方介绍,说白了就是进行系统的集群节点管理 Serf uses an efficient gossip protocol to solve three major proble ...

  10. C#防止程序多次运行

    经过我的测试,还比较好用,但是有个问题,如果不注销,用另一个用户进入,则程序不能判断出已运行.所以只限于用在单用户环境,还是不太完美. class Program { [STAThread] stat ...