Monday, June 7, 2010

Change the password for the oc4jadmin user using jazn.jar utility

To change "oc4jadmin" user's password from the command line, jazn.jar utility is used. This utility is available at $ORACLE_HOME/j2ee/home.

Steps:
1. cd $ORACLE_HOME/j2ee/home
2. export PATH=$ORACLE_HOME/jdk/bin/:$PATH
3. java –jar jazn.jar –setpassword jazn.com oc4jadmin <old_pwd> <new_pwd>
Once password is set it needs to be verfied.
java -jar jazn.jar -checkpasswd jazn.com oc4jadmin -pw <new_pwd>
If password is set as <new_pwd> then you will get message as "Successful verification of user/password pair." else you will get message "Unsuccessful verification of user/password pair.".

HTH,
Shantanu

Friday, June 4, 2010

OPMN - Issues and Resolution

Issue #1:
[oracle@SOASERVER~]$ opmnctl startproc process-type=HTTP_Server
opmnctl: starting opmn managed processes...
================================================================================
opmn id=SOASERVER:6200
0 of 1 processes started.

ias-instance id=orasoa.SOASERVER
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
HTTP_Server/HTTP_Server/HTTP_Server/

Error
--> Process (index=1,uid=1582646508,pid=8990)
failed to start a managed process after the maximum retry limit
Log:
/oracle/orasoa/opmn/logs//HTTP_Server~1.log
Log says:
mod_oc4j: request to OC4J SOASERVER:12510 failed: Connect failed (errno=111)

Solution #1:
1. Login as superuser
2. cd $ORACLE_HOME/Apache/Apache/bin
3. chmod 6750 .apachectl
4. logout and login as ORACLE user
5. opmnctl startproc process-type=HTTP_Server


Issue #2:
HTTP Server failed to start. When checked in the log file default_group~~default_group~1following message is seen.
WARNING: OC4J will not send ONS ProcReadyPort messages to opmn for service: OC4JServiceInfo id: null protocol: jms hostname: null port: 12601 description: null
null hostname was null

Solution #2:
The SOA Suite was started as SuperUser i.e. root.
1. Shutdown Oracle SOA Suite
2. Login as ‘root’ user
3. chown -R oracle:oinstall /mount_point/app/oracle_sw_owner in my case, I installed SOA Suite on /oracle mountpoint and my ORACLE_HOME=/oracle/orasoa.
[oracle@hostname ~]$ chown oracle:oinstall /oracle
[oracle@hostname ~]$ chmod -R 775 /oracle
4. Goto $ORACLE_HOME/j2ee//persistence/oc4j_soa_default_group_1
[oracle@hostname ~]$cd $ORACLE_HOME/j2ee//persistence/oc4j_soa_default_group_1
5. Remove jms.state
[oracle@hostname ~]$rm jms.state
6. Logout of super user and login as oracle user.
7. Restart your server.


Issue #3:
opmn id=SOASERVER:6200
0 of 1 processes started.

ias-instance id=orasoa.SOASERVER
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
SOA_GROUP/oc4j_soa/SOA_GROUP/

Error
--> Process (index=1,uid=448358410,pid=23622)
time out while waiting for a managed process to start
Log:
/oracle/orasoa/opmn/logs//SOA_GROUP~oc4j_soa~SOA_GROUP~1.log

Nothing can be seen in the log file.

Solution #3:
1. Take backup of your existing opmn.xml file
2. Now increase the start timeout $ ORACLE_HOME/opmn/conf/opmn.xml file

3. Reload opmn services
$ORACLE_HOME/opmn/bin/opmnctl reload
4. Start oc4j_soa.
opmnctl startproc process-type=oc4j_soa
If still your oc4j instance is not coming up that means there is some other issue.
1. Database: Check your database log.
You might see errors there. You need to resolve this error and then try to start oc4j instance. (Try database restart if you are not able to find any error in the database log but you can see that there are connection request from your application server. I know no DBA will like this solution :D ) OC4J container does not come up if it is not able to create the database connection pool.
2. Applications: If there are many applications that this oc4j instance has to initialize then try increasing the timeout parameter further.

Kindly provide your encouraging comments if it helps you.

HTH,
Shantanu