静默安装ORACLE INTERNET DIRECTORY(OID)

  静默安装ORACLE INTERNET DIRECTORY
  花了三个工作日,24个小时,我目不转睛的盯着屏幕,解决一个一个的问题,终于把oidadmin的界面弄出来了。
  本来图形化安装,很简单的,可惜我偏偏得用字符安装,首先oracle就没有doc告诉你,哪个参数要写,那个不写,光是看到那100多个参数都晕了,试
验参数这里我就重复安装了超过10次,比如那个密码策略,安装光告诉你创建用户失败,想了很久我才意识到是密码策略的问题,oracle在这里对参数的
事前校验做得非常简陋,很多问题,要等你安完了才知道。第二安装后的配置项,里面居然有错,我最后是一个一个手工配置的,那个累啊,而且有两个
没成功,我实在没法,不过总体上还是折腾成功了。
  下面是步骤(:
  1.set enviroment variable
export ORACLE_BASE=/u03/oracle
export ORACLE_HOME=/u03/oracle/product/10.1.4.1/oid_1
export ORACLE_SID=myoid
NOTE: do not set $TNS_ADMIN temporarily
if it already existing ,unset TNS_ADMIN
or it will cause an error in installation.
  2.Create the support directories for the oid
mkdir /u03/oracle/product/10.1.4.1/oid_1
mkdir /u02/oradata
chmod 770 /u03/oracle/product/10.1.4.1/oid_1
chmod 770 /u02/oradata

  3.prepare for responseFile (oid version 10.1.4.1)
[url=mailto:oracle@pollserver>vi]oracle@pollserver>vi oid.rsp
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME="dba"
FROM_LOCATION="/u02/Disk1/stage/products.xml"
FROM_LOCATION_CD_LABEL="Oracle Application Server 10g"
LOCATION_FOR_DISK2="/u02/Disk2"
ORACLE_HOME="/u03/oracle/product/10.1.4.1/oid_1"
ORACLE_HOME_NAME="OHOME1"
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=false
SHOW_COMPONENT_LOCATIONS_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_REQUIRED_CONFIG_TOOL_PAGE=false
SHOW_OPTIONAL_CONFIG_TOOL_PAGE=false
SHOW_RELEASE_NOTES=false
SHOW_ROOTSH_CONFIRMATION=true
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
oracle.iappserver.infrastructure:SHOW_IAS_COMPONENT_CONFIG_PAGE=false
ACCEPT_LICENSE_AGREEMENT=true
RESTART_SYSTEM=<Value Unspecified>
CLUSTER_NODES=<Value Unspecified>
OUI_HOSTNAME=192.168.131.102
PreReqConfigSelections=""
n_ValidationPreReqConfigSelections=0
TOPLEVEL_COMPONENT={"oracle.iappserver.infrastructure","10.1.4.0.1"}
DEINSTALL_LIST={"oracle.iappserver.infrastructure","10.1.4.0.1"}
oracle.iappserver.infrastructure:szl_PortListSelect={"YES","/u03/oracle/staticports.ini"}
COMPONENT_LANGUAGES={"en"}
INSTALL_TYPE="Infrastructure"
oracle.iappserver.infrastructure:b_configureMETA=true
oracle.iappserver.infrastructure:b_configureOID=true
oracle.iappserver.infrastructure:b_configureSSO=true
oracle.iappserver.infrastructure:b_configureDAS=true
oracle.iappserver.infrastructure:b_configureDIP=true
oracle.iappserver.infrastructure:b_configureOCA=false
oracle.iappserver.infrastructure:b_configureHA=false
oracle.iappserver.infrastructure:b_launchEMCA=true
oracle.iappserver.infrastructure:b_launchOHS=true
szRegisterMetaStatus="N"
szIdentityAdminContext="dc=pollserver,dc=com"
s_dnSelection="Custom DN:"
s_dnCntval="United States"
s_dncustom="CN=My Certificate Authority,OU=MyOrg,O=PollServer,C=US"
sl_keylengthInfo={"2048"}
sl_ocmInfo={"oracle1","oracle1"}
s_nameForDBAGrp="dba"
s_nameForOPERGrp="dba"
## Specify Database Configuration Options
s_dbRetChar="Unicode standard UTF-8 AL32UTF8"
s_dbSid=myoid
s_globalDBName=myoid.pollserver
b_loadExampleSchemas=false
## Specify Database Management Option
s_dlgEMEmailNotificationSelected="N"
s_dlgEMOptionSelected="Use Database Control for Database Management"
s_dlgEMCentralAgentSelected="No Agents Found"
s_dlgEMSMTPServer=""
s_dlgEMEmailAddress=""
## Specify Database File Storage Option
s_DataorASMret="File System"
s_mountPoint=/u02/oradata
## Specify Backup and Recovery Options
s_dlgRBOEnableAutoBackups="Do not enable Automated backups"
## Specify Database Schema Passwords
s_superAdminPasswdType="S"
s_superAdminSamePasswd="oracle1"
s_superAdminSamePasswdAgain="oracle1"
## Select Database Configuration
s_dlgStarterDBConfigCreateStarterDB="Create a starter database"
s_dlgStarterDBConfigOptionSelected="General Purpose"
oracle.oid.oidca:s_silentinstallflag="1"
oracle.iappserver.infrastructure:b_configureCentralMon=false
szOIDwithSSLStatus="N"
nValidationOID2=0
nValidationOID=0
nValidationRepository=0
oracle.iappserver.instance:szl_InstanceInformation={"ias_admin","oracle1","oracle1"}
oracle.iappserver.instance:nValidationInstanceInfo=0
oracle.apache.apache:s_group=dba
oracle.apache.apache:s_groupid=dba
oracle.iappserver.iapptop:szl_InstanceInformation={"oracle1"}
NOTE: pay attention to the following parameters, especially the password policy should be followed.
***********************************************************
FROM_LOCATION="/u02/Disk1/stage/products.xml"
LOCATION_FOR_DISK2="/u02/Disk2"
ORACLE_HOME="/u03/oracle/product/10.1.4.1/oid_1"
ORACLE_HOME_NAME="OHOME1"
SHOW_ROOTSH_CONFIRMATION=true
OUI_HOSTNAME=pollserver --your host name
oracle.iappserver.infrastructure:szl_PortListSelect={"YES","/u03/oracle/staticports.ini"}
oracle.iappserver.infrastructure:b_configureOCA=false
szIdentityAdminContext="dc=pollserver,dc=com"
s_dncustom="CN=My Certificate Authority,OU=MyOrg,O=PollServer,C=US"
sl_ocmInfo={"oracle1","oracle1"} --input your password
s_dbRetChar="Unicode standard UTF-8 AL32UTF8"
s_dbSid=myoid
s_globalDBName=myoid.pollserver
s_mountPoint=/u02/oradata
s_superAdminPasswdType="S"
s_superAdminSamePasswd="oracle1"
s_superAdminSamePasswdAgain="oracle1"
oracle.iappserver.instance:szl_InstanceInformation={"ias_admin","oracle1","oracle1"} --your ias password
oracle.iappserver.iapptop:szl_InstanceInformation={"oracle1"}
***********************************************************
  4.run installer
put the response file to a directory
installer -silent -responseFile <full path>/oid.rsp
In previous installation ,you could see the following info in install procedure :
***********************************************************
The following configuration assistants have not been run, as Oracle Universal Installer was invoked with the -noConfig option.
--------------------------------------
The following configuration assistants have not been successfully completed. These assistants must be completed for your product to be
completely configured.
......
The installation of Oracle Application Server Infrastructure 10g was successful, but some optional configuration assistants failed, were
cancelled or skipped.
Please check /u03/oracle/oraInventory/logs/silentInstall2008-10-03_08-45-15PM.log for more details.
***********************************************************
  5.run root.sh
after installation, swith to root user and run root.sh script
$ORACLE_HOME/root.sh
  6.configure option
NOTE : In previous installation ,installer prompted :
Execute file /u03/oracle/product/10.1.4.1/oid_1/cfgtoollogs/configToolCommands to re-run all skipped/failed configuration assistants.
but this file can not be executed successfully, modify the dbca item to create database as following:
old item (it has invalid parameter!!!, use dbca -help to check)
************************************************************
/u03/oracle/product/10.1.4.1/oid_1/bin/dbca -createDatabase -templateName Oracle9iAS_Repository_Database.dbc -completionDialog FALSE   -
passwordDialog FALSE   -gdbName myoid.pollserver -sid myoid *Protected value, not to be logged* *Protected value, not to be logged*
*Protected value, not to be logged* *Protected value, not to be logged* -emConfiguration NOBACKUP -datafileJarLocation
/u03/oracle/product/10.1.4.1/oid_1/assistants/dbca/templates -datafileDestination /u02/oradata -responseFile NO_VALUE -characterset
AL32UTF8 -obfuscatedPasswords true -sampleSchema false -oratabLocation /etc/oratab -recoveryAreaDestination NO_VALUE -silent
************************************************************
modified item
************************************************************
/u03/oracle/product/10.1.4.1/oid_1/bin/dbca -createDatabase -templateName Oracle9iAS_Repository_Database.dbc -completionDialog FALSE -
gdbName myoid.pollserver -sid myoid -sysPassword oracle1 -systemPassword oracle1 -emConfiguration NOBACKUP -dbsnmpPassword oracle1 -
sysmanPassword oracle1 -datafileJarLocation /u03/oracle/product/10.1.4.1/oid_1/assistants/dbca/templates -datafileDestination /u02/oradata
-responseFile NO_VALUE -characterset AL32UTF8 -recoveryAreaDestination NO_VALUE -silent
**************************************************************
  7.run the configuration option one by one
the following item may be faild :
**************************************************************
/u03/oracle/product/10.1.4.1/oid_1/jdk/bin/java -classpath
.:/u03/oracle/product/10.1.4.1/oid_1/sso/lib/ossoreg.jar:/u03/oracle/product/10.1.4.1/oid_1/jlib/ojmisc.jar:/u03/oracle/product/10.1.4.1/oid_
1/jlib/repository.jar:/u03/oracle/product/10.1.4.1/oid_1/j2ee/home/jazn.jar:/u03/oracle/product/10.1.4.1/oid_1/j2ee/home/jaas.jar:/u03/oracle
/product/10.1.4.1/oid_1/jdk/lib/dt.jar:/u03/oracle/product/10.1.4.1/oid_1/jdk/lib/tools.jar:/u03/oracle/product/10.1.4.1/oid_1/jlib/infratool
.jar oracle.ias.configtool.UseInfrastructure i -f /u03/oracle/product/10.1.4.1/oid_1/config/infratool_instance_jazn.properties -h pollserver
-p 13060 -u cn=orcladmin -obf 05e66749bc4461ee71aec1e42074610627 -o /u03/oracle/product/10.1.4.1/oid_1 -m ias_admin.pollserver -infra
myoid.pollserver -sso true -sslp 13130 -sslf false
/u03/oracle/product/10.1.4.1/oid_1/bin/oidca mode=DAS sslport=13130 sudn=cn=orcladmin oidhost=pollserver
supwd=05e66749bc4461ee71aec1e42074610627 -silent apachehost=pollserver apacheport=7777 apachemode=http -crypto
iasinstance=ias_admin.pollserver
/u03/oracle/product/10.1.4.1/oid_1/dcm/bin/dcmctl createInitialBackup -v -d -o /u03/oracle/product/10.1.4.1/oid_1 -force
**************************************************************
8.check oid status
SQL> select name from v$database;
NAME
---------
MYOID
lsnrctl status
  9. ias_admin password issue
if ias_admin password is not correct, reset it as following ways:
  1.cd $ORACLEAS_HOME/sysman/j2ee/config/jazn-data.xml
  2.find this line:
                <user>
                    <name>ias_admin</name>
                    <credentials>{903}0D8e6YAQClpiD0Tew8UZkVre9rtggoj2</credentials>
                </user>
  3.then delete content in the <credentials> tags;
  3.Enter the following command:
  emctl set password reset <new password>
  4.Restart your PC.
  After the restart, the Enterprise Manager Web Site will be using your new Administrator (ias_admin) password.
  10. Starting the "oidmon" process
  oidmon start
  11. Start the oidldapd server processes
  oidctl connect=myoid server=oidldapd instance=1 start
  12. install completed

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值