wiki:how_to_cleanup_old_updates
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:how_to_cleanup_old_updates [2024/01/05 16:34] – created wagner.jer | wiki:how_to_cleanup_old_updates [2024/10/15 11:48] (current) – wagner.jer | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| Old patches are stored in %ORACLE_HOME%\.patch_store\\ | Old patches are stored in %ORACLE_HOME%\.patch_store\\ | ||
| \\ | \\ | ||
| - | Make sure that the %ORACLE_HOME% variable is defined using following command: | + | - Run CMD.exe as administrator |
| + | - Make sure that the %ORACLE_HOME% variable is defined using following command: | ||
| <cli type=dos> | <cli type=dos> | ||
| %ORACLE_HOME%</ | %ORACLE_HOME%</ | ||
| - | When not defined (as above), use following command to define it: | + | - When not defined (as above), use following command to define it: |
| - | < | + | < |
| echo %ORACLE_HOME% | echo %ORACLE_HOME% | ||
| C: | C: | ||
| - | Make sure that the %PATH% variable contains %ORACLE_HOME%\perl\bin using following command: | + | - Make sure that the %PATH% variable contains %ORACLE_HOME%\perl\bin using following command: |
| <cli type=dos> | <cli type=dos> | ||
| %PATH%</ | %PATH%</ | ||
| - | When not containing the %ORACLE_HOME%\perl\bin (as above), use following command to define it (Make sure you include the %PATH% or you will overwrite your current variable with wrong setting: | + | - When not containing the %ORACLE_HOME%\perl\bin (as above), use following command to define it (Make sure you include the %PATH% or you will overwrite your current variable with wrong setting): |
| - | <cli type=dos> | + | <cli type=dos> |
| + | echo %PATH% | ||
| + | C: | ||
| + | - Navigate to the OPatch folder | ||
| + | < | ||
| + | - Check that OPatch version is above 12.2.0.1.37 (April 2023) | ||
| + | <cli type=dos> | ||
| + | OPatch Version: 12.2.0.1.40 | ||
| + | OPatch succeeded.</ | ||
| + | - List the patches that can be deleted using OPatch | ||
| + | <cli type=dos> | ||
| + | Oracle Interim Patch Installer version 12.2.0.1.40 | ||
| + | Copyright (c) 2024, Oracle Corporation. | ||
| + | Oracle Home : C: | ||
| + | Central Inventory : C:\Program Files\Oracle\Inventory | ||
| + | from : | ||
| + | OPatch version | ||
| + | OUI version | ||
| + | Log file location : C: | ||
| + | Invoking utility " | ||
| + | List Inactive patches option provided | ||
| + | The oracle home has the following inactive patch(es) and their respective overlay patches: | ||
| + | The number of RU chains is 1 | ||
| + | ***** There are 9 inactive RU patches in chain 1 | ||
| + | -Inactive RU/BP 31719903: | ||
| + | -Inactive RU/BP 32062765: | ||
| + | -Inactive RU/BP 32409154: | ||
| + | -Inactive RU/BP 32832237: | ||
| + | -Inactive RU/BP 33155330: | ||
| + | -Inactive RU/BP 33575656: | ||
| + | -Inactive RU/BP 34110685: | ||
| + | -Inactive RU/BP 34468114: | ||
| + | -Inactive RU/BP 35046439: | ||
| + | -Active RU/BP 35681552: | ||
| + | OPatch succeeded.</ | ||
| + | - Delete inactive patches except the latest inactive patche using following command (Last one will be kept in case you need to rollback): | ||
| + | <cli type=dos> | ||
| + | Oracle Interim Patch Installer version 12.2.0.1.40 | ||
| + | Copyright (c) 2024, Oracle Corporation. | ||
| + | Oracle Home : C: | ||
| + | Central Inventory : C:\Program Files\Oracle\Inventory | ||
| + | | ||
| + | OPatch version | ||
| + | OUI version | ||
| + | Log file location : C: | ||
| + | Invoking utility " | ||
| + | Inactive Patches Cleanup option provided | ||
| + | Delete Inactive Patches ....... | ||
| + | ***** There are 9 inactive RU patches in chain 1 | ||
| + | ***** 8 inactive patches will be deleted | ||
| + | -To be deleted inactive RU/BP 31719903: | ||
| + | -To be deleted inactive RU/BP 32062765: | ||
| + | -To be deleted inactive RU/BP 32409154: | ||
| + | -To be deleted inactive RU/BP 32832237: | ||
| + | -To be deleted inactive RU/BP 33155330: | ||
| + | -To be deleted inactive RU/BP 33575656: | ||
| + | -To be deleted inactive RU/BP 34110685: | ||
| + | -To be deleted inactive RU/BP 34468114: | ||
| + | -To be retained inactive RU/BP 35046439: | ||
| + | -Active RU/BP 35681552: | ||
| + | Do you want to proceed? [y|n]</ | ||
| + | - Confirm typing " | ||
| + | <cli type=dos> | ||
| + | User Responded with: Y | ||
| + | Deleted RU/BP patch: 31719903 | ||
| + | Deleted RU/BP patch: 32062765 | ||
| + | Deleted RU/BP patch: 32409154 | ||
| + | Deleted RU/BP patch: 32832237 | ||
| + | Deleted RU/BP patch: 33155330 | ||
| + | Deleted RU/BP patch: 33575656 | ||
| + | Deleted RU/BP patch: 34110685 | ||
| + | Deleted RU/BP patch: 34468114 | ||
| + | OPatch succeeded.</ | ||
wiki/how_to_cleanup_old_updates.1704472484.txt.gz · Last modified: by wagner.jer
