Problems with the lock file

解决Oracle数据库中patch打失败导致的锁问题
本文详细介绍了在使用Oracle数据库时遇到patch打失败并导致锁住问题的情况,通过查看日志和文件存储目录,发现是某个patch未成功安装导致当前patch无法继续安装。解决方案在于删除该锁文件,从而解锁并允许后续patch正常安装。

打patch的时候出现这个错误。

Problems with the lock file
Lock file exists, details are:
 Interim Patch   7120509 is holding the lock from this patch 6864082,
 probably due to previous unsuccessful operation

这种明显说明是7120509这个patch没有打成功而导致无法打6864082这个patch。应该是有lock。

 

查询ls -la $ORACLE_HOME/.patch_storage

total 320
drwxr-x---  11 otzj9i   dba         8192 Dec 10 19:05 .
drwxr-xr-x  58 otzj9i   dba         8192 May 17  2009 ..
drwxr-x---   3 otzj9i   dba         8192 May 17  2009 4695511
drwxr-x---   3 otzj9i   dba         8192 May 17  2009 5695378
drwxr-x---   3 otzj9i   dba         8192 May 17  2009 5868257
drwxr-x---   3 otzj9i   dba         8192 May 17  2009 6122097
drwxr-xr-x   2 otzj9i   dba           96 Dec 10 19:05 6864082
drwxr-x---   2 otzj9i   dba         8192 Dec 10 16:07 7120509
drwxr-x---  13 otzj9i   dba         8192 May 17  2009 8290549
drwxr-x---   3 otzj9i   dba         8192 May 17  2009 8339234
-rw-r-----   1 otzj9i   dba          935 May 17  2009 LsInventory__05-17-2009_10-44-50.log
-rw-r-----   1 otzj9i   dba          846 May 17  2009 LsInventory__05-17-2009_10-45-26.log
-rw-r-----   1 otzj9i   dba          935 May 17  2009 LsInventory__05-17-2009_10-49-41.log
-rw-r-----   1 otzj9i   dba         2315 May 17  2009 LsInventory__05-17-2009_11-46-37.log
-rw-r-----   1 otzj9i   dba         2356 May 17  2009 LsInventory__05-17-2009_11-50-25.log
-rw-r-----   1 otzj9i   dba         2356 May 17  2009 LsInventory__05-17-2009_12-37-19.log
-rw-r-----   1 otzj9i   dba         2315 Jun  2  2009 LsInventory__06-02-2009_11-42-42.log
-rw-r-----   1 otzj9i   dba         2315 Jun  2  2009 LsInventory__06-02-2009_11-43-22.log
-rw-r-----   1 otzj9i   dba          902 Nov 13 19:49 LsInventory__11-13-2012_19-49-41.log
-rw-r-----   1 otzj9i   dba          250 Dec 10 15:38 patch_locked
drwxr-x---   2 otzj9i   dba         8192 May 17  2009 tmp

猜测是这个锁将patch锁住了,无法打下一个patch

z4as8031:testsale > vi patch_locked
"patch_locked" 9 lines, 250 characters
Locked for patch  :  7120509
Locked by class   :  Apply
Locked by process :  8886
Locked at time    :  Mon Dec 10 15:38:35 2012
Effective User ID :  16209
Real User ID      :  16209
Host details      :  z4as8031
RAC node details  :  Not Applicable

果然是这样,删除这个就可以了。

 

