打补丁基本步骤:

  • 1.检查+停应用+停库:     检查当前数据库相关信息等
  • 2.备份
  • 3.打补丁
  • 4.更新数据库字典
  • 5.起库
  • 6.启动和检查应用

---------------------------------------

执行opatch时

报错1:

d:\psu\p12429529_112010_MSWIN-x86-64\12429529>D:\app\Administrator\product\11.2.0\dbhome_1\OPatch\opatch.bat apply
此时不应有 \Java\JDK1.7\lib\dt.jat。

处理办法:

将环境变量中的CLASSPATH去掉即可。

d:\psu\p12429529_112010_MSWIN-x86-64\12429529>set CLASSPATH=

报错2:

解决办法:

将oracle服务改为手动,重启操作系统。(在服务中虽然看到oracle所有服务都停了,但是还是不行,需要重启系统释放)

另外:

Verifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:

Following files are active :
D:\oracle\product\11.2.0\dbhome_1\bin\oci.dll
UtilSession 失败: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: D:\oracle\product\11.2.0\dbhome_1\cfgtoollogs\opatch\14223718_Aug_18_20
20_12_06_10\apply2020-08-18_12-06-09下午_1.log

tasklist /m oci.dll

根据pid结束进程

停止:Distributed Transaction Coordinator 服务

-------------------------以下为重启后操作-------------------------------------------------

Microsoft Windows [版本 6.3.9600]
(c) 2013 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Administrator\AppData\Roaming
CLASSPATH=.;C:\Program Files (x86)\Java\JDK1.7\lib\dt.jat;C:\Program Files (x86)
\Java\JDK1.7\lib\tools.jar
CLIENTNAME=XXZX-LB
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=WIN-PGN6S8OJN3H
ComSpec=C:\Windows\system32\cmd.exe
DB2INSTANCE=DB2
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Administrator
INCLUDE=C:\PROGRA~1\IBM\SQLLIB\INCLUDE;C:\PROGRA~1\IBM\SQLLIB\LIB
JAVA_HOME=C:\Program Files (x86)\Java\JDK1.7
LIB=;C:\PROGRA~1\IBM\SQLLIB\LIB
LOCALAPPDATA=C:\Users\Administrator\AppData\Local
LOGONSERVER=\\WIN-PGN6S8OJN3H
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
Path=C:\Program Files (x86)\Java\JDK1.7\bin;C:\Program Files (x86)\Java\JDK1.7\j
re\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\O
racle\Java\javapath;D:\app\Administrator\product\11.2.0\dbhome_1\bin;C:\Windows\
system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32\windowspowershe
ll\v1.0\;c:\program files\ibm\gsk8\lib64;C:\Program Files (x86)\ibm\gsk8\lib;C:\
PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\S
AMPLES\REPL
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 1, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2a01
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=RDP-Tcp#1
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\ADMINI~1\AppData\Local\Temp\2
TMP=C:\Users\ADMINI~1\AppData\Local\Temp\2
TNS_ADMIN=D:\app\Administrator\product\instantclient_11_2
USERDOMAIN=WIN-PGN6S8OJN3H
USERDOMAIN_ROAMINGPROFILE=WIN-PGN6S8OJN3H
USERNAME=Administrator
USERPROFILE=C:\Users\Administrator
windir=C:\Windows

C:\Users\Administrator>set ORACLE_HOME=D:\app\Administrator\product\11.2.0\dbhome_1

C:\Users\Administrator>cd D:\app\Administrator\product\11.2.0\dbhome_1

C:\Users\Administrator>d:

D:\app\Administrator\product\11.2.0\dbhome_1>cd OPatch

D:\app\Administrator\product\11.2.0\dbhome_1\OPatch>cd d:\psu

d:\psu>dir
 驱动器 D 中的卷是 新加卷
 卷的序列号是 70B9-9788

d:\psu 的目录

