CentOS 7.2静默安装Oracle11g
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的更多相关文章
- Linux CentOS 6.5 64位 静默安装Oracle11g 云主机
本例: 通过SSH远程连接云主机,上传oracle11g安装包,在centos6.5上无图形化界面静默安装oracle11g. 涉及工具及环境: 1.本地环境windows7+ssh远程连接工具xSh ...
- 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 检查硬件 注意这里的内存应该满足要求,不然 ...
- CentOS 7.5静默安装oracle 11g
1.安装前环境准备 1.1.配置本地yum源 #因公司内网环境,没有互联网,所以需要配置本地yum源,安装所需依赖包等. #挂载ios镜像centos7.5-1804 [root@oracle ~]# ...
- centos下静默安装oracle11g
一.安装依赖包 yum -y install gcc make binutils gcc-c++ compat-libstdc++-33 elfutils-libelf-devel elfutils- ...
- CentOS7静默安装oracle11g
操作系统: [root@docker ~]# uname -m x86_64 [root@docker ~]# cat /etc/redhat-release CentOS Linux release ...
- 静默安装oracle11G
1.操作系统及Oracle版本 Linux版本:CentOS release 5.5 (Final) Oracle版本:Oracle Database 11g Release 2 (11.2.0.1. ...
- Linux7静默安装Oracle11g教程,亲测实用有效!
1.查看swap大小,若小于150M,需添加增加虚拟空间 dd if=/dev/zero of=/swapadd bs=1024 count=2006424 mkswap /swapadd swapo ...
- 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 ...
- Centos7 静默安装 Oracle11G
1.准备安装包: 安装包官网下载地址:https://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-l ...
随机推荐
- ZOJ 1709 Oil Deposits(dfs,连通块个数)
Oil Deposits Time Limit: 2 Seconds Memory Limit: 65536 KB The GeoSurvComp geologic survey compa ...
- 2018年暑假ACM个人训练题6 解题报告
A:水题 https://www.cnblogs.com/yinbiao/p/9311834.html B:考察进制的转化 https://www.cnblogs.com/yinbiao/p/9311 ...
- 使用Vue构建单页应用一
一. 环境准备 1 安装Node.js 最好安装node.js-6.X.X 以上版本,https://nodejs.org/en/ 我使用的是 v6.3.1 Current 版本.Node. ...
- JS n秒后自动跳转实例
<p><a href="<?php echo base_url();?>usercenter/index" id="message" ...
- 课时10.第一个HTML网页(掌握)
网页的固定格式 编写网页和写信一样都有一套规范和要求,这套规范和要求中规定了写信的固定格式 写信基本结构 亲爱的xx: 你好! 我.................. ...... 此致 敬礼! xx ...
- div样式position:fixed,不随屏幕滚动而滚动,导致屏幕太小时弹出层被遮挡,无法滚动查看的解决办法
window.onscroll = function () { var sl = -Math.max(document.body.scrollTop, document.documentElement ...
- Java之环境变量配置
1.首先安装Java的JDK(Java开发工具包 包含JRE(Java运行环境))下载地址URL:www.oracle.com (64位或32位) 安装:傻瓜式安装(点击下一步即可)中间可更改安装目录 ...
- pastedeploy
3.1作用 不修改WSGI应用程序的情况下通过配置文件配置WSGI服务. filter:过滤器,滤网. pipline:管道 app:application 应用,在这个语境下我举个例子吧,lavab ...
- ajaxSubmit 在ie9或360兼容中,form下是空的
解决办法:在<head>....</head>中加入<meta http-equiv="X-UA-Compatible" content=" ...
- C# Server.MapPath的使用方法
(1)WebForm中: HttpContext.Current.Server.MapPath("~/Files/car/"); (2)Mvc中: Server.MapPath() ...