Issue :
Last week, we had the following autoconfig issue on one of our development instance,
##########################################################################
Generate Tns Names
##########################################################################
ERROR: apps/bin/jre and apps/bin/java not found
Pass option 'java' on command line
Error in getting ClassPath
Logfile: /apps/local/SID/inst/apps/SID_hostname/admin/log/03222220/NetServiceHandler.log
Classpath :
Updating s_tnsmode to 'generateTNS'
UpdateContext exited with status: 1
Unrecognized option: -contextfile
Could not create the Java virtual machine.
Error generating tnsnames.ora from the database, temporary tnsnames.ora will be generated using templates
Instantiating Tools tnsnames.ora
Error in instantiating tools tnsnames.ora:
Error in instantiating web tnsnames.ora:
adgentns.pl exiting with status 256
ERRORCODE = 256 ERRORCODE_END
.end std out.
Exception in thread "main" java.lang.NoClassDefFoundError: /apps/local/SID/inst/apps/SID_hostname/appl/admin/SID_hostname/xml
Unrecognized option: -e
Could not create the Java virtual machine.
Unrecognized option: -e
Could not create the Java virtual machine.
.end err out.
Result : FAILED
===========================================================================
Solution :
As per the Oracle Doc : Autoconfig fails when running Adgentns.Pl with ERROR: apps/bin/jre and apps/bin/java not found [ID 731685.1], We performed the following,
Replace current adgentns.pl by adgentns.pl version120.4.12000000.3
1.1 Download patch 7207440 TXK - 12.0.4 Consolidated Patch 1 from Metalink
Do not apply it
1.2 Extract the file adgentns.pl 120.4.12000000.3 from patch 7207440
1.3 Backup your current adgentns.pl
1.4 Replace your current file by this file adgentns.pl 120.4.12000000.3
1.5 Retest autoconfig.
Finally it fixed our issue.
Thanks.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment