Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

HP-UX 11i v2: What's this error? "Please make sure you are running OPatch with JRE version 1.4 or later."

Posted on 2009-02-19
9
Medium Priority
?
811 Views
Last Modified: 2012-05-06
I am trying to patch an HP-UX 11i v2 system and I have downloaded and applied the Java Runtime Environment 1.5 from the HP website.  I have updated my PATH variable so that it points to /opt/java1.5/bin and when I run "java -version" I get the following:
java version "1.5.0.15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.15-_12_jan_2009_08_47)
Java HotSpot(TM) Server VM (build 1.5.0.15 jinteg:01.12.09-14:34 IA64, mixed mode)

When I run "opatch lsinventory" I get the following:
========================================================
GENERIC OPATCH VERSION - FOR USE IN SAP ENVIRONMENT ONLY
========================================================
Please make sure you are running OPatch with JRE version 1.4 or later.
OPatch failed with error code 255

Can anyone tell me where I am going wrong?

Thanks,
Shamelessuk
0
Comment
Question by:Shamelessuk
  • 5
  • 4
9 Comments
 
LVL 2

Accepted Solution

by:
evgenyg earned 2000 total points
ID: 23679695
Hello
1) Did you have ORACLE_HOME and location of OPath directory in your PATH variable?
2) Please run OPatch in debug mode then you'll collect more information:
  set environment variable OPATCH_DEBUG to be TRUE (how it depend on your SHELL and OS)
  (NOTE: This is set at the CMD Prompt.) and then run opatch command again

Evgeny
0
 

Author Comment

by:Shamelessuk
ID: 23679823
Hi,

The ORACLE_HOME variable is set, but the location does not appear in the PATH variable.  The OPatch directory is not shown in the PATH variable either, but I am running the opatch lsinventory command from the OPatch directory.
I have set the OPatch to debug and run opatch lsinventory again and the output is shown below:
_osArch is
========================================================
GENERIC OPATCH VERSION - FOR USE IN SAP ENVIRONMENT ONLY
========================================================
/oracle/HED/920_64/jdk/bin/java -cp ./ocm/lib/emocmutl.jar:/oracle/HED/920_64/oui/jlib/OraI
nstaller.jar:/oracle/HED/920_64/oui/jlib/xmlparserv2.jar:/oracle/HED/920_64/oui/jlib/share.
jar:/oracle/HED/920_64/oui/jlib/srvm.jar:./jlib/opatch.jar:./jlib/opatchutil.jar:./jlib/opa
tchprereq.jar:./jlib/opatchactions.jar -DOPatch.ORACLE_HOME=/oracle/HED/920_64 -DOPatch.DEB
UG=true -DOPatch.RUNNING_DIR=.   oracle/opatch/OPatch lsinventory

Please make sure you are running OPatch with JRE version 1.4 or later.

OPatch failed with error code 255

Thanks for your prompt attention.

Regards,
Shamelessuk
0
 
LVL 2

Assisted Solution

by:evgenyg
evgenyg earned 2000 total points
ID: 23680092
It seems you use OPatch version for SAP?
And your environment this is SAP env?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:Shamelessuk
ID: 23680117
Hi,

Yes, my environment is a SAP environment.
Does this make a difference?  AS far as I can tell, SAP is not involved yet.

Cheers,
Matt
0
 
LVL 2

Assisted Solution

by:evgenyg
evgenyg earned 2000 total points
ID: 23681053
And version of this java: /oracle/HED/920_64/jdk/bin/java  is?
You are installed java into : /opt/java1.5/ but for some reason use  /oracle/HED/920_64/jdk/
0
 

Author Comment

by:Shamelessuk
ID: 23681301
I think you may be on to something here.  When I am in the /oracle/HED/920_64/jdk/bin directory and run the ./java -version, I get the following:

pwd
/oracle/HED/920_64/jdk/bin
./java -version

java version "1.3.1.17"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.17-050824-14:32)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.17-_24_aug_2005_17_38 IA64, mixed mode)

This does seem to be the problem.  Any ideas how to correct this?

Cheers,
Shamelessuk
0
 
LVL 2

Assisted Solution

by:evgenyg
evgenyg earned 2000 total points
ID: 23681474
Probably correction is:
1) Add your fresh java installation to head of PATH variable.
Check that you got java from right location by running with java or just java -version (without ./)
2) add yours OPatch installation path and your ORACLE_HOME to PATH variable and then run the java command directly from the fresh installation location.
0
 

Author Comment

by:Shamelessuk
ID: 23682616
Hi,

Thanks for all your help.  I made the changes you suggested and it still failed.
However, I have done the following:
mv /oracle/HED/920_64/jdk /oracle/HED/920_64/jdk_orig
ln s /opt/java1.5 /oracle/HED/920_64/jdk

Now when I run opatch lsinventory I get told that no patches have been installed.  It looks like the problem has now been resolved.

Cheers,
Shamelessuk
0
 
LVL 2

Assisted Solution

by:evgenyg
evgenyg earned 2000 total points
ID: 23683003
Once you use right java version it works, good for you :). For me usual the OPatch not working well because the oracle installations usual very dirty (copied, moved, relinked etc.)  In this case make the OPatch works not so simple as it looks like :)
Have good day
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to take different types of Oracle backups using RMAN.
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question