Gavriel Dorino
Gavriel Dorino

Reputation: 41

WLST - how to check if a patch was installed?

I need to patch my Oracle but i want to check first if the patches that I want to install are already installed. How can i do it with WLST? (I need to script it because i am going to use it on a lot of systems - middleware 11g)

thanks,
Gav.

Upvotes: 1

Views: 2912

Answers (2)

Rohan Gala
Rohan Gala

Reputation: 651

export ORACLE_HOME=/scratch/app/product/fmw/obpinstall;export PATH=$ORACLE_HOME/Opatch:$PATH; opatch lsinventory [-all] [patch desc]

Just mention the ORACLE_HOME attribute and run the following command in the terminal and it will output in descending order the list of all the available patches installed in that ORACLE_HOME

Upvotes: 0

Adam Musch
Adam Musch

Reputation: 13583

Make sure the ORACLE_HOME variable is set to the correct location, and invoke ORACLE_HOME\opatch\opatch.bat lsinventory.

You'll probably want to put the results of that in a file, and grep it looking for whatever it is you're looking for.

Upvotes: 1

Related Questions