ORACLE 11.2.0.4 180116 PSU HP 安腾 11.31 安装

27282436 = 27107360 (PSU) + 26925532 (OJVM)



0.为了避免安装补丁运行数据字典脚本时与系统后台作业冲突,查看AutoTask,如果有Enabled的,先Disable,打完补丁后再Enable.

su - oracle
sqlplus "/as sysdba"
set lin 180 pages 10000
COL CLIENT_NAME FORMAT A40
COL CONSUMER_GROUP FORMAT A30
COL WINDOW_GROUP FORMAT A30
select CLIENT_NAME,STATUS,CONSUMER_GROUP,WINDOW_GROUP from dba_autotask_client;

CLIENT_NAME                              STATUS   CONSUMER_GROUP                 WINDOW_GROUP
---------------------------------------- -------- ------------------------------ ------------------------------
auto optimizer stats collection          ENABLED  ORA$AUTOTASK_STATS_GROUP       ORA$AT_WGRP_OS
auto space advisor                       DISABLED ORA$AUTOTASK_SPACE_GROUP       ORA$AT_WGRP_SA
sql tuning advisor                       DISABLED ORA$AUTOTASK_SQL_GROUP         ORA$AT_WGRP_SQ

BEGIN
DBMS_AUTO_TASK_ADMIN.DISABLE(
client_name => ‘auto optimizer stats collection‘,
operation => NULL,
window_name => NULL);
END;
/

BEGIN
DBMS_AUTO_TASK_ADMIN.DISABLE(
client_name => ‘auto space advisor‘,
operation => NULL,
window_name => NULL);
END;
/

BEGIN
DBMS_AUTO_TASK_ADMIN.DISABLE(
client_name => ‘sql tuning advisor‘,
operation => NULL,
window_name => NULL);
END;
/

再确认当前的数据库组件状态是否都正常,并记录当前状态:

set lin 170 pages 10000
select comp_id,status,version from dba_registry;

COMP_ID                        STATUS                 VERSION
------------------------------ ---------------------- ------------------------------
OWB                            VALID                  11.2.0.4.0
APEX                           VALID                  3.2.1.00.12
EM                             VALID                  11.2.0.4.0
AMD                            VALID                  11.2.0.4.0
SDO                            VALID                  11.2.0.4.0
ORDIM                          VALID                  11.2.0.4.0
XDB                            VALID                  11.2.0.4.0
CONTEXT                        VALID                  11.2.0.4.0
EXF                            VALID                  11.2.0.4.0
RUL                            VALID                  11.2.0.4.0
OWM                            VALID                  11.2.0.4.0
CATALOG                        VALID                  11.2.0.4.0
CATPROC                        VALID                  11.2.0.4.0
JAVAVM                         VALID                  11.2.0.4.0
XML                            VALID                  11.2.0.4.0
CATJAVA                        VALID                  11.2.0.4.0
APS                            VALID                  11.2.0.4.0
XOQ                            VALID                  11.2.0.4.0
RAC                            VALID                  11.2.0.4.0

19 rows selected.


1.以grid用户停止listener,并kill数据库会话进程

su - grid
srvctl stop listener
srvctl stop scan_listener
kill -9 `ps -ef|grep LOCAL=NO|grep -v grep|grep -iv ASM|awk ‘{print $2}‘`


2.以oracle用户禁用db自动启动,然后停止db

su - oracle
srvctl disable db -d pubdb
srvctl stop db -d pubdb


3.(该步骤已经提前执行完成)以root用户替换opatch工具到最新版本

su - root
cat /home/oracle/.profile | grep HOME
export PATCH_DIR=/oracle/software
export PATCH_GRID_HOME=/grid/app/11.2.0.4/grid
export PATCH_ORACLE_HOME=/oracle/app/oracle/11.2.0.4/db_1
mv $PATCH_GRID_HOME/OPatch $PATCH_GRID_HOME/Opatch.orig`date +%Y%m%d`
mv $PATCH_ORACLE_HOME/OPatch $PATCH_ORACLE_HOME/OPatch.orig`date +%Y%m%d`

