Oracle数据库静默安装总结(一)

2015-01-21 12:25:57 · 作者: · 浏览: 27

在学习数据库的时候,不知道dbca的命令用了多少遍,但是越是安装也是觉得自己会的越少,因为图形界面的清晰直白反而不知道哪些准备工作是需要特别准备的,如果在远程支持的环境中,图形界面就会受到网络带宽的影响,如果在本地的环境中学习的时候,总是提示少这个包,那个包的。其实有很多的安装包如果不使用图形界面都不是必须的。个人感触比较深的一个例子就是安装的时候缺少报了libXp.so相关的错误,结果自己折腾了半天,从网上下载安装包费了很大的周折才算搞定,最后发现使用静默安装就不需要这个包了,基于学习的环境,摆脱图形界面也是一个好的开始,你需要考虑的东西越多,你就学到的越多。


响应文件可以通过安装目录获得,比如得到解压后的安装包。响应文件的模板就是db_install.rsp


?[oracle@rac1 database]$ pwd
?/u02/ora11g/database
?[oracle@rac1 database]$ ll
?total 64
?drwxr-xr-x 12 ora11g dba? 4096 Sep 18? 2011 doc
?drwxr-xr-x? 4 ora11g dba? 4096 Sep 22? 2011 install
?-rwxr-xr-x? 1 ora11g dba 28122 Sep 22? 2011 readme.html
?drwxr-xr-x? 2 ora11g dba? 4096 Sep 22? 2011 response
?drwxr-xr-x? 2 ora11g dba? 4096 Sep 22? 2011 rpm
?-rwxr-xr-x? 1 ora11g dba? 3226 Sep 22? 2011 runInstaller
?drwxr-xr-x? 2 ora11g dba? 4096 Sep 22? 2011 sshsetup
?drwxr-xr-x 14 ora11g dba? 4096 Sep 22? 2011 stage
?-rwxr-xr-x? 1 ora11g dba? 5466 Aug 22? 2011 welcome.html
?[oracle@rac1 database]$ cd response
?[oracle@rac1 response]$ ll
?total 80
?-rwxr-xr-x 1 ora11g ora11g 44533 Sep 22? 2011 dbca.rsp
?-rwxr-xr-x 1 ora11g ora11g 24992 Sep 22? 2011 db_install.rsp
?-rwxr-xr-x 1 ora11g ora11g? 5871 Sep 22? 2011 netca.rsp
以下标黄的部分是在响应文件中需要格外注意的。可以根据自己的需求和环境来设置
####################################################################
?## Copyright(c) Oracle Corporation 1998,2011. All rights reserved.##
?##? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ##
?## Specify values for the variables listed below to customize? ? ##
?## your installation.? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ##
?##? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ##
?## Each variable is associated with a comment. The comment? ? ? ? ##
?## can help to populate the variables with the appropriate? ? ? ? ##
?## values.? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ##
?##? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ##
?## IMPORTANT NOTE: This file contains plain text passwords and? ? ##
?## should be secured to have read permission only by oracle user? ##
?## or db administrator who owns this installation.? ? ? ? ? ? ? ? ##
?##? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ##
?####################################################################


#------------------------------------------------------------------------------
?# 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:
?# 1. INSTALL_DB_SWONLY
?# 2. INSTALL_DB_AND_CONFIG
?# 3. 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=rac1


#-------------------------------------------------------------------------------
?# Specify the Unix group to be set for the inventory directory.?
?#---------