The OSError: Can't read data (can't open directory) encountered when using h5py indicates an issue with accessing the HDF5 file or the underlying data within it. While the error message specifically mentions "can't open directory," in the context of h5py and HDF5 files, this often points to problems with the HDF5 file itself or the permissions to access it, rather than a literal directory issue on the file system. Potential causes and solutions for this error include: Corrupted HDF5 file: The HDF5 file being accessed might be corrupted or improperly closed, leading to unreadable data. Solution: Attempt to open the file with an HDF5 viewer or validate its integrity using HDF5 tools if available. If corrupted, a backup or recreation of the file may be necessary. Insufficient file permissions: The user running the Python script may lack the necessary read permissions for the HDF5 file. Solution: Verify and adjust file system permissions to ensure read access for the user or process attempting to open the HDF5 file. File in use or locked: Another process might be actively using or holding a lock on the HDF5 file, preventing h5py from accessing it. Solution: Ensure that no other applications or processes are concurrently accessing the HDF5 file. Close any other programs that might be using the file. Incorrect path or non-existent file: Although less likely given the specific error message, a typo in the file path or the file not existing at the specified location could lead to read failures. Solution: Double-check the path to the HDF5 file to confirm its accuracy and existence. Issues with underlying HDF5 library: In rare cases, problems with the HDF5 library installation itself (which h5py relies on) could manifest as read errors.
09-08
[!] Unable to read the license file `LICENSE` for the spec `FirebaseAppCheckInterop (11.15.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAuth (11.8.1)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAuthInterop (11.15.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCore (11.8.1)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCoreExtension (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCoreInternal (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseInstallations (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `Fyber_Marketplace_SDK (8.3.8)` [!] Unable to read the license file `LICENSE` for the spec `GoogleUtilities (8.1.0)` [!] Unable to read the license file `LICENSE` for the spec `RecaptchaInterop (100.0.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAppCheckInterop (11.15.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAuth (11.8.1)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAuthInterop (11.15.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCore (11.8.1)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCoreExtension (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCoreInternal (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseInstallations (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `Fyber_Marketplace_SDK (8.3.8)` [!] Unable to read the license file `LICENSE` for the spec `GoogleUtilities (8.1.0)` [!] Unable to read the license file `LICENSE` for the spec `RecaptchaInterop (100.0.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAppCheckInterop (11.15.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAuth (11.8.1)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAuthInterop (11.15.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCore (11.8.1)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCoreExtension (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCoreInternal (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseInstallations (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `Fyber_Marketplace_SDK (8.3.8)` [!] Unable to read the license file `LICENSE` for the spec `GoogleUtilities (8.1.0)` [!] Unable to read the license file `LICENSE` for the spec `RecaptchaInterop (100.0.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAppCheckInterop (11.15.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAuth (11.8.1)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseAuthInterop (11.15.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCore (11.8.1)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCoreExtension (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseCoreInternal (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `FirebaseInstallations (11.8.0)` [!] Unable to read the license file `LICENSE` for the spec `Fyber_Marketplace_SDK (8.3.8)` [!] Unable to read the license file `LICENSE` for the spec `GoogleUtilities (8.1.0)` [!] Unable to read the license file `LICENSE` for the spec `RecaptchaInterop (100.0.0)` [!] The `Unity-iPhone [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Unity-iPhone/Pods-Unity-iPhone.release.xcconfig'. This can lead to problems with the CocoaPods installation
08-07
nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Sun Sep 28 06:39:34 2025 installer version: 560.28.03 PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin nvidia-installer command line: ./nvidia-installer --ui=none --no-questions --accept-license --disable-nouveau --no-cc-version-check --install-libglvnd Using built-in stream user interface -> Detected 16 CPUs online; setting concurrency level to 16. -> Scanning the initramfs with lsinitramfs... -> Executing: /usr/bin/lsinitramfs -l /boot/initrd.img-6.8.0-84-generic -> Multiple kernel module types are available for this system. Which would you like to use? (Answer: MIT/GPL) -> The file '/tmp/.X0-lock' exists and appears to contain the process ID '1790' of a running X server. -> You appear to be running an X server. Installing the NVIDIA driver while X is running is not recommended, as doing so may prevent the installer from detecting some potential installation problems, and it may not be possible to start new graphics applications after a new driver is installed. If you choose to continue installation, it is highly recommended that you reboot your computer after installation to use the newly installed driver. (Answer: Abort installation) ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
最新发布
09-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值