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. MySQL Multi-Range Read

    MySQL 5.6版本提供了很多性能优化的特性,其中之一就是 Multi-Range Read 多范围读(MRR) , 它的作用针对基于辅助/第二索引的查询,减少随机IO,并且将随机IO转化为顺序IO ...

  2. ffmpeg推送RTSP直播流到EasyDarwin报错问题的修复

    在之前的博客<ffmpeg推送,EasyDarwin转发,vlc播放 实现整个RTSP直播>中,我们介绍了如何采用ffmpeg进行RTSP推送,实现EasyDarwin直播分发的功能,近期 ...

  3. CIL

    CIL 学习 http://www.cnblogs.com/chengxingliang/category/306943.html

  4. Java 对称加密

    最近在做一个用户 token 功能,学习了加密相关 AES/DES.RSA 等.其中涉及一个对称和非对称加密问题.对称加密虽然没有非对称加密那样安全性高,但好处是加密速度快,但某些场合还是可以选择使用 ...

  5. 使用macbook破解WPA/WPA2 wifi密码

    文本仅供学习交流. 我使用的系统是macbook pro 15: 安装aircrack-ng 使用homebrew安装,命令: brew install aircrack-ng 抓包-抓取带密码的握手 ...

  6. miniofs 配置使用

    1. rpm  // RPM 包下载 https://github.com/minio/minfs/releases/tag/RELEASE.2017-02-26T20-20-56Z // 安装 yu ...

  7. Linux环境安装nginx

    安装需要以下工具: yum -y install gcc gcc-c++ autoconf automake 模块依赖: yum -y install zlib zlib-devel openssl ...

  8. C51 一个非常有用的位操作 --- 其中一位置 0 其它位不变

    C51 一个非常有用的位操作 --- 其中一位置 0 其它不变 C51 中经常操作位,以下方法就非常方便,来自 1 s &= ~(1 << j) /* 将变量s的第j位置成0,其余 ...

  9. CentOS上面搭建SVN服务器

    1.安装svn sudo yum install subversion 查看安装位置 which svnserve 确认安装成功 svnserve --version 2.修改全局配置文件修改全局配置 ...

  10. Yii2 Post请求的时候出现400错误

    Bad Request (#400) Unable to verify your data submission.   http://www.yiiframework.com/forum/index. ...