Wednesday, June 15, 2011

Resetting the Administrator (oc4jadmin) Password

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com

Problem: Forgot OC4JADMIN password:

If you are maintaining Oracle Application Server 10g Release 3 (10g AS R3)  and you wish to reset OC4JADMIN password , here what you have to do:

1. oc4jadmin is  created during installation and the default password is (secure)

2. This password is stored in encrypted format in file $ORACLE_HOME/j2ee/home/config/system-jazn-data.xml


3.Stop OC4J and the Application Server Control.
Enter the following command in the Oracle home of the application server instance:
(UNIX) ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=OC4J 
4. Locate and open the following file in a text editor:Locate the line that defines the credentials property for the oc4jadmin user. 

<user>
<name>oc4jadmin</name>
<display-name>OC4J Administrator</display-name>
<description>OC4J Administrator</description>
<credentials>{903}4L50lHJWIFGwLgHXTub7eYK9e0AnWLUH</credentials>
</user>
Replace the existing encrypted password with the new password.
Be sure to prefix the password with an exclamation point (!). For example:

5. 
Delete cached password data by deleting the contents of the following directory:
ORACLE_HOME/j2ee/oc4jinstance/persistence/ascontrol/ascontrol/securestore/
6.
Start OC4J and the Application Server Control.
After the restart, the Application Server Control will use your new Administrator (oc4jadmin) password, which will be stored in encrypted format within the system-jazn-data.xml file.

<credentials>!mynewpassword123</credentials>

(UNIX)ORACLE_HOME/j2ee/home/config/system-jazn-data.xml
    
Get Oracle Certifications for all Exams
Free Online Exams.com

OPMN Report Error 'BAD STRING' When Checking the Apps Services Status on Solaris

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
Problem: OPMN Report Error 'BAD STRING' When Checking the Apps Services Status on Solaris
 cd $ADMIN_SCRIPTS_HOME

./adopmnctl.sh status & ./adapcctl.sh fails with the following error:


./adopmnctl.sh status

You are running adopmnctl.sh version 120.4.12000000.3

Checking status of OPMN managed processes...
Bad string
Unable to connect to opmn.
Opmn may not be up.

adopmnctl.sh: exiting with status 0

*******

Cause:

The opmnctl script makes use of the UNIX command "tr" as

MODIFIED_ORA_CONFIG_HOME="`echo $ORACLE_CONFIG_HOME | tr -d "[:space:]"`"

While running adopmnctl.sh, the environment file .env under $ORA_CONFIG_HOME/10.1.3 is sourced.
.env gets instantiated from template iAS_1013_env.tmp under $AD_TOP.

The template file has env variable PATH variable defined as $ORACLE_HOME/bin:$ORACLE_CONFIG_HOME/opmn/bin:$ORACLE_CONFIG_HOME/Apache/Apache/bin:$ORACLE_HOME/Apache/Apache/bin:$ORACLE_HOME/oui/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/appsutil/jdk/bin:$ORACLE_HOME/jdk/jre/bin:$ORACLE_HOME/perl/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:$PATH"

The "tr" command from /usr/bin is picked up for execution as per the PATH environment variable. As per Solaris documentation mentioned below to use "tr" command, /usr/xpg4/bin should be used. This is the root cause of the bug.

On Solaris, if the command "tr" from /usr/bin is used, the character class expressions "[:space:]" is not recognized in multibyte support environment (MSE).
As per Solaris documentations, in such cases, the "tr" command from /usr/xpg4/bin should be used.


For Solaris documentation:
You can see the note below in manual pages for tr command by executing `man tr` command.

Note: /usr/bin/tr supports character class expressions only in singlebyte locales. Use /usr/xpg4/bin/tr to support these expressions in any locale.



Solution:


Take backup for /usr/bin/tr
copy /usr/xpg4/bin/tr /usr/bin


    
Get Oracle Certifications for all Exams
Free Online Exams.com

OPMN is not start while applying patch 10.1.3.5 stops at 83%

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
Problem:OPMN is not start while applying patch 10.1.3.5 stops at 83%

While Upgrading to the Latest OracleAS 10g 10.1.3.x Patch Set in Oracle E-Business Suite Release 12 [ID 454811.1] 

Installer gave an error as show below exactly when reaching 83%

#########
OPMN is failing to start. OPMN must be started in order to correctly install and configure the patchset. Please start OPMN manually in order to continue with the patchset installation.
#########





$IAS_ORACLE_HOME/opmn/bin/opmnctl is trying to read opmn.xml from path pointed by $ORACLE_CONFIG_HOME which points to 10.1.2 home instead opmnctl should need 10.1.3 home
Do below:
Point ORACLE_CONFIG_HOME to 10.1.3 home and test by running the below command before running the installer again.
$IAS_ORACLE_HOME/opmn/bin/opmnctl status (or) startall
Export the environment variable before invoking runinstaller and this should be able to bypass the issue.

Solution:
$ echo $ORACLE_CONFIG_HOME
/erpapp/aderp/inst/apps/adtmp_erptest-temp/ora/10.1.2
$ export ORACLE_CONFIG_HOME=/erpapp/aderp/inst/apps/adtmp_erptest-temp/ora/10.1.3
$ echo $ORACLE_CONFIG_HOME
/erpapp/aderp/inst/apps/adtmp_erptest-temp/ora/10.1.3


Run the installer again and you will pass the 83% error.


      



Get Oracle Certifications for all Exams
Free Online Exams.com