How to Install OracleAS Infrastructure (10.1.4.0.1)

Posted at Thursday, June 05, 2008
This post assumes that you want to install OracleAS Infrastructure (10.1.4.0.1) using an existing Metadata Repository, created earlier with the Metadata Repository Creation Assistant (MRCA): see the following post.

The above is normally accomplished in steps to allow for a more distributed topology for the OracleAS Infrastructure installation. In my case, I will place the Metadata Repository (database) on one server and then use another server for the remaining components, such as the Application Server. This posting covers the latter step.

Unpack the appropriate software

# cpio -idmv < as_linux_x86_oim_oif_101401_disk1.cpio
# cpio -idmv < as_linux_x86_oim_oif_101401_disk2.cpio


Due to some installation errors, namely inventory corruption issues, I specify an installation-specific inventory location via /etc/oraInst.loc (depending upon your installation, you may have to do so as root)

# su - root
# vi /etc/oraInst.loc
# more /etc/oraInst.loc
inventory_loc=/u01/app/oracle/product/oim/oraInventory
inst_group=dba

Set the environment

# echo "oim:/u01/app/oracle/product/oim:N" >> /etc/oratab
# export ORACLE_SID=oim
# . oraenv
# export DISPLAY=192.168.1.3:0.0
# export TMP=/tmp
# export TMPDIR=/tmp
# unset TNS_ADMIN=
# export PATH=.:/usr/local/java/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/bin:/bin:/usr/local/bin:/u02/oracle/logs/em/scripts/common/oracle/bin:/usr/bin/X11
# CLASSPATH=
# export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib

Run the Installer

# ./runInstaller -ignoreSysPreReqs
































Run the root.sh as root



# su - root
# cd /u01/app/oracle/product/oim
# ./root.sh
Running Oracle10 root.sh script...
\nThe following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/oim

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:

Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
OCR is configured for Oracle Cluster Ready Services. CSS is already configured and should be running from Oracle Cluster Ready Services home


Entering Oracle Internet Directory Root Installation Section

OiD Server Installation
Checking LDAP binary file protections
Setting oidmon file protections
Setting oidldapd file protections
Setting oidrepld file protections
Setting oidemdpasswd file protections
Setting remtool file protections
Setting oiddiag file protections
Leaving Oracle Internet Directory Root Installation Section





Post Installation Steps

Check key URLs:





Validate that components are running

# cd /u01/app/oracle/product/oim/opmn/bin/
# ./opmnctl status

Processes in Instance: jlc.rac2.colestock.test
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
DSA | DSA | 9142 | Alive
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | 28047 | Alive
OC4J | oca | 5202 | Alive
OC4J | OC4J_SECURITY | 4824 | Alive
HTTP_Server | HTTP_Server | 4630 | Alive
OID | OID | 14673 | Alive

Check that you can login to the Oracle Internet Directory as cn=orcladmin

# export DISPLAY=192.168.1.3:0.0
# oidadmin












Before verifying that single sign-on is operating, you will have to work around a known bug

SSO Authentication Fails With Internal Server Error After Upgrading To 10.1.4 Or Using MRCA 10.1.4.0.1 (Metalink NOTE:467706.1)

After install you will not be able to use SSO, instead the following error will be in the log files:

java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'ADD_AUDIT_LOG'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored


The workaround according to Oracle:

The SSO database schema needs to be upgraded to 10.1.4 by running the ssopatch.sql as user orasso.

1. Get the orasso database password:
ldapsearch -D cn=orcladmin -w -p
-b "cn=IAS,cn=Products,cn=OracleContext" -s sub "OrclresourceName=ORASSO" orclpasswordattribute

2. $ORACLE_HOME/opmn/bin/opmnctl stopall

3. cd $ORACLE_HOME/sso/admin/plsql/sso

4. sqlplus orasso/@

5. restart Identity Management
$ORACLE_HOME/opmn/bin/opmnctl starttall


In my case:

[oracle@rac2 log]$ ldapsearch -D cn=orcladmin -w password -p 389 -b "cn=IAS,cn=Products,cn=OracleContext" -s sub "OrclresourceName=ORASSO" orclpasswordattribute
OrclResourceName=ORASSO,orclReferenceName=EM.COLESTOCK.TEST,cn=IAS Infrastructure Databases,cn=IAS,cn=Products,cn=OracleContext
orclpasswordattribute=WV1z3ihA


# $ORACLE_HOME/opmn/bin/opmnctl stopall
opmnctl: stopping opmn and all managed processes...


# cd $ORACLE_HOME/sso/admin/plsql/sso                          
# sqlplus orasso/WV1z3ihA@em @ssopatch.sql


# $ORACLE_HOME/opmn/bin/opmnctl startall
opmnctl: starting opmn and all managed processes...


Afterwards, you can validate that SSO is functional by logging in as orcladmin





Optionally, set-up your OID installation for Net Service Name Resolution - reference my post on Setting Up OID (LDAP)

Labels: ,