11gR2 GI打PSU ORACLE_HOME空间不足案例—需要20G以上空闲空间
GI打auto打patch命令 #/u01/oracle/app/grid/OPatch/opatch auto /u01/soft/18706472 -ocmrf /u01/soft/ocm.rspExecuting /u01/oracle/app/grid/perl/bin/perl /u01/oracle/app/grid/OPatch/crs/patch11203.pl -patchdir /u01/soft -patchn 18706472 -ocmrf
GI打auto打patch命令
#/u01/oracle/app/grid/OPatch/opatch auto /u01/soft/18706472 -ocmrf /u01/soft/ocm.rsp Executing /u01/oracle/app/grid/perl/bin/perl /u01/oracle/app/grid/OPatch/crs/patch11203.pl -patchdir /u01/soft -patchn 18706472 -ocmrf /u01/soft/ocm.rsp -paramfile /u01/oracle/app/grid/crs/install/crsconfig_params This is the main log file: /u01/oracle/app/grid/cfgtoollogs/opatchauto2014-10-15_01-15-28.log This file will show your detected configuration and all the steps that opatchauto attempted to do on your system: /u01/oracle/app/grid/cfgtoollogs/opatchauto2014-10-15_01-15-28.report.log 2014-10-15 01:15:28: Starting Clusterware Patch Setup Using configuration parameter file: /u01/oracle/app/grid/crs/install/crsconfig_params Stopping CRS... Stopped CRS successfully patch /u01/soft/18706472/18522509 apply successful for home /u01/oracle/app/grid patch /u01/soft/18706472/18522515 apply failed for home /u01/oracle/app/grid Starting CRS... Installing Trace File Analyzer CRS-4123: Oracle High Availability Services has been started. opatch auto succeeded.
这里可以看到,打patch 18522509成功,后续patch都失败,而不是仅仅18522515失败
分析错误日志
Composite patch 18522509 successfully applied. OPatch Session completed with warnings. Log file location: /u01/oracle/app/grid/cfgtoollogs/opatch/opatch2014-10-15_01-19-00AM_1.log OPatch completed with warnings. 2014-10-15 01:21:44: patch /u01/soft/18706472/18522509 apply successful for home /u01/oracle/app/grid 2014-10-15 01:21:44: Executing command /u01/oracle/app/grid/OPatch/opatch napply /u01/soft/18706472/18522515 -local -silent -ocmrf / u01/soft/ocm.rsp -oh /u01/oracle/app/grid -invPtrLoc /u01/oracle/app/grid/oraInst.loc as grid 2014-10-15 01:21:44: Running as user grid: /u01/oracle/app/grid/OPatch/opatch napply /u01/soft/18706472/18522515 -local -silent -ocm rf /u01/soft/ocm.rsp -oh /u01/oracle/app/grid -invPtrLoc /u01/oracle/app/grid/oraInst.loc 2014-10-15 01:21:44: s_run_as_user2: Running /bin/su grid -c ' /u01/oracle/app/grid/OPatch/opatch napply /u01/soft/18706472/18522515 -local -silent -ocmrf /u01/soft/ocm.rsp -oh /u01/oracle/app/grid -invPtrLoc /u01/oracle/app/grid/oraInst.loc ' 2014-10-15 01:21:49: Removing file /tmp/uaa7jC7eu 2014-10-15 01:21:49: Successfully removed file: /tmp/uaa7jC7eu 2014-10-15 01:21:49: /bin/su exited with rc=73 2014-10-15 01:21:49: status of apply patch is 18688 2014-10-15 01:21:49: The apply patch output is Oracle Interim Patch Installer version 11.2.0.3.6 Copyright (c) 2013, Oracle Corporation. All rights reserved. Oracle Home : /u01/oracle/app/grid Central Inventory : /u01/oracle/app/oraInventory from : /u01/oracle/app/grid/oraInst.loc OPatch version : 11.2.0.3.6 OUI version : 11.2.0.4.0 Log file location : /u01/oracle/app/grid/cfgtoollogs/opatch/opatch2014-10-15_01-21-44AM_1.log Verifying environment and performing prerequisite checks... Prerequisite check "CheckSystemSpace" failed. The details are: Required amount of space(24021.839MB) is not available. UtilSession failed: Prerequisite check "CheckSystemSpace" failed. Log file location: /u01/oracle/app/grid/cfgtoollogs/opatch/opatch2014-10-15_01-21-44AM_1.log OPatch failed with error code 73
这里可以看出来,patch 18522509 成功,但是18522515在check的时候失败,由于$ORACLE_HOME(GI)需要可用空间为24021.839MB,现在空闲空间不足
查看空间并腾空间
# df -g Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/hd4 10.00 9.56 5% 12443 1% / /dev/hd2 15.00 11.42 24% 60339 3% /usr /dev/hd9var 10.00 9.91 1% 3310 1% /var /dev/hd3 10.00 9.65 4% 364 1% /tmp /dev/hd1 10.00 10.00 1% 32 1% /home /dev/hd11admin 0.25 0.25 1% 5 1% /admin /proc - - - - - /proc /dev/hd10opt 10.00 8.98 11% 12401 1% /opt /dev/fslv00 50.00 12.94 75% 59137 2% /u01 /dev/odm 0.00 0.00 -1% 6 100% /dev/odm /dev/vx/dsk/crs_dg/crs_vol 1.96 1.75 12% 5 1% /crsdata /dev/vx/dsk/ora_dg/data01_vol 2048.00 2031.32 1% 4 1% /oradata/data01 /dev/vx/dsk/ora_dg/sys_vol 400.00 350.29 13% 3702 1% /oradata/sys # cd /u01 # ls lost+found oracle soft # cd soft # du -sg 17.34 . # mv /u01/soft /oradata/sys/ # df -g Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/hd4 10.00 9.56 5% 12443 1% / /dev/hd2 15.00 11.42 24% 60339 3% /usr /dev/hd9var 10.00 9.91 1% 3310 1% /var /dev/hd3 10.00 9.65 4% 364 1% /tmp /dev/hd1 10.00 10.00 1% 32 1% /home /dev/hd11admin 0.25 0.25 1% 5 1% /admin /proc - - - - - /proc /dev/hd10opt 10.00 8.98 11% 12401 1% /opt /dev/fslv00 50.00 27.56 45% 59137 2% /u01 /dev/odm 0.00 0.00 -1% 6 100% /dev/odm /dev/vx/dsk/crs_dg/crs_vol 1.96 1.75 12% 5 1% /crsdata /dev/vx/dsk/ora_dg/data01_vol 2048.00 2031.32 1% 4 1% /oradata/data01 /dev/vx/dsk/ora_dg/sys_vol 400.00 333.54 14% 3702 1% /oradata/sys # cd soft # ls -ltr total 12464202 drwxr-xr-x 5 grid dba 1024 Jul 07 21:06 18706472 -rw-rw-r-- 1 grid dba 2123 Jul 15 20:06 PatchSearch.xml -rw-r--r-- 1 root system 1801653734 Oct 14 14:39 p13390677_112040_aix64-5l_1of7.zip -rw-r--r-- 1 root system 1170882875 Oct 14 14:40 p13390677_112040_aix64-5l_2of7.zip -rw-r--r-- 1 root system 2127071138 Oct 14 14:41 p13390677_112040_aix64-5l_3of7.zip -rw-r--r-- 1 root system 1242090126 Oct 14 14:43 p18706472_112040_AIX64-5L.zip -rw-r--r-- 1 root system 34964928 Oct 14 14:43 p6880880_112000_AIX64-5L.zip -rwxr-xr-x 1 root system 127965 Oct 14 14:48 unzip_aix -rw-r--r-- 1 root system 4871110 Oct 14 14:50 ONEOFF_112043_AIX64.zip drwxr-xr-x 8 grid dba 1024 Oct 14 14:55 grid drwxr-xr-x 8 oracle dba 1024 Oct 14 14:57 database -rw-r--r-- 1 grid dba 621 Oct 15 00:11 ocm.rsp
确实/u01空间不足,通过把RAC安装文件迁移到其他目录,确保/u01有足够空间用来打patch
回退命令
# /u01/oracle/app/grid/OPatch/opatch auto /u01/soft/18706472 -rollback -ocmrf /u01/soft/ocm.rsp
重新打patch
#/u01/oracle/app/grid/OPatch/opatch auto /u01/soft/18706472 -ocmrf /u01/soft/ocm.rsp <p><strong>检查确认patch成功</strong></p> <pre class="brush:php;toolbar:false"> # su - grid xifenfei1:/home/grid> opatch lspatches 18522514;ACFS PATCH SET UPDATE : 11.2.0.4.3 (18522514) 18522515;OCW Patch Set Update : 11.2.0.4.3 (18522515) 18522509;Database Patch Set Update : 11.2.0.4.3 (18522509) xifenfei1:/home/grid> crsctl status res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.LISTENER.lsnr ONLINE ONLINE xifenfei1 ONLINE ONLINE xifenfei2 ora.asm OFFLINE OFFLINE xifenfei1 OFFLINE OFFLINE xifenfei2 ora.gsd OFFLINE OFFLINE xifenfei1 OFFLINE OFFLINE xifenfei2 ora.net1.network ONLINE ONLINE xifenfei1 ONLINE ONLINE xifenfei2 ora.ons ONLINE ONLINE xifenfei1 ONLINE ONLINE xifenfei2 ora.registry.acfs OFFLINE OFFLINE xifenfei1 OFFLINE OFFLINE xifenfei2 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE xifenfei2 ora.cvu 1 ONLINE ONLINE xifenfei2 ora.xifenfei1.vip 1 ONLINE ONLINE xifenfei1 ora.xifenfei2.vip 1 ONLINE ONLINE xifenfei2 ora.oc4j 1 ONLINE ONLINE xifenfei2 ora.scan1.vip 1 ONLINE ONLINE xifenfei2
- 打patch出现Copy failed—tfa服务导致部分lib未释放
- 11.2.0.4 GI单独安装tfa
- OLR相关维护
- Oracle 小升级 opatch apply使用
- 因asm sga_target设置不当导致11gr2 rac无法正常启动
- 在11GR2 GI上配置第二个监听
- ORACLE 12C RAC修改ocr/votedisk/asm spfile所在磁盘组名称
- 10.2.0.x升级到10.2.0.5.5
原文地址:11gR2 GI打PSU ORACLE_HOME空间不足案例—需要20G以上空闲空间, 感谢原作者分享。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solutions to Oracle cannot be opened include: 1. Start the database service; 2. Start the listener; 3. Check port conflicts; 4. Set environment variables correctly; 5. Make sure the firewall or antivirus software does not block the connection; 6. Check whether the server is closed; 7. Use RMAN to recover corrupt files; 8. Check whether the TNS service name is correct; 9. Check network connection; 10. Reinstall Oracle software.

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

Oracle database paging uses ROWNUM pseudo-columns or FETCH statements to implement: ROWNUM pseudo-columns are used to filter results by row numbers and are suitable for complex queries. The FETCH statement is used to get the specified number of first rows and is suitable for simple queries.

To stop an Oracle database, perform the following steps: 1. Connect to the database; 2. Shutdown immediately; 3. Shutdown abort completely.

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

SQL statements can be created and executed based on runtime input by using Oracle's dynamic SQL. The steps include: preparing an empty string variable to store dynamically generated SQL statements. Use the EXECUTE IMMEDIATE or PREPARE statement to compile and execute dynamic SQL statements. Use bind variable to pass user input or other dynamic values to dynamic SQL. Use EXECUTE IMMEDIATE or EXECUTE to execute dynamic SQL statements.

When Oracle log files are full, the following solutions can be adopted: 1) Clean old log files; 2) Increase the log file size; 3) Increase the log file group; 4) Set up automatic log management; 5) Reinitialize the database. Before implementing any solution, it is recommended to back up the database to prevent data loss.