2019/09/26  15:09    <DIR>          .
2019/09/26  15:09    <DIR>          ..
2019/09/26  15:09    <DIR>          p12429529_112010_MSWIN-x86-64
2019/09/26  14:13       164,195,671 p12429529_112010_MSWIN-x86-64.zip
2019/09/26  15:08    <DIR>          p6880880_112000_MSWIN-x86-64
2019/09/26  12:18       116,096,613 p6880880_112000_MSWIN-x86-64.zip
               2 个文件    280,292,284 字节
               4 个目录 1,934,941,741,056 可用字节

d:\psu>cd p12429529_112010_MSWIN-x86-64

d:\psu\p12429529_112010_MSWIN-x86-64>ls
'ls' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

d:\psu\p12429529_112010_MSWIN-x86-64>dir
 驱动器 D 中的卷是 新加卷
 卷的序列号是 70B9-9788

d:\psu\p12429529_112010_MSWIN-x86-64 的目录

2019/09/26  15:09    <DIR>          .
2019/09/26  15:09    <DIR>          ..
2019/09/26  15:09    <DIR>          12429529
               0 个文件              0 字节
               3 个目录 1,934,941,741,056 可用字节

d:\psu\p12429529_112010_MSWIN-x86-64>cd 12429529

d:\psu\p12429529_112010_MSWIN-x86-64\12429529>D:\app\Administrator\product\11.2.0\dbhome_1\OPatch\opatch.bat apply
此时不应有 \Java\JDK1.7\lib\dt.jat。
d:\psu\p12429529_112010_MSWIN-x86-64\12429529>set CLASSPATH=

d:\psu\p12429529_112010_MSWIN-x86-64\12429529>D:\app\Administrator\product\11.2.0\dbhome_1\OPatch\opatch.bat apply
Oracle 临时补丁程序安装程序版本 11.2.0.3.21
版权所有 (c) 2019, Oracle Corporation。保留所有权利。

Oracle 主目录       :D:\app\Administrator\product\11.2.0\dbhome_1
主产品清单:C:\Program Files\Oracle\Inventory
   来自           :
OPatch 版本    :11.2.0.3.21
OUI 版本       :11.2.0.1.0
日志文件位置:D:\app\Administrator\product\11.2.0\dbhome_1\cfgtoollogs\opatch\op
atch2019-09-26_15-34-21下午_1.log

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   12429529

是否继续? [y|n]
y
User Responded with: Y
All checks passed.
提供电子邮件地址以用于接收有关安全问题的通知, 安装 Oracle Configuration Manager 并启动它。
如果您使用 My Oracle
Support 电子邮件地址/用户名, 操作将更简单。
有关详细信息, 请访问 http://www.oracle.com/support/policies.html。
电子邮件地址/用户名:

尚未提供电子邮件地址以接收有关安全问题的通知。
是否不希望收到有关安全问题 (是 [Y], 否 [N]) [N] 的通知:  Y

请关闭本地系统上在此 ORACLE_HOME 之外运行的 Oracle 实例。
(Oracle 主目录 = 'D:\app\Administrator\product\11.2.0\dbhome_1')

本地系统是否已准备打补丁? [y|n]
y
User Responded with: Y
Backing up files...
正在将临时补丁程序 '12429529' 应用于 OH 'D:\app\Administrator\product\11.2.0\dbhome_1'
ApplySession: Oracle 主目录中不存在可选组件 [ oracle.rdbms.ic, 11.2.0.1.0 ] , [ oracle.has
.crs, 11.2.0.1.0 ] , [ oracle.usm, 11.2.0.1.0 ] , 或找到更高版本。

正在为组件 oracle.rdbms.rsf, 11.2.0.1.0 打补丁...

正在为组件 oracle.rdbms, 11.2.0.1.0 打补丁...

正在为组件 oracle.rdbms.util, 11.2.0.1.0 打补丁...

正在为组件 oracle.rdbms.dbscripts, 11.2.0.1.0 打补丁...

正在为组件 oracle.rdbms.plsql, 11.2.0.1.0 打补丁...

正在为组件 oracle.xdk.rsf, 11.2.0.1.0 打补丁...

正在为组件 oracle.network.rsf, 11.2.0.1.0 打补丁...

正在为组件 oracle.oraolap, 11.2.0.1.0 打补丁...

