Home  >  Article  >  Database  >  Oracle数据库静默安装总结

Oracle数据库静默安装总结

WBOY
WBOYOriginal
2016-06-07 16:43:071037browse

说到静默安装,就不得不提到响应文件,就是所谓的response file。在oracle,db2的安装中都有提供响应文件,这个响应文件其实就是一

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

说到静默安装,就不得不提到响应文件,就是所谓的response file。在Oracle,db2的安装中都有提供响应文件,这个响应文件其实就是一个配置文件。里面可以配置一些安装的细节,像dbca里面能够看到的安装选项,在响应文件中都有体现。你可以通过响应文件来设置安装企业版,个人版,标准被,安装的语言包,安装的字符集等等。

Oracle 11gR2 静默安装RAC 集群和数据库软件 

CentOS 5.10 下静默安装Oracle 11g R2 

Oracle 11g数据库软件静默安装

Oracle 11gr2 单机silent静默安装过程记录 

Oracle 12C静默安装与配置

Oracle教程之Oracle静默安装 

Oracle 静默安装简要的注意事项

响应文件可以通过安装目录获得,比如得到解压后的安装包。响应文件的模板就是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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn