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. 【bootstrap】插件

    1.bootstrap.js 和 bootstrap.min.js 都包含了所有的插件. 2.命名空间:即域:域内成员的有效范围.超出范围就是无效. 3.通过 data 属性 API 就能使用所有的 ...

  2. js 实现加入收藏/加入首页功能

    加入收藏夹实现: html代码如下: <a href="javascript:;" onclick="AddFavorite(window.location.hre ...

  3. PAT——1045. 快速排序

    著名的快速排序算法里有一个经典的划分过程:我们通常采用某种方法取一个元素作为主元,通过交换,把比主元小的元素放到它的左边,比主元大的元素放到它的右边. 给定划分后的N个互不相同的正整数的排列,请问有多 ...

  4. Mark一下在模仿团购App搭建页面时犯的低级错误

    1.关于Xib拖线错误 2.下面这个错误的根源其实是代码提示时直接敲下了回车,没看仔细,导致后来找了好久才发现该错误,郁闷啊!

  5. HDFS Federation(转HDFS Federation(HDFS 联盟)介绍 CSDN)

    转载地址:http://blog.csdn.net/strongerbit/article/details/7013221 HDFS Federation(HDFS 联盟)介绍 1. 当前HDFS架构 ...

  6. H5基本标签

  7. [Medium翻译]RESTful API权威设计指南-设计更好的API

    本文为授权译文.希望查看原文的同学请戳链接:https://hackernoon.com/restful-api-design-step-by-step-guide-2f2c9f9fcdbf 对于我们 ...

  8. python3带tkinter窗口的ftp服务器,并使用pyinstaller打包成exe

    python带tkinter窗口的ftp服务器,使用python3编写,打包使用pyinstaller,命令 pyinstaller -F .\ftpserver.py 代码也可在我的github上下 ...

  9. LeetCode 中级 - 优势洗牌(870)

    给定两个大小相等的数组 A 和 B,A 相对于 B 的优势可以用满足 A[i] > B[i] 的索引 i 的数目来描述. 返回 A 的任意排列,使其相对于 B 的优势最大化. 示例 2: 输入: ...

  10. 上白泽慧音(tarjan,图的染色)

    题目描述 在幻想乡,上白泽慧音是以知识渊博闻名的老师.春雪异变导致人间之里的很多道路都被大雪堵塞,使有的学生不能顺利地到达慧音所在的村庄.因此慧音决定换一个能够聚集最多人数的村庄作为新的教学地点.人间 ...