正在为组件 oracle.ntoledb.odp_net_2, 11.2.0.1.0 打补丁...

正在为组件 oracle.has.db, 11.2.0.1.0 打补丁...

正在为组件 oracle.has.rsf, 11.2.0.1.0 打补丁...

正在为组件 oracle.javavm.server, 11.2.0.1.0 打补丁...

正在为组件 oracle.network.listener, 11.2.0.1.0 打补丁...

正在为组件 oracle.odbc.ic, 11.2.0.1.0 打补丁...

正在为组件 oracle.oraolap.api, 11.2.0.1.0 打补丁...

正在为组件 oracle.owb.rsf, 11.2.0.1.0 打补丁...

正在为组件 oracle.precomp.common, 11.2.0.1.0 打补丁...

正在为组件 oracle.ctx, 11.2.0.1.0 打补丁...

正在为组件 oracle.has.common, 11.2.0.1.0 打补丁...

正在为组件 oracle.rdbms.rsf.ic, 11.2.0.1.0 打补丁...

正在为组件 oracle.rdbms.oci, 11.2.0.1.0 打补丁...

正在为组件 oracle.has.common.cvu, 11.2.0.1.0 打补丁...

正在为组件 oracle.has.deconfig, 11.2.0.1.0 打补丁...

正在为组件 oracle.swd.oui.core, 11.2.0.1.0 打补丁...

正在为组件 oracle.ntoledb, 11.2.0.1.0 打补丁...

正在为组件 oracle.rdbms.deconfig, 11.2.0.1.0 打补丁...

正在为组件 oracle.sysman.agent, 10.2.0.4.2 打补丁...

正在为组件 oracle.precomp.rsf, 11.2.0.1.0 打补丁...

正在为组件 oracle.precomp.common, 11.2.0.1.0 打补丁...

正在为组件 oracle.sysman.console.db, 11.2.0.1.0 打补丁...

正在为组件 oracle.sysman.oms.core, 10.2.0.4.2 打补丁...

正在为组件 oracle.sysman.plugin.db.main.repository, 11.2.0.1.0 打补丁...

正在为组件 oracle.rdbms.dv.oc4j, 11.2.0.1.0 打补丁...

正在为组件 oracle.ldap.rsf, 11.2.0.1.0 打补丁...

正在为组件 oracle.ldap.rsf.ic, 11.2.0.1.0 打补丁...

正在为组件 oracle.rdbms.dv, 11.2.0.1.0 打补丁...

正在为组件 oracle.nlsrtl.rsf, 11.2.0.1.0 打补丁...
Patch 12429529 successfully applied.
Log file location: D:\app\Administrator\product\11.2.0\dbhome_1\cfgtoollogs\opatch\opatch2
019-09-26_15-34-21下午_1.log

OPatch succeeded.

d:\psu\p12429529_112010_MSWIN-x86-64\12429529>

d:\psu\p12429529_112010_MSWIN-x86-64\12429529>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期四 9月 26 15:37:15 2019

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> conn /as sysdba
已连接。
SQL> show parameter name;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert                 string
db_name                              string      orcl
db_unique_name                       string      orcl
global_names                         boolean     FALSE
instance_name                        string      orcl
lock_name_space                      string
log_file_name_convert                string
service_names                        string      orcl
SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开

d:\psu\p12429529_112010_MSWIN-x86-64\12429529>cd %ORACLE_HOME%\Bundle\Patch13

D:\app\Administrator\product\11.2.0\dbhome_1\Bundle\Patch13>dir catcpu.sql
 驱动器 D 中的卷是 新加卷
 卷的序列号是 70B9-9788

D:\app\Administrator\product\11.2.0\dbhome_1\Bundle\Patch13 的目录

2010/04/28  00:10             2,604 catcpu.sql
               1 个文件          2,604 字节
               0 个目录 1,934,637,465,600 可用字节

D:\app\Administrator\product\11.2.0\dbhome_1\Bundle\Patch13>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期四 9月 26 15:39:43 2019

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> conn /as sysdba
已连接。
SQL> @catcpu.sql

