Oracle 11g静默安装软件+手工创建数据库(一)

2015-07-23 18:08:11 · 作者: · 浏览: 6

由于是二次跳转+远程操作,无法使用图形界面,不能直接图形界面安装。采用静默安装软件+手工创建数据库的方式完成需求。


2.手工建库


3.检查各组件是否符合要求


1. 静默模式安装Oracle软件,配置监听程序


解压的数据库安装包,在database文件夹中的response文件夹下,有配置文件db_install.rsp,根据需求修改这个配置文件。


cd ./database/response/
db_install.rsp //安装数据库软件


注意这个选项DECLINE_SECURITY_UPDATES=true,默认值为false,要改为true。
$ ./runInstaller -silent -force -ignorePrereq -ignoreSysPrereqs -responseFile /data/database/response/db_install.rsp
正在启动 Oracle Universal Installer...


检查临时空间: 必须大于 120 MB。? 实际为 8122 MB? ? 通过
检查交换空间: 必须大于 150 MB。? 实际为 255999 MB? ? 通过
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2015-07-09_01-40-01PM. 请稍候...[oracle@CRNOPHQDW12 database]$ [WARNING] [INS-32055] 主产品清单位于 Oracle 基目录中。
? 原因: 主产品清单位于 Oracle 基目录中。
? 操作: Oracle 建议将此主产品清单放置在 Oracle 基目录之外的位置中。
可以在以下位置找到本次安装会话的日志:
?/opt/app/oracle/oraInventory/logs/installActions2015-07-09_01-40-01PM.log
Oracle Database 11g 的 安装 已成功。
请查看 '/opt/app/oracle/oraInventory/logs/silentInstall2015-07-09_01-40-01PM.log' 以获取详细资料。


以 root 用户的身份执行以下脚本:
? ? ? ? 1. /opt/app/oracle/oraInventory/orainstRoot.sh
? ? ? ? 2. /opt/app/oracle/product/11.2.0/dbhome_1/root.sh


Successfully Setup Software.


然后按提示root用户执行2个脚本,第2个脚本执行结果参见屏幕提示给出的日志文件。


db_install.rsp修改的内容参考(由于是只安装软件,有关数据库的未修改):
#------------------------------------------------------------------------------
# Do not change the following system generated value.
#------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0


#------------------------------------------------------------------------------
# Specify the installation option.
# It can be one of the following:
#? - INSTALL_DB_SWONLY
#? - INSTALL_DB_AND_CONFIG
#? - UPGRADE_DB
#-------------------------------------------------------------------------------
oracle.install.option=INSTALL_DB_SWONLY


#-------------------------------------------------------------------------------
# Specify the hostname of the system as set during the install. It can be used
# to force the installation to use an alternative hostname rather than using the
# first hostname found on the system. (e.g., for systems with multiple hostnames
# and network interfaces)
#-------------------------------------------------------------------------------
ORACLE_HOSTNAME=CRNOPHQDW12


#-------------------------------------------------------------------------------
# Specify the Unix group to be set for the inventory directory.?
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME=oinstall
#-------------------------------------------------------------------------------
# Specify the location which holds the inventory files.
# This is an optional parameter if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
INVENTORY_LOCATION=/opt/app/oracle/oraInventory


#-------------------------------------------------------------------------------
# Specify the languages in which the components will be installed.? ? ? ? ? ?
#
# en? : English? ? ? ? ? ? ? ? ? ja? : Japanese? ? ? ? ? ? ? ? ?
# fr? : French? ? ? ? ? ? ? ? ? ko? : Korean? ? ? ? ? ? ? ? ? ?
# ar? : Arabic? ? ? ? ? ? ? ? ? es? : Latin American Spanish? ?
# bn? : Bengali? ? ? ? ? ? ? ? ? lv? : Latvian? ? ? ? ? ? ? ? ?
# pt_BR: Braz