cd $PATCH_DIR
unzip p6880880_112000_HPUX-IA64.zip
cp -r ./OPatch $PATCH_GRID_HOME/
cp -r ./OPatch $PATCH_ORACLE_HOME/
cd $PATCH_GRID_HOME/; chown -R grid:oinstall ./OPatch
cd $PATCH_ORACLE_HOME/; chown -R oracle:oinstall ./OPatch


4.按照下面的步骤安装补丁


su - oracle
export PATCH_DIR=/oracle/software

cd $ORACLE_HOME/OPatch/ocm/bin
./emocmrsp -output /tmp/ocm.rsp

cd $PATCH_DIR
unzip p27282436_112040_HPUX-IA64.zip

su - root


a.检查root用户的环境变量,如果有ORACLE_HOME,ORA_GRID_HOME,GRID_HOME等设置,需要注销这些环境变量,然后重新登录系统;
b.检查安装crs和db的文件系统空间是否足够,打补丁前至少要保证50G空闲空间;
c.检查root/grid/oracle用户的crontab作业,打补丁前先注销访问$ORACLE_HOME和$GRID_HOME的作业,打完补丁后再启用
d.查看是否有未注册到OCR里的grid/oracle独立进程,例如其他的listener,通过kill -9 杀掉这些进程;如果不确定哪些进程是独立的
,可以考虑先停止CRS后再重新拉起来,然后执行后续的步骤


su - root
export PATCH_DIR=/oracle/software
export PATCH_GRID_HOME=/grid/app/11.2.0.4/grid
export PATCH_ORACLE_HOME=/oracle/app/oracle/11.2.0.4/db_1
export PSU_PATCH_ID=27282436/27107360
# $PATCH_GRID_HOME/OPatch/opatch auto $PATCH_DIR/$PSU_PATCH_ID -oh $PATCH_GRID_HOME -ocmrf /tmp/ocm.rsp
# $PATCH_ORACLE_HOME/OPatch/opatch auto $PATCH_DIR/$PSU_PATCH_ID -oh $PATCH_ORACLE_HOME -ocmrf /tmp/ocm.rsp

报错处理

Opatch version check failed for oracle home /grid/app/11.2.0.4/grid
Opatch version check failed
ERROR: update the opatch version for the failed homes and retry

UtilSession failed: IPMRWServices::verifyPatchStorageDirectory() cannot read or write to /grid/app/11.2.0.4/grid/.patch_storage

OPatch failed with error code 73

CRMAPP3#[/]#cd /grid/app/11.2.0.4/grid/
CRMAPP3#[/grid/app/11.2.0.4/grid]#mkdir .patch_storage
CRMAPP3#[/grid/app/11.2.0.4/grid]#chown grid:oinstall .patch_storage

----------以下脚本用于补丁回滚操作----------

######### $PATCH_GRID_HOME/OPatch/opatch auto $PATCH_DIR/$PSU_PATCH_ID -rollback -oh $PATCH_GRID_HOME -ocmrf /tmp/ocm.rsp
######### $PATCH_ORACLE_HOME/OPatch/opatch auto $PATCH_DIR/$PSU_PATCH_ID -rollback -oh $PATCH_ORACLE_HOME -ocmrf /tmp/ocm.rsp

su - grid
$ORACLE_HOME/OPatch/opatch lsinv

su - oracle
$ORACLE_HOME/OPatch/opatch lsinv

原文地址:http://blog.51cto.com/recyclebin/2084503

时间: 2024-11-05 23:41:26

ORACLE 11.2.0.4 180116 PSU HP 安腾 11.31 安装的相关文章

Oracle 11.2.0.4打PSU 11.2.0.4.161018

最近生产上要给Oracle数据库打11g最新的补丁,这里先做一个测试记录一下. Oracle数据库所有补丁的MOS文档ID 1922396.1下载地址:https://support.oracle.com/epmos/faces/DocContentDisplay?_afrLoop=242245405602967&id=1577380.1&_afrWindowMode=0&_adf.ctrl-state=zv36z4hoo_53这个下载需要有MOS账号 Oracle数据库的补丁有几

