ITPub博客

首页 > 数据库 > Oracle > 静默安装数据库软件 11R2

静默安装数据库软件 11R2

原创 Oracle 作者:woods_su 时间:2016-08-08 09:35:36 0 删除 编辑

一、找到response文件

 

[oracle@localhost response]$ pwd

/oraapp/oracle/database/response

[oracle@localhost response]$ ls

dbca.rsp  db_install.rsp  netca.rsp

[oracle@localhost response]$ vi db_install.rsp

 

二、编辑response文件

安装选项

# 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=localhost.localdomain

 

 

#-------------------------------------------------------------------------------

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

#-------------------------------------------------------------------------------

UNIX_GROUP_NAME=dba

 

#-------------------------------------------------------------------------------

# Specify the location which holds the inventory files.

#-------------------------------------------------------------------------------

INVENTORY_LOCATION=/oraapp/oracle

 

语言:

# Example : SELECTED_LANGUAGES=en,fr,ja

#------------------------------------------------------------------------------

SELECTED_LANGUAGES=zh_CN,en

 

#------------------------------------------------------------------------------

# Specify the complete path of the Oracle Home.

#------------------------------------------------------------------------------

ORACLE_HOME=/oraapp/oracle/product/11.2.0/dbhome_1

 

#------------------------------------------------------------------------------

# Specify the complete path of the Oracle Base.

#------------------------------------------------------------------------------

ORACLE_BASE=/oraapp/oracle

 

# Specify the installation edition of the component.

#

# The value should contain only one of these choices.

# EE     : Enterprise Edition

# SE     : Standard Edition

# SEONE  : Standard Edition One

# PE     : Personal Edition (WINDOWS ONLY)

#------------------------------------------------------------------------------

oracle.install.db.InstallEdition=EE

 

oracle.install.db.customComponents,安装的组件,看情况选择

 

# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.

#------------------------------------------------------------------------------

oracle.install.db.DBA_GROUP=dba

 

#------------------------------------------------------------------------------

# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.

#------------------------------------------------------------------------------

oracle.install.db.OPER_GROUP=dba

 

#------------------------------------------------------------------------------

# Specify the cluster node names selected during the installation.

#------------------------------------------------------------------------------

oracle.install.db.CLUSTER_NODES=

 

#------------------------------------------------------------------------------

# Specify the type of database to create.

# It can be one of the following:

# - GENERAL_PURPOSE/TRANSACTION_PROCESSING

# - DATA_WAREHOUSE

#------------------------------------------------------------------------------

oracle.install.db.config.starterdb.type=GENERAL_PURPOSE

 

DECLINE_SECURITY_UPDATES=true

 

 

后面的更多参数根据情况选择是否配置,大多是与数据库实例相关的参数,装软件应该可以不配

 

 

三、开始安装

 

[oracle@localhost database]$ ./runInstaller -silent -responseFile /oraapp/oracle/database/response/db_install.rsp -ignorePrereq

Starting Oracle Universal Installer...

 

Checking Temp space: must be greater than 120 MB.   Actual 10110 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 2024 MB    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-08-05_05-52-16AM. Please wait ...[oracle@localhost database]$ You can find the log of this install session at:

 /oraapp/oraInventory/logs/installActions2016-08-05_05-52-16AM.log

The following configuration scripts need to be executed as the "root" user.

 #!/bin/sh

 #Root scripts to run

 

/oraapp/oracle/product/11.2.0/dbhome_1/root.sh

To execute the configuration scripts:

         1. Open a terminal window

         2. Log in as "root"

         3. Run the scripts

         4. Return to this window and hit "Enter" key to continue

 

Successfully Setup Software.

 

root执行脚本

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

请登录后发表评论 登录
全部评论

注册时间:2016-02-29

  • 博文量
    41
  • 访问量
    75745