省略输出10分钟。。。。

SQL> SPOOL off
SQL> SET echo off
Check the following log file for errors:
D:\app\Administrator\product\11.2.0\dbhome_1\cfgtoollogs\catbundle\catbundle_WINBUNDLE_ORC
L_APPLY_2019Sep26_15_40_37.log
SQL>
SQL> select * from dba_registry_history;

ACTION_TIME
---------------------------------------------------------------------------
ACTION                         NAMESPACE
------------------------------ ------------------------------
VERSION                                ID BUNDLE_SERIES
------------------------------ ---------- ------------------------------
COMMENTS
--------------------------------------------------------------------------------
26-9月 -19 03.48.47.214000 下午
APPLY                          SERVER
11.2.0.1                               13 WINBUNDLE
Patch 13

已选择 1 行。

SQL>

SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开

D:\app\Administrator\product\11.2.0\dbhome_1\Bundle\Patch13>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期四 9月 26 15:50:32 2019

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> conn /as sysdba
已连接。
SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。

Total System Global Area 1.3696E+10 bytes
Fixed Size                  2188768 bytes
Variable Size            1.0737E+10 bytes
Database Buffers         2919235584 bytes
Redo Buffers               37044224 bytes
数据库装载完毕。
数据库已经打开。
SQL> select * from dba_registry_history;

ACTION_TIME
---------------------------------------------------------------------------
ACTION                         NAMESPACE
------------------------------ ------------------------------
VERSION                                ID BUNDLE_SERIES
------------------------------ ---------- ------------------------------
COMMENTS
--------------------------------------------------------------------------------
26-9月 -19 03.48.47.214000 下午
APPLY                          SERVER
11.2.0.1                               13 WINBUNDLE
Patch 13

SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开

D:\app\Administrator\product\11.2.0\dbhome_1\Bundle\Patch13>D:\app\Administrator\product\1
1.2.0\dbhome_1\OPatch\opatch.bat lsinventory
Oracle 临时补丁程序安装程序版本 11.2.0.3.21
版权所有 (c) 2019, Oracle Corporation。保留所有权利。

Oracle 主目录       :D:\app\Administrator\product\11.2.0\dbhome_1
主产品清单:C:\Program Files\Oracle\Inventory
   来自           :
OPatch 版本    :11.2.0.3.21
OUI 版本       :11.2.0.1.0
日志文件位置:D:\app\Administrator\product\11.2.0\dbhome_1\cfgtoollogs\opatch\opatch2019-0
9-26_15-51-37下午_1.log

Lsinventory Output file location : D:\app\Administrator\product\11.2.0\dbhome_1\cfgtoollog
s\opatch\lsinv\lsinventory2019-09-26_15-51-37下午.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: WIN-PGN6S8OJN3H
ARU platform id: 233
ARU platform description:: Microsoft Windows (64-bit AMD)

已安装的顶级产品 (1):

Oracle Database 11g                                                  11.2.0.1.0
此 Oracle 主目录中已安装 1 个产品。

临时补丁程序 (1) :

