Preface
 
    Today I'm gonna export some test data to another server.The source server is Windows Server 2012 R2 and the tartget server is CentOS 7.2.Eventually,I found out that when using the OUI of Oracle 11g,the mouse cannot click anything in the interface even to click "exit".I'm afraid it's not properly supported on CentOS 7 series.Therefore I decided to install Oracle with silent mode first.
 
Precedure
 
1. Add user and groups.
 groupadd oinstall
groupadd dba
useradd -g oinstall -G dba -m oracle
passwd oracle
id oracle

2. Create directories and grant privileges on them.

 mkdir -p /u01/app/oracle/product/11.2./dbhome_1
mkdir -p /u01/app/oracle/{oradata,inventory,fast_recovery_area}
chown -R oracle:oinstall /u01
chmod -R /u01

3. Modify the OS release(It's a little trick).

 cat /proc/version
cat /etc/redhat-release
CentOS Linux release 7.2. (Core)
vim /etc/redhat-release
cat /etc/redhat-release
redhat-

4. Install the required package.

 yum install gcc* gcc-* gcc-c++-* glibc-devel-* glibc-headers-* compat-libstdc* libstdc* elfutils-libelf-devel* libaio-devel* sysstat* unixODBC-* pdksh-*

5. Disable the firewall.

 systemctl status firewalld.service
systemctl stop firewalld.service
systemctl disable firewalld.service

6. Disable the selinux.

 vi /etc/selinux/config
cat /etc/selinux/config
SELINUX=disabled
or
sestatus -v
SELinux status: disabled

7. Modify the core parameters.

 vim /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_broadcasts =
net.ipv4.conf.all.rp_filter =
fs.file-max = //Max opened files.
fs.aio-max-nr =
kernel.shmall = //All pages of shared memory 8G:2097152*4k/1024/1024
kernel.shmmax =
kernel.shmmni =
kernel.sem =
net.ipv4.ip_local_port_range = //Range of ports of IPv4.
net.core.rmem_default =
net.core.rmem_max=
net.core.wmem_default=
net.core.wmem_max=
//Make it take effect.
sysctl -p

8. Modify the limits to oracle user.

 vim /etc/security/limits.conf
cat /etc/security/limits.conf
oracle soft nproc
oracle hard nproc
oracle soft nofile
oracle hard nofile

9. Modify the pam limit.

 vim /etc/pam.d/login
cat /etc/pam.d/login
session required /lib64/security/pam_limits.so
session required pam_limits.so 

10. Modify variables of evironment.

 export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2./dbhome_1
export ORACLE_SID=ORCL
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export LANG=en_US
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

11. Install Oracle software by silent mode.

 egrep -v "(^#|^$)" /u01/database/response/db_install.rsp
vim /u01/database/response/db_install.rsp
cat /u01/database/response/db_install.rsp
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=ORAHOST
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oracle/inventory
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/u01/app/oracle/product/11.2./dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.EEOptionsSelection=true
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
oracle.install.db.config.starterdb.password.ALL=Passw0rd
DECLINE_SECURITY_UPDATES=true 
//Execute the installation command.
./runInstaller -silent -responseFile /u01/database/response/db_install.rsp -ignorePrereq

12. Install Oracle network by silent mode.

 egrep -v "(^#|^$)" /u01/database/response/netca.rsp
[GENERAL]
RESPONSEFILE_VERSION="11.2"
CREATE_TYPE="CUSTOM"
[oracle.net.ca]
INSTALLED_COMPONENTS={"server","net8","javavm"}
INSTALL_TYPE=""typical""
LISTENER_NUMBER=
LISTENER_NAMES={"LISTENER"}
LISTENER_PROTOCOLS={"TCP;1521"}
LISTENER_START=""LISTENER""
NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
NSN_NUMBER=
NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
NSN_SERVICE={"PLSExtProc"}
//Execute the configuration command.
netca -silent -responsefile "/u01/database/response/netca.rsp"

13. Install Oracle database by silent mode.

 egrep -v "(^#|^$)" /u01/database/response/dbca.rsp
vim /u01/database/response/dbca.rsp
cat /u01/database/response/dbca.rsp
GDBNAME = "ORCL"
SID = "ORCL"
DB_UNIQUE_NAME = 'ORCL'
SYSPASSWORD = "Passw0rd"
SYSTEMPASSWORD = "Passw0rd"
DATAFILEDESTINATION =/u01/app/oracle/oradata
RECOVERYAREADESTINATION=/u01/app/oracle/fast_recovery_area
CHARACTERSET = "AL32UTF8"
TOTALMEMORY = ""
//Execute the creation command.
dbca -silent -responseFile /u01/database/response/dbca.rsp 
or
dbca -silent -createDatabase -templateName $ORACLE_HOME/assistants/dbca/templates/General_Purpose.dbc -gdbName ORCL -sid ORCL -DB_Unique_Name ORCL -responseFile NO_VALUE -sysPassword Passw0rd -systemPassword Passw0rd -DataFileDestination /u01/app/oracle/oradata RecoveryAreaDestination /u01/app/oracle/oradata/fast_recovery_area -characterset AL32UTF8 -sampleSchema false -totalmemory

CentOS 7.2静默安装Oracle11g的更多相关文章

  1. Linux CentOS 6.5 64位 静默安装Oracle11g 云主机

    本例: 通过SSH远程连接云主机,上传oracle11g安装包,在centos6.5上无图形化界面静默安装oracle11g. 涉及工具及环境: 1.本地环境windows7+ssh远程连接工具xSh ...

  2. CentOS 7.1静默安装11.2.0.3 64位单机数据库软件

    第1章 CentOS 7.1静默安装11.2.0.3 64位单机数据库软件 1.1  安装前的准备工作 1.1.1      软件准备 1.1.2      检查硬件 注意这里的内存应该满足要求,不然 ...

  3. CentOS 7.5静默安装oracle 11g

    1.安装前环境准备 1.1.配置本地yum源 #因公司内网环境,没有互联网,所以需要配置本地yum源,安装所需依赖包等. #挂载ios镜像centos7.5-1804 [root@oracle ~]# ...

  4. centos下静默安装oracle11g

    一.安装依赖包 yum -y install gcc make binutils gcc-c++ compat-libstdc++-33 elfutils-libelf-devel elfutils- ...

  5. CentOS7静默安装oracle11g

    操作系统: [root@docker ~]# uname -m x86_64 [root@docker ~]# cat /etc/redhat-release CentOS Linux release ...

  6. 静默安装oracle11G

    1.操作系统及Oracle版本 Linux版本:CentOS release 5.5 (Final) Oracle版本:Oracle Database 11g Release 2 (11.2.0.1. ...

  7. Linux7静默安装Oracle11g教程,亲测实用有效!

    1.查看swap大小,若小于150M,需添加增加虚拟空间 dd if=/dev/zero of=/swapadd bs=1024 count=2006424 mkswap /swapadd swapo ...

  8. CentOS 7.X 静默安装Oracle 12C数据库

    环境 System : CentOS 7.x jrxxfwb-zrgldb://> uname -a Linux jrxxfwb-zrgldb 3.10.0-693.17.1.el7.x86_6 ...

  9. Centos7 静默安装 Oracle11G

    1.准备安装包: 安装包官网下载地址:https://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-l ...

随机推荐

  1. Linux入门基础介绍

    概述: 1. linux是一个开源.免费的操作系统,其稳定性.安全性.处理多并发已经得到业界的认可,目前很多企业级的项目        都会部署到Linux/unix系统上. 2. 常见的操作系统(w ...

  2. WCF 双向通讯实例-简易的聊天程序

    源码下载 程序分四个部分: 1.原理 使用WCF的nettcp绑定.nettcp绑定类似原来的RPC,即.net remoting,只是在WCF提供统一协定,同一服务可以拥有多种客户端. 2.代码展示 ...

  3. [转]MFC子线程更改图像数据后更新主窗口图像显示方法

    程序思路是由外部的输入输出控制卡发出采集图像信号,之后相机采集图像得到图像数据指针,接收图像数据指针创建成图像最后显示到MFC对话框应用程序的Picture Control控件上,同时,为了标定相机位 ...

  4. 关闭layer当前弹窗

    一. layer关闭弹出层方法1-1) 先获取某个弹出层的 index   var index = layer.open();   var index = layer.alert();   var i ...

  5. iOS 帧动画之翻转和旋转动画

    记录两个比较简单的动画,一个是翻转的动画,一个是旋转的动画. 旋转动画: 1 [UIView animateWithDuration:3 animations:^{ if (formView) { f ...

  6. Parallel.ForEach使用示例

    新建一个.NET Core控制台程序,代码如下: using System; using System.Collections.Generic; using System.Threading; usi ...

  7. Hibernate连接各种数据库的配置

    转自CSDN shl7765856的专栏:http://blog.csdn.net/shl7765856/article/details/7411987 目录: 1.MySql连接配置 2.Sql S ...

  8. UICollectionView reloadItemsAtIndexPaths时 报错

    在刷新下载进度时 Xcode报错误: Terminating app due to uncaught exception 'NSInternalInconsistencyException', rea ...

  9. Redis的数据类型以及各类型的操作

    讲完安装和配置,接下来就是所有数据库的重头戏,数据结构和常用操作的增删改查了 redis是key-value的数据结构,每条数据都是⼀个键值对 键的类型是字符串 注意:键不能重复 值的类型分为五种: ...

  10. exsi6.0远程修改密码

    -------------------------------esxi远程修改root密码--------------------------- 在不接触物理机时,通过启动ssh服务,远程修改密码,具 ...