静默安装数据库软件 11R2


一、找到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博客 ” ,链接:http://blog.itpub.net/30935525/viewspace-2123119/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/30935525/viewspace-2123119/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值