静默安装Oracle数据库


无图形界面情况下静默安装Oracle
有些机器上没有图形化终端,我们可以使用Oracle提供的静默安装来实现提示符下的Oracle安装,并且这样也不要太多的资源。安装前的系统环境变量及内核参数的设置这里就不重复了。
我的项目流程如下:

Oracle安装文件已经解压至/udisk。
su - oracle
mkdir -p /u01/app/oracle/
1. 建立静默安装的配置文件
cd /udisk/database/response
vi enterprise01.rsp
RESPONSEFILE_VERSION=2.2.1.0.0
FROM_LOCATION="../stage/products.xml"
ORACLE_HOME="/u01/app/oracle/product/10.2.0/db_1/"
ORACLE_HOME_NAME="OraDb10g_home1"
TOPLEVEL_COMPONENT={"oracle.server","10.2.0.1.0"}
DEINSTALL_LIST={"oracle.server","10.2.0.1.0"}
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_COMPONENT_LOCATIONS_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=false
SHOW_REQUIRED_CONFIG_TOOL_PAGE=false
SHOW_CONFIG_TOOL_PAGE=false
SHOW_RELEASE_NOTES=false
SHOW_ROOTSH_CONFIRMATION=false
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
SHOW_DEINSTALL_CONFIRMATION=false
SHOW_DEINSTALL_PROGRESS=false
ACCEPT_LICENSE_AGREEMENT=true
COMPONENT_LANGUAGES={"en"}
CLUSTER_NODES=
INSTALL_TYPE="EE"
s_nameForDBAGrp=dba
s_nameForOPERGrp=dba
b_oneClick=false
SHOW_DATABASE_CONFIGURATION_PAGE=false
b_createStarterDB=false
相关属性的值的意义,请参考Oracle提供的enterprise.rsp文档中的说明 。
2. 开始安装
cd /udisk/database/
./runInstaller -silent -responseFile /udisk/database/response/enterprise01.rsp
#注意-responseFile参数后的文件路径一定是绝对路径 ,并且enterprise01.rsp oracle用户可读。
执行过程如下:
Installation in progress (Mon May 12 20:27:18 CST 2008)
............................................................... 11% Done.
............................................................... 23% Done.
............................................................... 35% Done.
............................................................... 47% Done.
........................................... 55% Done.
Install successful

Linking in progress (Mon May 12 20:30:01 CST 2008)
. 55% Done.
Link successful

Setup in progress (Mon May 12 20:31:21 CST 2008)
.................... 100% Done.
Setup successful

End of install phases.(Mon May 12 20:31:29 CST 2008)
Starting to execute configuration assistants
Configuration assistant "Oracle Net Configuration Assistant" succeeded
Configuration assistant "Oracle Database Configuration Assistant" failed
SEVEREOUI-10104:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured. Select the failed assistants and click the 'Retry' button to retry them.
--------------------------------------
The "/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/configToolFailedCommands" . contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this . with passwords (if any) before executing the same.
The "/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/configToolAllCommands" . contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this . with passwords (if any) before executing the same.

--------------------------------------
The installation of Oracle Database 10g was successful, but some optional configuration assistants failed, were cancelled or skipped.
Please check '/u01/app/oracle/oraInventory/logs/silentInstall2008-05-12_08-26-55PM.log' for more details.

  • 1
  • 2
  • 3
  • 下一页

相关内容