Patch  12429529     : applied on Thu Sep 26 15:36:24 CST 2019
Unique Patch ID:  13854432
   Created on 17 Jun 2011, 02:07:52 hrs PST8PDT
   Bugs fixed:
     12429529, 9554332, 12363485, 10625485, 9268192, 9935787, 10205230
     12412745, 12393432, 12341758, 10130392, 11853331, 6055658, 11723722
     11735927, 11772687, 9902590, 9871302, 10132870, 7365514, 10422748
     10180190, 9825461, 11731176, 9368502, 9705984, 10302581, 10130633
     8331063, 10237271, 10082277, 10054513, 9695366, 8889137, 10383833
     11076894, 10220194, 10401327, 9042035, 10235640, 9564886, 10104492
     9302054, 10374238, 9613016, 10432045, 8772524, 10357603, 9243068, 9448277
     8672862, 9725141, 9328390, 9275876, 9033671, 10154951, 9890701, 9628444
     10352692, 10086495, 10155684, 10156303, 10157313, 10201938, 10220033
     10278864, 8332021, 8771916, 8800514, 8874588, 8946311, 9003145, 9115829
     9131242, 9240305, 9398685, 9469117, 9569029, 9751158, 8446618, 10245351
     10052141, 10116578, 10134677, 10140809, 10157402, 10172454, 7662438
     8397251, 8499180, 8522654, 9090269, 9234660, 9255996, 9395237, 9461782
     9668086, 9703463, 9736701, 9795214, 9823660, 9826065, 9866728, 9916260
     9972680, 9524640, 8841699, 10216200, 10225758, 10155838, 10030675
     10080167, 10132342, 6866145, 8790561, 8984021, 9096076, 9137871, 9193873
     9277263, 9303326, 9457109, 9457492, 9472669, 9539440, 9659614, 9845644
     9903704, 9920616, 9930649, 10100101, 8780369, 8866808, 8883722, 9004242
     9021724, 9028780, 9049725, 9058865, 9212844, 9243912, 9306119, 9350527
     9387574, 9399991, 9413827, 9488247, 9498108, 9500147, 9532911, 9544104
     9548269, 9578533, 9593656, 9594372, 9706490, 9721013, 9734300, 9746699
     9764806, 9770451, 9778018, 9799342, 9828495, 9881328, 9932143, 10080735
     9901433, 9966926, 8574851, 8790837, 8802195, 8863249, 8981681, 8993052
     9198871, 9217088, 9300021, 9369183, 9442189, 9500046, 9648040, 9657283
     9685694, 9772171, 9847494, 9793452, 9888298, 9135679, 9495697, 9081430
     6855031, 8793567, 9286015, 9442015, 9504322, 9535951, 8684595, 9663844
     9539556, 7452759, 9196440, 8893949, 9011590, 9382101, 9775337, 9083671
     9324531, 8654177, 8569325, 8686932, 9271344, 8434467, 6086930, 9024737
     9047975, 9056912, 9069046, 9336476, 9355794, 9495669, 8467123, 8663644
     8855396, 8886819, 8951812, 8467825, 9187546, 9102860, 9109487, 8546356
     9170308, 8725282, 9308296, 9406607, 8720802, 9711859, 9531984, 9482399
     9471411, 9390484, 9362218, 9320786, 9320130, 9302343, 9290526, 9231605
     8554900, 9490054, 9389304, 8783690, 9577583, 9736229, 9259407, 8602840
     9469133, 8682102, 9693101, 9898160, 9669478, 9736865, 7327630, 8268775
     8505803, 8544696, 8565708, 8633358, 8664189, 8702535, 8755082, 8771556
     8783301, 8790767, 8799099, 8803762, 8839301, 8856478, 8865718, 8872096
     8909984, 8974548, 8981059, 8991997, 9023338, 9032717, 9057443, 9119194
     9145181, 9147830, 9165206, 9170608, 9216806, 9219338, 9227662, 9255542
     9275072, 9321701, 9341448, 9363145, 9363384, 9391025, 9399090, 9467635
     9488887, 9637033, 9711600, 9713537, 9714832, 9719541, 9736836, 7028305
     7519406, 8330783, 8431487, 8477973, 8496830, 8581792, 8607693, 8643160
     8650719, 8717461, 8730312, 8774868, 8813536, 8815639, 8822531, 8822832
     8834425, 8875671, 8879707, 8891929, 8914054, 8918433, 9001453, 9002336
     9007859, 9010222, 9011088, 9015983, 9027691, 9035113, 9041943, 9050716
     9053676, 9054253, 9057754, 9067282, 9068088, 9093300, 9120088, 9145541
     9167285, 9189070, 9202351, 9271246, 9272086, 9294110, 9298307, 9316329
     9378712, 9395500, 9408883, 9467727, 9504129, 9561609, 9584383, 9657157
     9661684, 9489422, 9595786, 8405205, 8543770, 8856467, 8998066, 8897784
     9004697, 9007836, 9036013, 9037724, 9047110, 9318214, 8328200, 8570322
     8629716, 8761974, 8857211, 8885539, 9035438, 8971021, 8685327, 8707506
     8866903, 8771297, 8772028, 8796511

