(实战)oracle静默安装runInstaller数据库软件 --参数说明+举例

安装数据库软件

su - oracle

cd database/

export LANG=en_US

export LANG=en_US.UTF-8

./runInstaller 进行安装

yum install -y binutils-* libXp* compat-libstdc++-33-* elfutils-libelf-* elfutils-libelf-devel-* gcc-* gcc-c++-* glibc-* glibc-common-* glibc-devel-* glibc-headers-* ksh-* libaio-* libgcc-* libstdc++-* make-* sysstat-* unixODBC-* unixODBC-devel-*s zip unzip psmisc

sed -i "s/oracle.install.option=/oracle.install.option=INSTALL_DB_SWONLY/g" /oradata/software/database/response/db_install.rsp

sed -i "s/UNIX_GROUP_NAME=/UNIX_GROUP_NAME=oinstall/g" /oradata/software/database/response/db_install.rsp

sed -i "s/INVENTORY_LOCATION=/INVENTORY_LOCATION=\/u01\/app\/oraInventory/g" /oradata/software/database/response/db_install.rsp

sed -i "s/ORACLE_HOME=/ORACLE_HOME=\/u01\/app\/oracle\/product\/11.2.0.4\/db_1/g" /oradata/software/database/response/db_install.rsp

sed -i "s/ORACLE_BASE=/ORACLE_BASE=\/u01\/app\/oracle/g" /oradata/software/database/response/db_install.rsp

sed -i "s/oracle.install.db.InstallEdition=/oracle.install.db.InstallEdition=EE/g" /oradata/software/database/response/db_install.rsp

sed -i "s/oracle.install.db.EEOptionsSelection=false/oracle.install.db.EEOptionsSelection=true/g" /oradata/software/database/response/db_install.rsp

sed -i "s/oracle.install.db.DBA_GROUP=/oracle.install.db.DBA_GROUP=oinstall/g" /oradata/software/database/response/db_install.rsp

sed -i "s/oracle.install.db.OPER_GROUP=/oracle.install.db.OPER_GROUP=oinstall/g" /oradata/software/database/response/db_install.rsp

sed -i "s/oracle.install.db.config.starterdb.type=/oracle.install.db.config.starterdb.type=GENERAL_PURPOSE/g" /oradata/software/database/response/db_install.rsp

sed -i "s/oracle.install.db.config.starterdb.storageType=/oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE/g" /oradata/software/database/response/db_install.rsp

sed -i "s/oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=\/oradata/g" /oradata/software/database/response/db_install.rsp

sed -i "s/DECLINE_SECURITY_UPDATES=/DECLINE_SECURITY_UPDATES=true/g" /oradata/software/database/response/db_install.rsp

su - oracle -c "/oradata/software/database/runInstaller -silent -debug -waitforcompletion -nowait -force -responseFile /oradata/software/database/response/db_install.rsp"

/// -responseFile -- <响应文件的完全限定路径>

=========================================================================

/home/oracle/database/response下有有enterprise.rsp、standard.rsp和custom.rsp三个应答文件,分别对应企业版、标准版和定制的安装。

1.--编辑文件:enterprise.rsp

--参数说明:主要修改如下选项:

oracle.install.option=INSTALL_DB_SWONLY -- 安装类型

ORACLE_HOSTNAME=rac1 -- 主机名称

UNIX_GROUP_NAME=oinstall -- 安装组

INVENTORY_LOCATION=/db/oracle/oraInventory -- INVENTORY目录

SELECTED_LANGUAGES=en,zh_CN -- 选择语言

ORACLE_HOME=/db/oracle/product/11.2.0/db_1 -- oracle_home

ORACLE_BASE=/db/oracle -- oracle_base

oracle.install.db.InstallEdition=EE -- oracle版本

oracle.install.db.isCustomInstall=true -- 自定义安装

oracle.install.db.DBA_GROUP=dba -- dba用户组

oracle.install.db.OPER_GROUP=oinstall -- oper用户组

oracle.install.db.config.starterdb.type=GENERAL_PURPOSE -- 数据库类型

oracle.install.db.config.starterdb.globalDBName=RAC1 -- globalDBName

oracle.install.db.config.starterdb.SID=RAC1 -- SID

oracle.install.db.config.starterdb.memoryLimit=512 -- 自动管理内存的最小内存(M)

oracle.install.db.config.starterdb.password.ALL=oracle -- 设定所有数据库用户使用同一个密码

DECLINE_SECURITY_UPDATES=true -- 设置安全更新 必须设置为true,否会提示 email 地址没有设置不能安装

注意安装过程中根据需要进行修改,可配置先安装软件再创建数据库实例,或同时安装。

2.--执行安装

./runInstaller -silent -responseFile /home/oracle/database/response/enterprise.rsp

相关推荐
液态不合群1 小时前
[特殊字符] MySQL 覆盖索引详解
数据库·mysql
计算机毕设VX:Fegn08951 小时前
计算机毕业设计|基于springboot + vue蛋糕店管理系统(源码+数据库+文档)
数据库·vue.js·spring boot·后端·课程设计
瀚高PG实验室1 小时前
PostgreSQL到HighgoDB数据迁移
数据库·postgresql·瀚高数据库
打码人的日常分享2 小时前
智能制造数字化工厂解决方案
数据库·安全·web安全·云计算·制造
三水不滴2 小时前
Redis 过期删除与内存淘汰机制
数据库·经验分享·redis·笔记·后端·缓存
-孤存-3 小时前
MyBatis数据库配置与SQL操作全解析
数据库·mybatis
2301_822366354 小时前
使用Scikit-learn构建你的第一个机器学习模型
jvm·数据库·python
万邦科技Lafite5 小时前
一键获取京东商品评论信息,item_reviewAPI接口指南
java·服务器·数据库·开放api·淘宝开放平台·京东开放平台
自可乐5 小时前
Milvus向量数据库/RAG基础设施学习教程
数据库·人工智能·python·milvus
白佳宝5 小时前
MySQL8.0.27高可用
云计算·dba