11.2.0.4.6 PSU升级成功

上周给自己的虚拟机11.2.0.4.5打.6的PSU没想到我在一个节点把之前opatch 备份的目录给删除了,结果就打不上补丁了.记住啊$GRID_HOME和$ORACLE_HOME下的.patch_storage目录可千万不能删除了,否则就无法打上补丁了.今天有时间,想折腾一下,查看了下,幸好2节点都没有 把目录删除,SCP过来,什么都没有修改,直接OPatch就成功了,特此纪念下.Metalink上的两篇文章我也拷贝下来了,就是关于.patch_storage的维护的,给需要的人看吧 htt

Oracle 10.2.0.5 RMAN迁移并升级11.2.0.4一例

一.环境介绍 1. 源数据库环境 操作系统版本: OEL 5.4 x64数据库版本  : 10.2.0.5 x64数据库sid名 : orcl Oracle 10g 10.2.0.5(64bit)安装目录如下: 数据库软件:/u01/app/oracle/product/10.2.0/db_1数据库文件:/u01/app/oracle/oradata/orcl 归档目录:/u01/archivelog RMAN目录:/backup/dbbak/orabak 背景:一个老oracle10g数据库,

Oracle 11.2.0.1在xp上的静默(slient)安装

环境: XP SP3+Oracle 11.2.0.1 安装Oracle软件及数据库 先找到响应文件模版(一般在安装包的..\database\response下),进行编辑. 先复制一份原模版文件: E:\cry\SOFT\database>copy response/db_install.rsp db_install_cry.rsp response\dbca.rsp response\db_install.rsp response\db_install_cry.rsp response\ne

PSU 从11.2.0.3.0 -> 11.2.0.3.11 遇冲突解决全程

Oracle rdbms 打psu从11.2.0.3.0升级到11.2.0.3.11 参考patch :18522512 停应用,停监听与DB,将db的oracle_home下的OPatch目录加到环境变化PATH路径下,因为接下来要用opatch工具. 报错,说这个opatch工具太旧,要下载新的. The OPatch version being used (11.2.0.1.7) doesn't meet the minimum version required by the patch(

Oracle 11g RAC自动打GI PSU补丁(11.2.0.4.8)

一.准备工作 1,数据库环境 操作系统版本   : Redhat 6.5 x64   数据库版本     : Oracle 11.2.0.4 x64 RAC    Grid           : 11.2.0.4     Oracle database: 11.2.0.4 本文出自:http://koumm.blog.51cto.com/ 2,准备内容 GI PSU : p21523375_112040_Linux-x86-64.zip    OPatch : p6880880_112000_

?完整记录一则Oracle 11.2.0.4单实例打PSU补丁的过程

本文记录了打PSU的全过程,意在体会数据库打PSU补丁的整个过程. 1.OPatch替换为最新版本2.数据库软件应用19221551补丁程序3.数据库应用补丁4.验证PSU补丁是否应用成功 1.OPatch替换为最新版本 [[email protected] usr2]$ id uid=500(oracle) gid=500(oinstall) 组=500(oinstall),501(dba) 环境=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.

Oracle 11.2.0.4 PSU实施文档

1. 本次服务详细过程 1.1 背景概述 升级数据库PUS,数据库环境,操作系统版本:RedHat5.8 x64,数据库版本Oracle 11.2.0.4 x64 RAC Grid: 11.2.0.4,Oracle database: 11.2.0.4 1.2 安装前准备 -rw-r--r-- 1 oracle oinstall  93376160 Mar 25 11:43 p21948347_112040_Linux-x86-64.zip -rw-r--r-- 1 oracle oinstal

探索Oracle之数据库升级四 11.2.0.4.0 PSU 11.2.0.4.3

探索Oracle之数据库升级四 11.2.0.4.0 PSU 11.2.0.4.3   一.  检查当前数据库PSU号: [[email protected] ~]$ cd/DBSoft/Product/11.2.4/db_1/OPatch/ [[email protected] OPatch]$ ls crs docs emdpatch.pl jlib ocm opatch opatch.bat opatchdiag opatchdiag.bat opatch.ini opatch.pl op