--------------------------------------------------------------------------------

OPatch succeeded.

D:\app\Administrator\product\11.2.0\dbhome_1\Bundle\Patch13>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期四 9月 26 15:55:12 2019

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> conn /as sysdba
已连接。
SQL> select count(*) from dba_objects where status='INVALID';

COUNT(*)
----------
       206

SQL> @?/rdbms/admin/utlrp.sql

TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_BGN  2019-09-26 15:56:16

DOC>   The following PL/SQL block invokes UTL_RECOMP to recompile invalid
DOC>   objects in the database. Recompilation time is proportional to the
DOC>   number of invalid objects in the database, so this command may take
DOC>   a long time to execute on a database with a large number of invalid
DOC>   objects.
DOC>
DOC>   Use the following queries to track recompilation progress:
DOC>
DOC>   1. Query returning the number of invalid objects remaining. This
DOC>      number should decrease with time.
DOC>         SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
DOC>
DOC>   2. Query returning the number of objects compiled so far. This number
DOC>      should increase with time.
DOC>         SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;
DOC>
DOC>   This script automatically chooses serial or parallel recompilation
DOC>   based on the number of CPUs available (parameter cpu_count) multiplied
DOC>   by the number of threads per CPU (parameter parallel_threads_per_cpu).
DOC>   On RAC, this number is added across all RAC nodes.
DOC>
DOC>   UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel
DOC>   recompilation. Jobs are created without instance affinity so that they
DOC>   can migrate across RAC nodes. Use the following queries to verify
DOC>   whether UTL_RECOMP jobs are being created and run correctly:
DOC>
DOC>   1. Query showing jobs created by UTL_RECOMP
DOC>         SELECT job_name FROM dba_scheduler_jobs
DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>
DOC>   2. Query showing UTL_RECOMP jobs that are running
DOC>         SELECT job_name FROM dba_scheduler_running_jobs
DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>#

PL/SQL 过程已成功完成。

TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_END  2019-09-26 15:56:53

DOC> The following query reports the number of objects that have compiled
DOC> with errors (objects that compile with errors have status set to 3 in
DOC> obj$). If the number is higher than expected, please examine the error
DOC> messages reported with each object (using SHOW ERRORS) to see if they
DOC> point to system misconfiguration or resource constraints that must be
DOC> fixed before attempting to recompile these objects.
DOC>#

OBJECTS WITH ERRORS
-------------------
                  0

DOC> The following query reports the number of errors caught during
DOC> recompilation. If this number is non-zero, please query the error
DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
DOC> are due to misconfiguration or resource constraints that must be
DOC> fixed before objects can compile successfully.
DOC>#

ERRORS DURING RECOMPILATION
---------------------------
                          0

PL/SQL 过程已成功完成。

PL/SQL 过程已成功完成。

SQL> select count(*) from dba_objects where status='INVALID';

COUNT(*)
----------
         0

SQL> conn /as sysdba
已连接。
SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。

Total System Global Area 1.3696E+10 bytes
Fixed Size                  2188768 bytes
Variable Size            1.0737E+10 bytes
Database Buffers         2919235584 bytes
Redo Buffers               37044224 bytes
数据库装载完毕。
数据库已经打开。
SQL>

