ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle database silent install 记录

oracle database silent install 记录

原创 Linux操作系统 作者:ad007520 时间:2010-10-07 20:42:04 0 删除 编辑

数据库silent安装
  Oracle Silent Installations
[1]Prerequisite Check
[oracle@rac1 database]$ ./runInstaller  -prereqchecker  PREREQ_CONFIG_LOCATION=/u01/database/stage/prereq  -entryPoint customTests -silent
Starting Oracle Prerequisite Checker...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed


All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-10-06_01-46-23PM. Please wait ...
Error in writing to directory /tmp/OraInstall2010-10-06_01-46-23PM. Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
: No such file or directory
[oracle@rac1 database]$ ./runInstaller  -prereqchecker  PREREQ_CONFIG_LOCATION=/u01/database/stage/prereq  -entryPoint customTests -silent
Starting Oracle Prerequisite Checker...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed


All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-10-06_01-46-47PM. Please wait ...[oracle@rac1 database]$
Oracle Prerequisite Checker version Version 10.2.0.1.0 Production
Copyright (C) 1999, 2003, Oracle. All rights reserved.


Starting execution of Prerequisites...
Total No of checks: 7
...................
注:entryPoint参考 文件db_prereq.xml
[2]检测通过后修改response file
/**
* To use noninteractive mode, you run Oracle Universal Installer with a response file. A response file is a text file that contains variables and values that Oracle Universal Installer uses during the installation process
*/
在安装软件install\response目录下有如下文件:custom.rsp, dbca.rsp,emca.rsp,enterprise.rsp,netca.rsp,standard.rsp
选择enterprise.rsp修改参数
注:怎么自定义response file
ex:
./runInstaller -record -destinationFile C:\response_files\install_oracle10g.rsp
弹出用户图形界面  选择选项后 操作被记录到install_oracle10g.rsp中
[3]安装
 ./runInstaller -silent -responseFile ../database/response/enterprise.rsp

其他rsp的应用
cat dbca.rsp
[oracle@rac1 response]$ less dbca.rsp
##############################################################################
##                                                                          ##
##                            DBCA response file                            ##
##                            ------------------                            ##
## Copyright   1998, 2004, Oracle Corporation. All Rights Reserved.         ##
##                                                                          ##
## Specify values for the variables listed below to customize Oracle        ##
## Database Configuration installation.                                     ##
##                                                                          ##
## Each variable is associated with a comment. The comment identifies the   ##
## variable type.                                                           ##
##                                                                          ##
## Please specify the values in the following format :                      ##
##          Type       :  Example                                           ##
##          String     :  ""                                         ##
##          Boolean    :  True or False                                     ##
##          Number     :                                     ##
##          StringList :  {"",""}                           ##
##                                                                          ##
## Examples :                                                               ##
##     1. dbca -progress_only -responseFile                  ##
##        Display a progress bar depicitng progress of database creation    ##
##        process.                                                          ##
##                                                                          ##
##     2. dbca -silent -responseFile                         ##
##        Creates database silently. No user interface is displayed.        ##
##                                                                          ##
##     3. dbca -silent -createDatabase -cloneTemplate                       ##
##                       -responseFile                       ##
##        Creates database silently with clone template. The template in    ##
##        reponsefile is a clone template.                                  ##
##                                                                          ##
##     4. dbca -silent -deleteDatabase -responseFile         ##
##        Deletes database silently.                                        ##
##############################################################################
默认的type的创建数据库
#-----------------------------------------------------------------------------
# Name          : OPERATION_TYPE
# Datatype      : String
# Description   : Type of operation
# Valid values  : "createDatabase" \ "createTemplateFromDB" \ "createCloneTemplate" \ "deleteDatabase" \ "configureDatabase" \ "configureASM" \ "addI
nstance" (RAC-only) \ "deleteInstance" (RAC-only)
# Default value : None
# Mandatory     : Yes
#-----------------------------------------------------------------------------
OPERATION_TYPE = "createDatabase"


实践:删除数据库
[oracle@rac1 database]$ dbca -silent -deleteDatabase -responseFile /u01/database/response/dbca.rsp
Connecting to database
4% complete
9% complete
14% complete
47% complete
Updating network configuration files
48% complete
52% complete
Deleting instance and datafiles
76% complete
100% complete
Look at the log file "/u01/app/oracle/db10g/cfgtoollogs/dbca/orcl.log" for further details.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21993926/viewspace-675510/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: orace db patch [转]
请登录后发表评论 登录
全部评论

注册时间:2009-06-28

  • 博文量
    137
  • 访问量
    287976