In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
One day I was suddenly alerted that the oracle directory was highly used. Patch _ storage took up about 40G of space after checking.
What is the role of patch _ storage?
Each time a patch is made, some changes are made to the library file and module; before the change, opatch creates a snapshot in the $ORACLE_HOME/.patch_storage/ directory. Sometimes when there is a need to roll back a patch, there is a restore.sh script under this directory that can remove the previously done changes.
Directory structure:
Drwxr-xr-x 4 oracle oinstall 256 Nov 08 2016 17592127_Jan_8_2014_23_02_20
Drwxr-xr-x 4 oracle oinstall 256 Nov 08 2016 13343438_Dec_28_2011_01_17_39
Drwxr-xr-x 4 oracle oinstall 256 Nov 08 2016 13923374_Jun_14_2012_23_16_11
Drwxr-xr-x 4 oracle oinstall 256 Nov 08 2016 13696216_Apr_8_2012_21_52_22
Drwxr-xr-x 4 oracle oinstall 256 Nov 08 2016 14727310_Dec_31_2012_01_47_37
Drwxr-xr-x 4 oracle oinstall 256 Nov 08 2016 14275605_Oct_3_2012_23_27_54
Drwxr-xr-x 4 oracle oinstall 256 Nov 08 2016 16056266_Mar_13_2013_05_49_56
Files in one of the directories:
Oracle/app/oracle/product/11.2.0/db_1/.patch_storage/17586955_Jun_16_2015_10_26_31 $ls-lrt
Total 8
Drwxr-xr-x 4 oracle oinstall 256 Jan 10 23:30 original_patch
Drwxr-xr-x 3 oracle oinstall 256 Jan 10 23:30 files
-rwx--x--- 1 oracle oinstall 1533 Jan 10 23:30 rollback.sh
That is to say, a certain amount of disk space is required when patching. Otherwise, the copy process cannot be completed. In theory, the maximum space required for a patch is 1.8G, but in practice it will be less than this value, and the general oracle directory will not have so much space left, so don't pay too much attention to it.
Here is the cleanup process:
One node:
[grid@byo87631:/oracle/app/product/grid] du-sg. Patch _ storage
37.73 .patch _ storage
[grid@byo87631:/oracle/app/product/grid] opatch util cleanup
Invoking OPatch 11.2.0.1.6
Oracle Interim Patch Installer version 11.2.0.1.6
Copyright (c) 2011, Oracle Corporation. All rights reserved.
UTIL session
Oracle Home: / oracle/app/product/grid
Central Inventory: / oracle/app/oraInventory
From: / etc/oraInst.loc
OPatch version: 11.2.0.1.6
OUI version: 11.2.0.2.0
Log file location: / oracle/app/product/grid/cfgtoollogs/opatch/opatch3018-02-02 / 19-39-49PM.log
Invoking utility "cleanup"
OPatch will clean up' restore.sh,make.txt' files and 'rac,scratch,backup' directories.
You will be still able to rollback patches after this cleanup.
Do you want to proceed? [y | n]
Y
User Responded with: Y
Size of directory "/ oracle/app/product/grid/.patch_storage" before cleanup is 40496924381 bytes.
Size of directory "/ oracle/app/product/grid/.patch_storage" after cleanup is 23138284034 bytes.
UtilSession: Backup area for restore has been cleaned up. For a complete list of files/directories
Deleted, Please refer log file.
OPatch succeeded.
Two nodes:
[grid@byo87632:/oracle/app/product/grid] du-sg. Patch _ storage
37.73 .patch _ storage
[grid@byo87632:/oracle/app/product/grid] opatch util cleanup
Invoking OPatch 11.2.0.1.6
Oracle Interim Patch Installer version 11.2.0.1.6
Copyright (c) 2011, Oracle Corporation. All rights reserved.
UTIL session
Oracle Home: / oracle/app/product/grid
Central Inventory: / oracle/app/oraInventory
From: / etc/oraInst.loc
OPatch version: 11.2.0.1.6
OUI version: 11.2.0.2.0
Log file location: / oracle/app/product/grid/cfgtoollogs/opatch/opatch3018-02-02-02-19-54-42PM.log
Invoking utility "cleanup"
OPatch will clean up' restore.sh,make.txt' files and 'rac,scratch,backup' directories.
You will be still able to rollback patches after this cleanup.
Do you want to proceed? [y | n]
Y
User Responded with: Y
Size of directory "/ oracle/app/product/grid/.patch_storage" before cleanup is 40496924381 bytes.
Size of directory "/ oracle/app/product/grid/.patch_storage" after cleanup is 23138284034 bytes.
UtilSession: Backup area for restore has been cleaned up. For a complete list of files/directories
Deleted, Please refer log file.
OPatch succeeded.
[grid@byo87632:/oracle/app/product/grid] du-sg. Patch _ storage
21.56 .patch _ storage
Clean up from more than 40 g to more than 20 g.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.