oracle11.2.0.1forwindows2012r2 standard打psu补丁相关推荐

  1. oracle11.2.0.4,Oracle11.2.0.4 RAC 安装PSU补丁

    Oracle11.2.0.4 RAC 安装PSU补丁 Oracle Database (MOSC) Database - RAC/Scalability (MOSC) 1 Replies Last u ...

  2. Oracle11.2.0.4数据库单实例补丁安装

    Oracle11.2.0.4数据库单实例补丁安装 1.解压p6880880_112000_Linux-x86-64.zip 生成OPatch文件夹,覆盖原有OPatch文件夹 2.解压p2881387 ...

  3. Oracle11.2.0.4 windows32+64bit path补丁21+11.2.0.4.160419 p22064588 p22839608

    2016年6月3日最新补丁-Oracle11.2.0.4 for windows32+64bit,p22064588 patch11.2.0.4.21,p22839608 11.2.0.4.16041 ...

  4. oracle 安装grid补丁,安装oracle 11.2.0.4.4的psu补丁过程

    一个命令将GI.db的home都打上补丁了 #/u01/app/11.2.0/grid/OPatch/opatch auto /u01/soft/grid/19380115 -ocmrf /tmp/c ...

  5. Oracle 12.2.0.1版本以上的PSU补丁相关知识

    说明: 从12.2.0.1开始,PSU补丁有database update.database update revisons补丁.这两个补丁是有区别的,具体可以参考MOS中相关文档中的Q6.Q7.Q1 ...

  6. Oracle11.2.0.4 windows32+64bit opatch工具 11.2.0.0 百度云盘下载

    2016年6月3日最新11GR2版本11.2.0.0的opatch工具(版本号:P6880880)FOR Windows 32+64bit环境 版本:Windows 32BIT 11G R2版本11. ...

  7. Oracle 11.2.0.3.7 PSU补丁升级

    说明:这是新上线主机,还没有建库的.如果库已经存在,那么最后还要进行刷库操作! 环境:Red Hat Enterprise Linux 6.4 (x86_64) 将Oracle数据库从11.2.0.3 ...

  8. linux单机到单机adg环境,Oracle 11.2.0.4 DataGuard 环境打PSU,OJVM PSU补丁快速参考

    环境:RHEL6.5 + Oracle 11.2.0.4 DataGuard physical standby 主库和备库都是单节点. 需求:主备库同时应用160719的PSU和OJVM PSU补丁. ...

  9. oracle11.2.0.4全套安装包及最新补丁包(珍藏版)

    目前官网已经无法下载oracle历史版本的数据库了,还好自己保存了一份,有需要的同学可以安照以下方法进行下载. oracle11.2.0.4全套安装包(珍藏版) 详细见:https://downloa ...

最新文章

  1. js中的if与Java中的if_JavaScript if...else 语句
  2. C#怎么通过一个按钮Button,实现点击这个按钮可以打开一个文件或者文件夹?
  3. 【面试】上中断和下中断
  4. ListCtrl添加右键菜单(ListCtrl类里编辑,给ListCtrl 发送NM_RCLICK消息)
  5. Servlet规范中定义的过滤器
  6. 论文浅尝 | 面向开放域的无监督实体对齐
  7. jquery 选择器之children与find
  8. 添加mysql组合主键_mysql怎么添加复合主键?
  9. Linux查看磁盘是否被占满,怎么查看Linux磁盘空间是否满了?
  10. C语言如何作用于unity,在Unity 3D中使用C进行车轮转向#
  11. 阿里云Web应用防火墙价格表
  12. 三国史诗——三国官制(二)
  13. C# 时间日期的获取与比较
  14. 华硕ASUS 笔记本 改WIN7 BIOS 设置详解
  15. 嵌入式C语音基础夯实备用实战
  16. Python爬虫三:抓取链家已成交二手房信息(58W数据)
  17. qcqa是什么职位_QA,QE是什么职位
  18. Flex 下 mm.cfg 文件配置详解
  19. 软件供应链攻击的新形式
  20. FPGA 单端口RAM IP核使用 vivado仿真

热门文章

  1. 聚焦循环经济商业模式 ROEHL亮相联合国气候变化大会COP26中国企业馆
  2. 基于javaweb的校园报修管理系统(java+springboot+bootstrap+jsp+mysql)
  3. qi接收启动协议_TCP协议详解 - TCP服务的特点
  4. html弄多个按钮_怎样在HTML中插入按钮
  5. 掘金系统源码搭建教程
  6. 做线雕多久能恢复自然_做了线雕多久能完全恢复 线雕能保持多长时间
  7. 2022-1-30 Leetcode 5981.分组得分最高的所有下标
  8. CVPR 2020代码开源的论文最全合集
  9. VsCode 运行后终端没有结果
  10. linux编译内核时出现问题:recipe for target ‘kernel/timeconst.h‘ failed