Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
1294 posts
|
Hello Erman,
i am performing an upgrade of 11.0.7 database to 12C. (Doc ID 1524398.1) In section 8, I need to apply https://support.oracle.com/rs?type=patch&id= 19382851. In the README, when I do opatch lsinventory it says oraprod#opatch lsinventory Java could not be located. OPatch cannot proceed! OPatch returns with error code = 1 I have java on my AIX. Thanks, Roshan |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
5731 posts
|
I guess you have an environment problem.
Check all the environment variable of yours. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
5731 posts
|
for this operation, java in ORACLE_HOME should be used. Not any default java in the OS.
So you need to have your PATH, ORACLE_HOME and all the related env variables set and you should be running the opatch using oracle Os user account. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
1294 posts
|
My $PATH is:
/app/PMTG/db/tech_st/11.1.0/appsutil/scripts/PMTG_erpprod:/app/PMTG/db/tech_st/11.1.0/perl/bin:/app/PMTG/db/tech_st/11.1.0/bin:/usr/ccs/bin:/usr/sbin:/app/PMTG/db/tech_st/11.1.0/appsutil/jre/bin:/usr/bin:/etc:/usr/lbin:/usr/bin/X11:/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oraprod/bin:/usr/bin/X11:/sbin:.:. JAVA_HOME: /app/PMTG/db/tech_st/11.1.0/jdbc/lib ORACLE_HOME /app/PMTG/db/tech_st/11.1.0 PMTG_erpdr.env is it ok? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
5731 posts
|
"unset JAVA_HOME" do the following in sequence set ORACLE_HOME (export ORACLE_HOME=<your_oracle_home_path)set PATH to include ORACLE_HOME (export PATH=$PATH:$ORACLE_HOME/bin) set ORACLE_SID ( export ORACLE_SID=<your_sid>) set PATH to include ORACLE_HOME/Opatch (export PATH=$PATH:$ORACLE_HOME/Opatch) and retry. 2016-09-23 12:19 GMT+03:00 Roshan [via Erman Arslan's Oracle Forum] <[hidden email]>: My $PATH is: ... [show rest of quote] Erman Arslan Applications and Database Operations Manager Oracle Certified Expert Certified Exadata Administrator Certified Linux Administrator Author for Apress MBA Blog: ermanarslan.blogspot.com Forum: http://ermanarslan.blogspot.com/p/forum.html M: 05301567803 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
1294 posts
|
export ORACLE_HOME=/app/PMTG/db/tech_st/11.1.0
export PATH=$PATH:$ORACLE_HOME/bin export ORACLE_SID=PMTG export PATH=$PATH:$ORACLE_HOME/OPatch oraprod#opatch -version Java could not be located. OPatch cannot proceed! OPatch returns with error code = 1 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
5731 posts
|
Did you unset the java home , "unset" 2016-09-23 12:30 GMT+03:00 Roshan [via Erman Arslan's Oracle Forum] <[hidden email]>: export ORACLE_HOME=/app/PMTG/db/tech_ ... [show rest of quote] Erman Arslan Applications and Database Operations Manager Oracle Certified Expert Certified Exadata Administrator Certified Linux Administrator Author for Apress MBA Blog: ermanarslan.blogspot.com Forum: http://ermanarslan.blogspot.com/p/forum.html M: 05301567803 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
1294 posts
|
yes I did.
oraprod#unset JAVA_HOME |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
5731 posts
|
Check this ;
Opatch fails with "Java could not be located. OPatch cannot proceed!" (Doc ID 2144961.1) |
Free forum by Nabble | Edit this page |