随笔-62  评论-29  文章-0  trackbacks-0

无图形界面情况下静默安装oracle
如果Server段没有安装X界面,如何来安装Oracle呢?我们可以使用Oracle提供的静默安装来实现提示符下的Oracle安装。安装前的系统环境变量及内核参数的设置这里就不重复了,可以查看安装光盘中的安装文档.

oracle 静默安装,
1:修改enterprise.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={"racle.server","10.2.0.1.0"}
DEINSTALL_LIST={"racle.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 /u02/database/
./runInstaller -silent -responseFile /u02/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
SEVEREUI-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" script 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 script with passwords (if any) before executing the same.
The "/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/configToolAllCommands" script 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 script 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.

./runInstaller -silent -force -ignoreSysprereqs ORACLE_HOME=/opt/oracle/product/10gr2 ORACLE_HOME_NAME=OHOME_1 -responseFile /opt/oracle/database/response/enterprise.rsp

2:执行root.sh
/opt/oracle/oraInventory/orainstRoot.sh
/opt/oracle/product/10gr2/root.sh

3:修改dbca.rsp文件
TEMPLATENAME = "General_Purpose.dbc"
dbca -silent -createdatabase -responseFile /opt/oracle/database/response/dbca.rsp


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

./runInstaller -silent -responseFile /opt/oracle/database/response/enterprise.rsp

dbca -silent -createdatabase -responseFile /opt/oracle/database/response/dbca.rsp

dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname "orcl" -sid "orcl" -sysPassword "oracle" -systemPassword "oracle" -characterSet "AL32UTF8"


dbca -silent -deleteDatabase -sourceDB orcl10g -sid sog1 -sysDBAUserName sys -sysDBAPassword oracle

netca /silent /responseFile /opt/oracle/database/response/netca.rsp


./runInstaller -silent -force -ignoreSysprereqs ORACLE_HOME=/opt/oracle/product/10gr2 ORACLE_HOME_NAME=OHOME_1 -responseFile /opt/oracle/database/response/enterprise.rsp

./runInstaller -silent -deinstall -removeallfiles -removeAllPatches "REMOVE_HOMES={$ORACLE_HOME}" -responseFile /opt/oracle/database/response/enterprise.rsp

 

/opt/oracle/oraInventory/orainstRoot.sh
/opt/oracle/product/10gr2/root.sh


useradd -g oinstall –G dba –d /export/home/oracle –s /bin/csh –m oracle





posted on 2009-10-16 17:59 阅读(2157) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: