1846460 Members
2277 Online
110256 Solutions
New Discussion

which patch is installed

 
SOLVED
Go to solution
Adrian Hannelly
Occasional Advisor

which patch is installed

Hello,

I have just inherited HPUX 11i (11.11) 64 bit system from the previous admin.

Unfortunately I have had no experience admining a HPUX system and I have been charged with installing oracle on this system.

I have been going through the oracle doco and it states that I need certain versions of patches installed. I was wondering if there was anyway to tell if the patches have already been installed, I can't ask the other admin has he has left the company?
9 REPLIES 9
KCS_1
Respected Contributor

Re: which patch is installed

Hi,

This command will give you what patches has installed on your system.

# swlist -l product |grep -i PH*









Easy going at all.
Michael Tully
Honored Contributor
Solution

Re: which patch is installed

There are two things to note when looking for patches on your system. Single patches and of course patches loaded from a bundle, like a support bundle from a certain month.

To find the actual last support bundle:

# swlist -a revision
and look for:
GOLDAPPS11i B.11.11.0212.4
GOLDBASE11i B.11.11.0212.4
HWEnable11i B.11.11.0303.4

These basically tell you what month they are from (0212 = March 2003)

To list all patches:

# /usr/contrib/bin/show_patches
or if not installed:

# swlist -l product -a is_patch | grep -i true
Anyone for a Mutiny ?
Adrian Hannelly
Occasional Advisor

Re: which patch is installed

Thanks for that, is there anyway to tell if an older depreciated patch has been applied and then subsequently updated. I ask this because the list of patches from oracle seems a bit old.
Con O'Kelly
Honored Contributor

Re: which patch is installed

Hi Adrian

The show_patches command has a "-s" switch that will show superseded patches.
Also look at the "cleanup" command as this can clear space in /var that is consumed by superseded patches.

You can also use the ITRC patch site to check your patches. If you enter the Patch ID given in the Oracle Doco, the ITRC site will tell you if there is a later patch and what patches have been superseded.
http://www1.itrc.hp.com/service/patch/pdbMainPage.do?admit=-682735245+1077079725501+28353475

Cheers
Con
Michael Tully
Honored Contributor

Re: which patch is installed

You can aslo use 'swlist' to display the status of all patches. (applied, committed or superseded)

# swlist -l patch -a patch_state \*.\*,c=patch
Anyone for a Mutiny ?
Adrian Hannelly
Occasional Advisor

Re: which patch is installed

This is all great help and I thank you all for it. Just one last question, If I download a older patch and try to install it will HPUX imform me that I am installing an older patch?
Con O'Kelly
Honored Contributor

Re: which patch is installed

Hi Adrian

No, unfortunately it won't inform you.
I'd check the patches on the ITRC site and ensure the patches have not been superseded.

Cheers
Con
Michael Tully
Honored Contributor

Re: which patch is installed

I am quite sure that the preview being used from within 'swinstall' will check this. The interactive session (TUI) goes through an analysis phase which should pick this up and consequently fail. You can run an swinstall session from the command line with the -p (preview option) Check the man page for details or use no options with swinstall and the TUI will start.
Anyone for a Mutiny ?
Con O'Kelly
Honored Contributor

Re: which patch is installed

Micheal is correct.
I misunderstood & thought you were asking if HP-UX has the smarts to figure out that there is a more recent patch available.

Cheers
Con