如果没有图形界面多可怕,或者图形界面安装总报些奇怪的错误多可怕,静默安装数据库软件了解一下

修改主机名、关闭selinux

[root@localhost ~]$ sed -i '3,$d' /etc/hosts
[root@localhost ~]$ echo '192.168.168.4 bss.example.com bss'>>/etc/hosts
[root@localhost ~]$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.168.4 bss.example.com bss
[root@localhost ~]$ hostnamectl --static set-hostname bss
[root@localhost ~]$ hostnamectl status
Static hostname: bss
Transient hostname: localhost.localdomain
Icon name: computer-vm
Chassis: vm
Machine ID: 3c685e4e6f024d48a6f44b144640319b
Boot ID: 4aea7c4deb314fa28ef9907623354b6f
Virtualization: vmware
Operating System: Oracle Linux Server 7.7
CPE OS Name: cpe:/o:oracle:linux:7:7:server
Kernel: Linux 4.14.35-1902.3.2.el7uek.x86_64
Architecture: x86-64
[root@localhost ~]$ cat /etc/selinux/config |grep SELINUX=|grep -v ^#
SELINUX=disabled
[root@localhost ~]$

安装环境准备工具

[root@bss ~]$ yum install oracle-rdbms-server-11gR2-preinstall
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-6.el7 will be installed (many more lines suppressed) Installed:
oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-6.el7 Dependency Installed:
compat-libcap1.x86_64 0:1.10-7.el7 compat-libstdc++-33.x86_64 0:3.2.3-72.el7 cpp.x86_64 0:4.8.5-39.0.1.el7 gcc.x86_64 0:4.8.5-39.0.1.el7
gcc-c++.x86_64 0:4.8.5-39.0.1.el7 glibc-devel.x86_64 0:2.17-292.0.1.el7 glibc-headers.x86_64 0:2.17-292.0.1.el7 kernel-headers.x86_64 0:3.10.0-1062.4.3.el7
ksh.x86_64 0:20120801-139.0.1.el7 libaio-devel.x86_64 0:0.3.109-13.el7 libstdc++-devel.x86_64 0:4.8.5-39.0.1.el7 Complete!
[root@bss ~]$

创建目录

[root@bss ~]$ mkdir -p /u01/app/oracle/product/11.2.0.4/dbhome_1
[root@bss ~]$ mkdir -p /u01/app/oraInventory
[root@bss ~]$ chown -R oracle:oinstall /u01
[root@bss ~]$ chmod -R 775 /u01

上传安装介质并解压

创建目录/stage/db然后上传安装介质,切换到oracle用户解压

[oracle@bss ~]$ cd /stage/db
[oracle@bss /stage/db]$ unzip -q p13390677_112040_Linux-x86-64_1of7.zip -d ~
[oracle@bss /stage/db]$ unzip -q p13390677_112040_Linux-x86-64_2of7.zip -d ~
[oracle@bss /stage/db]$ cd
[oracle@bss ~]$ ls
database
[oracle@bss ~]$

静默安装数据库软件

[oracle@bss ~]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1
[oracle@bss ~]$ ~/database/runInstaller -silent -ignorePrereq -waitforcompletion -responseFile ~/database/response/db_install.rsp \
> oracle.install.option=INSTALL_DB_SWONLY \
> ORACLE_HOSTNAME=vps4 \
> UNIX_GROUP_NAME=oinstall \
> INVENTORY_LOCATION=/u01/app/oraInventory \
> SELECTED_LANGUAGES=en \
> ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1 \
> ORACLE_BASE=/u01/app/oracle \
> oracle.install.db.InstallEdition=EE \
> oracle.install.db.DBA_GROUP=dba \
> oracle.install.db.OPER_GROUP=oinstall \
> DECLINE_SECURITY_UPDATES=true \
> oracle.install.db.config.starterdb.type=GENERAL_PURPOSE \
> DECLINE_SECURITY_UPDATES=true
Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 36684 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3967 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-11-22_10-30-51AM. Please wait ...You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2019-11-22_10-30-51AM.log
The installation of Oracle Database 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2019-11-22_10-30-51AM.log' for more details. As a root user, execute the following script(s):
1. /u01/app/oraInventory/orainstRoot.sh
2. /u01/app/oracle/product/11.2.0.4/dbhome_1/root.sh Successfully Setup Software.
[oracle@bss ~]$ su - root
Password:
Last login: Fri Nov 22 10:10:00 CST 2019 from 192.168.168.1 on pts/1
[root@bss ~]$ /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world. Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@bss ~]$ /u01/app/oracle/product/11.2.0.4/dbhome_1/root.sh
Check /u01/app/oracle/product/11.2.0.4/dbhome_1/install/root_bss_2019-11-22_10-33-54.log for the output of root script
[root@bss ~]$

静默安装的代码

~/database/runInstaller -silent -ignorePrereq -waitforcompletion -responseFile ~/database/response/db_install.rsp \
oracle.install.option=INSTALL_DB_SWONLY \
ORACLE_HOSTNAME=vps4 \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/u01/app/oraInventory \
SELECTED_LANGUAGES=en \
ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1 \
ORACLE_BASE=/u01/app/oracle \
oracle.install.db.InstallEdition=EE \
oracle.install.db.DBA_GROUP=dba \
oracle.install.db.OPER_GROUP=oinstall \
DECLINE_SECURITY_UPDATES=true \
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE \
DECLINE_SECURITY_UPDATES=true

