patch issue

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

patch issue

Roshan
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
Reply | Threaded
Open this post in threaded view
|

Re: patch issue

ErmanArslansOracleBlog
Administrator
I guess you have an environment problem.
Check all the environment variable of yours.
Reply | Threaded
Open this post in threaded view
|

Re: patch issue

ErmanArslansOracleBlog
Administrator
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.
Reply | Threaded
Open this post in threaded view
|

Re: patch issue

Roshan
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?
Reply | Threaded
Open this post in threaded view
|

Re: patch issue

ErmanArslansOracleBlog
Administrator
"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:
/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?


If you reply to this email, your message will be added to the discussion below:
http://erman-arslan-s-oracle-forum.2340467.n4.nabble.com/patch-issue-tp1318p1321.html
To start a new topic under EBS 12.1/12.0, email [hidden email]
To unsubscribe from Erman Arslan's Oracle Forum, click here.
NAML



--

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

Reply | Threaded
Open this post in threaded view
|

Re: patch issue

Roshan
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


Reply | Threaded
Open this post in threaded view
|

Re: patch issue

ErmanArslansOracleBlog
Administrator
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_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





If you reply to this email, your message will be added to the discussion below:
http://erman-arslan-s-oracle-forum.2340467.n4.nabble.com/patch-issue-tp1318p1323.html
To start a new topic under EBS 12.1/12.0, email [hidden email]
To unsubscribe from Erman Arslan's Oracle Forum, click here.
NAML



--

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

Reply | Threaded
Open this post in threaded view
|

Re: patch issue

Roshan
yes I did.
oraprod#unset JAVA_HOME

Reply | Threaded
Open this post in threaded view
|

Re: patch issue

ErmanArslansOracleBlog
Administrator
Check this ;

Opatch fails with "Java could not be located. OPatch cannot proceed!" (Doc ID 2144961.1)