响应文件的解释可以看看 https://blog.csdn.net/java3344520/article/details/8063785

ps:部署实施过程中,注意版本兼容问题要先设置环境变量export CV_ASSUME_DISTID=RHEL7.6 、export CV_ASSUME_DISTID=OEL6等这个方式,具体值根据oracle官方的认证的操作系统来,没认证过的操作系统最好不要用于生产,没认证过的系统默认按照OEL4来检测依赖包,所以各种包缺失错误出现

RHEL7.5 静默安装(silent mode)oracle11gr2数据库软件的更多相关文章

  1. CentOS 7静默安装Oracle 11g R2数据库软件

    之前安装Oracle 11g R2数据库软件都是建立在图形界面上的,不过现在大部分服务器上都没有安装图形界面.图形界面安装较为方便,安装选项清晰,步骤明确,但Oracle还支持另一种安装方式,就是通过 ...

  2. RHEL5.6静默安装oracle11.2.0数据库实例脚本

    脚本:单实例静默安装echo '[GENERAL] RESPONSEFILE_VERSION = "11.2.0" //查看虚拟机的版本,不能更改 OPERATION_TYPE = ...

  3. CentOS 6.5下静默安装oracle

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

  4. centos6.8 静默安装 oracle 11.2.0.4

    安装环境及系统要求    (下文具体参数值与路径根据自己的环境调整)操作系统:Red Hat Enterprise Linux 6 (x86) 或者CentOS 6 (x64) 数据库:Oracle ...

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

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

  6. 【通过ssh oracle11g安装】centos6静默安装oracle11g

    转载链接:https://blog.csdn.net/u011391839/article/details/76566316 根据实际情况略作调整~ 博主参考了以上链接成功进行安装,列一下自己遇到的坑 ...

  7. Oracle 11g静默安装

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

  8. Rocky4.2下安装金仓v7数据库(KingbaseES)

    1.准备操作系统 1.1 系统登录界面 1.2 操作系统版本信息 jdbh:~ # uname -ra Linux jdbh -x86_64 # SMP Fri Dec :: CST x86_64 G ...

  9. oracle11gR2静默安装

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

随机推荐

  1. 第十六周博客作业 <西北师范大学| 周安伟>

    第十六周作业 助教博客链接https://home.cnblogs.com/u/zaw-315/ 作业要求链接https://www.cnblogs.com/nwnu-daizh/p/10980707 ...

  2. Tensorflow的不足之处

    Tensorflow还是有不足的地方.第一体现在Tensorflow的数据机制,由于tensor只是占位符,在没有用tf.Session().run接口填充值之前是没有实际值的.

  3. luoguP3346 [ZJOI2015]诸神眷顾的幻想乡

    题意 学习了广义后缀自动机. 广义后缀自动机与普通后缀自动机的区别在于它是对多个串建的,于是可以处理多个串. 广义后缀自动机和普通后缀自动机的区别在于两个特判,可以见这篇题解 对于这题,因为叶子数量小 ...

  4. 补充: canal

    1. 作用: 同步mysql:做拉链表:更新redis 某些情况无法从日志中获取信息,而又无法利用sqoop等ETL工具对数据实时的监控 2. canal的工作原理:                 ...

  5. 题解 P3693 【琪露诺的冰雪小屋】

    知识点: 模拟 , 信仰 原题面 大 型 车 万 众 自 裁 现 场 分析题意: 操作: ICE_BARRAGE R C D S R:行 , C:列, D:方向 , S:强度 在(R,C) 向 D 射 ...

  6. Codeforces Round #596 (Div. 2, based on Technocup 2020 Elimination Round 2) F. Tree Factory 构造题

    F. Tree Factory Bytelandian Tree Factory produces trees for all kinds of industrial applications. Yo ...

  7. 01 学习数据分析的python库

    网页爬取 1.requests 2.BeautifulSoup 3.Scrapy 科学计算与数据分析 1.scipy 2.numpy 3.pandas 机器学习和深度学习 1.Scikit-learn ...

  8. QList去掉重复项 .toSet()报错???

    我们知道QList::toSet()函数可以将QList转成QSet.可我却遇到报错: QList<QVariant> datas = it.value().values(); QSet& ...

  9. 剑指offer:二叉搜索树的第k个结点(中序遍历)

    1. 题目描述 /* 给定一棵二叉搜索树,请找出其中的第k小的结点. 例如, (5,3,7,2,4,6,8) 中,按结点数值大小顺序第三小结点的值为4. */ 2. 思路 中序遍历二叉搜索树,第K个就 ...

  10. 解惑:在Ubuntu18.04.2的idea上运行Scala支持的spark程序遇到的问题

    解惑:在Ubuntu18.04.2的idea上运行Scala支持的spark程序遇到的问题 一.前言 最近在做一点小的实验,用到了Scala,spark这些东西,于是在Linux平台上来完成,结果一个 ...