1. 程式人生 > >單機 Oracle 11g(11.2.0.4)手動打補丁PSU(11.2.0.4.8)

單機 Oracle 11g(11.2.0.4)手動打補丁PSU(11.2.0.4.8)


環境說明:
database : 11.2.0.4 x64
os: centos6.7 x64

準備內容:
OPatch : p6880880_112000_Linux-x86-64.zip
DB PSU : p21352635_112040_Linux-x86-64.zip


資訊檢查,檢視環境是否符合打該 patch , optch版本安裝環境詳細請看 mos 與 readme 。

-- 檢視元件資訊
set linesize 500 pagesize 600
col COMP_NAME for a30
select COMP_ID,COMP_NAME,VERSION,STATUS from DBA_REGISTRY;


COMP_ID COMP_NAME VERSION STATUS
------------------------------ ------------------------------ ------------------------------ -------
OWB OWB 11.2.0.1.0 VALID
APEX Oracle Application Express 3.2.1.00.10 VALID
EM Oracle Enterprise Manager 11.2.0.4.0 VALID
AMD OLAP Catalog 11.2.0.4.0 VALID
SDO Spatial 11.2.0.4.0 VALID
ORDIM Oracle Multimedia 11.2.0.4.0 VALID
XDB Oracle XML Database 11.2.0.4.0 VALID
CONTEXT Oracle Text 11.2.0.4.0 VALID
EXF Oracle Expression Filter 11.2.0.4.0 VALID
RUL Oracle Rules Manager 11.2.0.4.0 VALID
OWM Oracle Workspace Manager 11.2.0.4.0 VALID
CATALOG Oracle Database Catalog Views 11.2.0.4.0 VALID
CATPROC Oracle Database Packages and T 11.2.0.4.0 VALID
ypes
JAVAVM JServer JAVA Virtual Machine 11.2.0.4.0 VALID
XML Oracle XDK 11.2.0.4.0 VALID
CATJAVA Oracle Database Java Packages 11.2.0.4.0 VALID
APS OLAP Analytic Workspace 11.2.0.4.0 VALID
XOQ Oracle OLAP API 11.2.0.4.0 VALID

18 rows selected.

--檢視補丁情況

set linesize 500 pagesize 600
col ACTION_TIME for a30
col COMMENTS for a30
select ACTION_TIME, ACTION,version, COMMENTS from sys.DBA_REGISTRY_HISTORY;

ACTION_TIME ACTION VERSION COMMENTS
------------------------------ ------------------------------ -------------------- ------------------------------
16-FEB-15 05.46.48.580786 AM VIEW INVALIDATE view invalidation
16-FEB-15 05.47.05.038595 AM UPGRADE 11.2.0.4.0 Upgraded from 11.2.0.1.0
16-FEB-15 05.47.54.530480 AM APPLY 11.2.0.4 Patchset 11.2.0.2.0

--檢視無效物件
select count(*) from dba_objects where status<>'VALID';
COUNT(*)
----------
0

操作流程:


1.更新OPatch版本,需要更新到11.2.0.3.11,OPatch直接壓縮替換就可以了。

(1) 上傳p6880880_112000_Linux-x86-64.zip到/home/oracle/opatch目錄下, /home/oracle/opatch給777許可權。
[[email protected] ~]$ mkdir opatch
[[email protected] ~]$ cd opatch/
[[email protected] opatch]$ pwd
/home/oracle/opatch
[[email protected] opatch]$ ll
total 122644
-rw-r--r--. 1 oracle oinstall 72935280 Feb 16 12:42 p21352635_112040_Linux-x86-64.zip
-rw-r--r--. 1 oracle oinstall 52648436 Feb 16 12:41 p6880880_112000_Linux-x86-64.zip

(2) root使用者下將原OPatch目錄改名。

[[email protected] ~]$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.old.opatch

2. oracle目錄OPatch替換

[[email protected] opatch]$ pwd
/home/oracle/opatch
[[email protected] opatch]$ unzip p21352635_112040_Linux-x86-64.zip
[[email protected] opatch]$ unzip p6880880_112000_Linux-x86-64.zip
[roo[email protected] database]# cd /home/oracle/opatch/
[[email protected] opatch]# mv OPatch /home/oracle/app/oracle/product/11.2.0.4/dbhome_1


--oracle使用者檢視 opatch 工具是否替換正確

[[email protected] dbhome_1]$ /home/oracle/app/oracle/product/11.2.0.4/dbhome_1/OPatch/opatch version
OPatch Version: 11.2.0.3.10
OPatch succeeded.

3. 測試相容性, 如果之前沒有打過,這步也可以忽略。

[[email protected] opatch]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /home/oracle/opatch/21352635 -oh $ORACLE_HOME 
Oracle Interim Patch Installer version 11.2.0.3.10
Copyright (c) 2015, Oracle Corporation. All rights reserved.

PREREQ session
Oracle Home : /home/oracle/app/oracle/product/11.2.0.4/dbhome_1
Central Inventory : /home/oracle/oraInventory
from : /home/oracle/app/oracle/product/11.2.0.4/dbhome_1/oraInst.loc
OPatch version : 11.2.0.3.10
OUI version : 11.2.0.4.0
Log file location : /home/oracle/app/oracle/product/11.2.0.4/dbhome_1/cfgtoollogs/opatch/opatch2015-02-16_13-09-28PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.

4. 為資料庫做冷備份

RMAN>run {
shutdown immediate;
startup mount;
allocate channel c1 type disk;
allocate channel c2 type disk;
backup full tag='db_full_bak' database format '/home/oracle/rmanbak/full_cold_%d_%s.bak';
alter database open;
}


使用root使用者備份oracle_home (將#ORACLE_HOME上級目錄整個備份)
tar -zcvpf db_20170319.tar.gz dbhome_1/

5. 關閉資料庫例項及相關程序 (靜態監聽、動態監聽、EOM、相關服務)
--停止資料庫外部程序
[[email protected] ~]#ps -ef|grep -v grep |grep LOCAL=NO|awk '{print $2}'|xargs kill -9 
SQL> shutdown immediate;
[[email protected] rmanbak]$ cat /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
[[email protected] rmanbak]$ lsnrctl stop
[[email protected] rmanbak]$ lsnrctl status
[[email protected] rmanbak]$ ps -ef |grep ora_|grep -v grep
[[email protected] rmanbak]$ netstat -an |grep 1521
[[email protected] rmanbak]$ netstat -an |grep 1158

6.oracle database 打補丁

[[email protected] dbhome_1]$ $ORACLE_HOME/OPatch/opatch napply -oh $ORACLE_HOME -local /ho
ome/oracle/opatch/21352635
Oracle Interim Patch Installer version 11.2.0.3.10
Copyright (c) 2015, Oracle Corporation. All rights reserved.
Oracle Home : /home/oracle/app/oracle/product/11.2.0.4/dbhome_1
Central Inventory : /home/oracle/oraInventory
from : /home/oracle/app/oracle/product/11.2.0.4/dbhome_1/oraInst.loc
OPatch version : 11.2.0.3.10
OUI version : 11.2.0.4.0
Log file location : /home/oracle/app/oracle/product/11.2.0.4/dbhome_1/cfgtoollogs/opatch/opatch2015-02-16_13-29-43PM_1.log

Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 17478514 18031668 18522509 19121551 19769489 20299013 20760982 21352635 
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:

You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: y

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/home/oracle/app/oracle/product/11.2.0.4/dbhome_1')

Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying sub-patch '17478514' to OH '/home/oracle/app/oracle/product/11.2.0.4/dbhome_1'

Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.sdo, 11.2.0.4.0...
Patching component oracle.sysman.agent, 10.2.0.4.5...

Patching component oracle.xdk, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.sdo.locator, 11.2.0.4.0...
Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...
Patching component oracle.xdk.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...

Verifying the update...
Applying sub-patch '18031668' to OH '/home/oracle/app/oracle/product/11.2.0.4/dbhome_1'

Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.ldap.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.crs, 11.2.0.4.0...
Patching component oracle.precomp.common, 11.2.0.4.0...
Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
Patching component oracle.rdbms.deconfig, 11.2.0.4.0..
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...

Verifying the update...
Applying sub-patch '18522509' to OH '/home/oracle/app/oracle/product/11.2.0.4/dbhome_1'

Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.precomp.common, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.rdbms.deconfig, 11.2.0.4.0...

Verifying the update...
Applying sub-patch '19121551' to OH '/home/oracle/app/oracle/product/11.2.0.4/dbhome_1'

Patching component oracle.precomp.common, 11.2.0.4.0...
Patching component oracle.sysman.console.db, 11.2.0.4.0...
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.ordim.client, 11.2.0.4.0...


Patching component oracle.ordim.jai, 11.2.0.4.0...

Verifying the update...
Applying sub-patch '19769489' to OH '/home/oracle/app/oracle/product/11.2.0.4/dbhome_1'
ApplySession: Optional component(s) [ oracle.sysman.agent, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.

Patching component oracle.precomp.common, 11.2.0.4.0...
Patching component oracle.ovm, 11.2.0.4.0...
Patching component oracle.xdk, 11.2.0.4.0...
Patching component oracle.rdbms.util, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.xdk.parser.java, 11.2.0.4.0...
Patching component oracle.oraolap, 11.2.0.4.0...
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.xdk.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Patching component oracle.rdbms.deconfig, 11.2.0.4.0...

Verifying the update...
Applying sub-patch '20299013' to OH '/home/oracle/app/oracle/product/11.2.0.4/dbhome_1'
Patching component oracle.rdbms.dv, 11.2.0.4.0...
Patching component oracle.rdbms.oci, 11.2.0.4.0...
Patching component oracle.precomp.common, 11.2.0.4.0...
Patching component oracle.sysman.agent, 10.2.0.4.5...
Patching component oracle.xdk, 11.2.0.4.0...
Patching component oracle.sysman.common, 10.2.0.4.5...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.xdk.parser.java, 11.2.0.4.0...
Patching component oracle.sysman.console.db, 11.2.0.4.0...
Patching component oracle.xdk.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.sysman.common.core, 10.2.0.4.5...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Patching component oracle.rdbms.deconfig, 11.2.0.4.0...

Verifying the update...
Applying sub-patch '20760982' to OH '/home/oracle/app/oracle/product/11.2.0.4/dbhome_1'

Patching component oracle.sysman.console.db, 11.2.0.4.0...

Patching component oracle.rdbms, 11.2.0.4.0...

Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...

Verifying the update...
Applying sub-patch '21352635' to OH '/home/oracle/app/oracle/product/11.2.0.4/dbhome_1'

Patching component oracle.sysman.agent, 10.2.0.4.5...
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...

Verifying the update...

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_emagent.mk' has modification time 1.7e+07 s in the future
make[1]: Warning: File `/home/oracle/app/oracle/product/11.2.0.4/dbhome_1/sysman/lib/ins_emagent.mk' has modification time 1.7e+07 s in the future
make[1]: warning: Clock skew detected. Your build may be incomplete.
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_emagent.mk' has modification time 1.7e+07 s in the future
make[1]: Warning: File `/home/oracle/app/oracle/product/11.2.0.4/dbhome_1/sysman/lib/ins_emagent.mk' has modification time 1.7e+07 s in the future
make[1]: warning: Clock skew detected. Your build may be incomplete.
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
make: Warning: File `ins_rdbms.mk' has modification time 1.7e+07 s in the future
make: warning: Clock skew detected. Your build may be incomplete.

Composite patch 21352635 successfully applied.
OPatch Session completed with warnings.
Log file location: /home/oracle/app/oracle/product/11.2.0.4/dbhome_1/cfgtoollogs/opatch/opatch2015-02-16_13-29-43PM_1.log
OPatch completed with warnings.
[[email protected] dbhome_1]$

7. 檢視打補丁情況:

[[email protected] dbhome_1]$ /home/oracle/app/oracle/product/11.2.0.4/dbhome_1/OPatch/opatch lsinv
Oracle Interim Patch Installer version 11.2.0.3.10
Copyright (c) 2015, Oracle Corporation. All rights reserved.
Oracle Home : /home/oracle/app/oracle/product/11.2.0.4/dbhome_1
Central Inventory : /home/oracle/oraInventory
from : /home/oracle/app/oracle/product/11.2.0.4/dbhome_1/oraInst.loc
OPatch version : 11.2.0.3.10
OUI version : 11.2.0.4.0
Log file location : /home/oracle/app/oracle/product/11.2.0.4/dbhome_1/cfgtoollogs/opatch/opatch2015-02-16_13-39-51PM_1.log

Lsinventory Output file location : /home/oracle/app/oracle/product/11.2.0.4/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2015-02-16_13-39-51PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: 11g
ARU platform id: 226
ARU platform description:: Linux x86-64

Installed Top-level Products (1):

Oracle Database 11g 11.2.0.4.0
There are 1 products installed in this Oracle Home.

Interim patches (1) :

Patch 21352635 : applied on Mon Feb 16 13:34:31 EST 2015
Unique Patch ID: 19227862
Patch description: "Database Patch Set Update : 11.2.0.4.8 (21352635)"
Created on 1 Sep 2015, 07:49:44 hrs 
Sub-patch 20760982; "Database Patch Set Update : 11.2.0.4.7 (20760982)"
Sub-patch 20299013; "Database Patch Set Update : 11.2.0.4.6 (20299013)"
Sub-patch 19769489; "Database Patch Set Update : 11.2.0.4.5 (19769489)"
Sub-patch 19121551; "Database Patch Set Update : 11.2.0.4.4 (19121551)"
Sub-patch 18522509; "Database Patch Set Update : 11.2.0.4.3 (18522509)"
Sub-patch 18031668; "Database Patch Set Update : 11.2.0.4.2 (18031668)"
Sub-patch 17478514; "Database Patch Set Update : 11.2.0.4.1 (17478514)"
Bugs fixed:
17288409, 21051852, 18607546, 17205719, 17811429, 17816865, 20506699
17922254, 17754782, 16934803, 13364795, 17311728, 17441661, 17284817
16992075, 17446237, 14015842, 19972569, 21538558, 20925795, 17449815
17375354, 19463897, 17982555, 17235750, 13866822, 18317531, 17478514
18235390, 14338435, 20803583, 13944971, 20142975, 17811789, 16929165
18704244, 20506706, 17546973, 20334344, 14054676, 17088068, 18264060
17346091, 17343514, 21538567, 19680952, 18471685, 19211724, 13951456
16315398, 18744139, 16850630, 19049453, 18673304, 17883081, 19915271
18641419, 18262334, 17006183, 16065166, 18277454, 16833527, 10136473
18051556, 17865671, 17852463, 18554871, 17853498, 18334586, 17588480
17551709, 19827973, 17842825, 17344412, 18828868, 17025461, 11883252
13609098, 17239687, 17602269, 19197175, 18316692, 17313525, 12611721
19544839, 18964939, 17600719, 18191164, 19393542, 17571306, 18482502
20777150, 19466309, 17040527, 17165204, 18098207, 16785708, 17174582
16180763, 17465741, 16777840, 12982566, 19463893, 12816846, 16875449
17237521, 19358317, 17811438, 17811447, 17945983, 18762750, 17184721
16912439, 18061914, 17282229, 18331850, 18202441, 17082359, 18723434
19554106, 14034426, 18339044, 19458377, 17752995, 20448824, 17891943
17258090, 17767676, 16668584, 18384391, 17040764, 17381384, 15913355
18356166, 14084247, 20506715, 13853126, 18203837, 14245531, 16043574
17848897, 17877323, 17468141, 17786518, 17912217, 17037130, 18155762
16956380, 17478145, 17394950, 18189036, 18641461, 18619917, 17027426
21352646, 16268425, 19584068, 18436307, 17265217, 17634921, 13498382
20004087, 17443671, 18000422, 20004021, 17571039, 21067387, 16344544
18009564, 14354737, 18135678, 18614015, 20441797, 18362222, 17835048
16472716, 17936109, 17050888, 17325413, 14010183, 18747196, 17761775
16721594, 17082983, 20067212, 21179898, 17302277, 18084625, 15990359
18203835, 17297939, 17811456, 16731148, 17215560, 13829543, 14133975
17694209, 18091059, 17385178, 8322815, 17586955, 17201159, 17655634
18331812, 19730508, 18868646, 17648596, 16220077, 16069901, 17348614
17393915, 17274537, 17957017, 18096714, 17308789, 18436647, 14285317
19289642, 14764829, 18328509, 17622427, 16943711, 14368995, 17346671
18996843, 17783588, 16618694, 17672719, 18856999, 18783224, 17851160
17546761, 17798953, 18273830, 19972566, 16384983, 17726838, 17360606
13645875, 18199537, 16542886, 17889549, 14565184, 17071721, 20299015
17610798, 20657441, 17397545, 18230522, 16360112, 19769489, 12905058
18641451, 12747740, 18430495, 17042658, 17016369, 14602788, 19972568
18508861, 19788842, 14657740, 17332800, 13837378, 19972564, 17186905
18315328, 19699191, 17437634, 19006849, 19013183, 17296856, 18674024
17232014, 16855292, 21051840, 14692762, 17762296, 17705023, 19121551
19854503, 19309466, 18681862, 18554763, 20558005, 17390160, 18456514
16306373, 13955826, 18139690, 17501491, 17299889, 17752121, 17889583
18673325, 18293054, 17242746, 17951233, 17649265, 18094246, 19615136
17011832, 16870214, 17477958, 18522509, 20631274, 16091637, 17323222
16595641, 16524926, 18228645, 18282562, 17596908, 17156148, 18031668
16494615, 17545847, 17614134, 13558557, 17341326, 17891946, 17716305
16392068, 19271443, 18092127, 18440047, 17614227, 14106803, 16903536
18973907, 18673342, 17389192, 16194160, 17006570, 17612828, 17721717
17570240, 17390431, 16863422, 18325460, 19727057, 16422541, 19972570
17267114, 18244962, 21538485, 18765602, 18203838, 16198143, 17246576
14829250, 17835627, 18247991, 14458214, 21051862, 16692232, 17786278
17227277, 16042673, 16314254, 16228604, 16837842, 17393683, 17787259
20331945, 20074391, 15861775, 16399083, 18018515, 18260550, 21051858
17036973, 16613964, 17080436, 16579084, 18384537, 18280813, 20296213
16901385, 15979965, 18441944, 16450169, 9756271, 17892268, 11733603
16285691, 17587063, 16538760, 18180390, 18193833, 21051833, 17238511
17824637, 16571443, 18306996, 14852021, 18674047, 17853456, 12364061

--------------------------------------------------------------------------------
OPatch succeeded.

8. 升級資料庫資料字典、編譯無效物件 。 
資料庫啟動,並載入修改SQL Files到資料庫

[[email protected] opatch]$ sqlplus / as sysdba
SQL> startup;
-- 升級資料庫資料字典
SQL> @?/rdbms/admin/catbundle.sql psu apply
省略大量輸出
。。。。。。
SQL> SET echo off ## 輸出末尾內容
Check the following log file for errors:
/home/oracle/app/cfgtoollogs/catbundle/catbundle_PSU_ORCL_APPLY_2015Feb16_13_42_57.log

--編譯無效物件的指令碼
SQL>@?/rdbms/admin/utlrp.sql

9. 檢視 PSU 更新資訊

執行完後我們可以查到PSU更新資訊:
set line 150
col ACTION_TIME for a30
col ACTION for a8
col NAMESPACE for a8
col VERSION for a10
col BUNDLE_SERIES for a5
col COMMENTS for a20
select * from dba_registry_history;

ACTION_TIME ACTION NAMESPAC VERSION ID BUNDL COMMENTS
------------------------------ -------- -------- ---------- ---------- ----- --------------------
16-FEB-15 05.46.48.580786 AM VIEW INV 8289601 view invalidation
ALIDATE

16-FEB-15 05.47.05.038595 AM UPGRADE SERVER 11.2.0.4.0 Upgraded from 11.2.0.1.0 
16-FEB-15 05.47.54.530480 AM APPLY SERVER 11.2.0.4 0 PSU Patchset 11.2.0.2.0
16-FEB-15 01.43.52.624550 PM APPLY SERVER 11.2.0.4 8 PSU PSU 11.2.0.4.8

--檢視無效物件
select count(*) from dba_objects where status<>'VALID';
COUNT(*)
----------
0

--- 檢視監聽是否正常
[[email protected] opatch]$ lsnrctl status


相關推薦

單機 Oracle 11g(11.2.0.4)手動補丁PSU(11.2.0.4.8)

環境說明: database : 11.2.0.4 x64 os: centos6.7 x64 準備內容: OPatch : p6880880_112000_Linux-x86-64.zip DB PSU : p21352635_112040_Linux-x86-64

oracle 11GR2 單機補丁PSU 11.2.0.4.180717

上傳補丁包,修改許可權 su - oracle mdir /tmp/psu mv p6880880_112319_Linux-x86-64.zip /tmp/psu/mv databasepsu180717_112040_Linux-x86-64.zip /tmp/psusu - root cho

11.2.0.4 RAC 手動補丁

gre 有一個 pro conf immediate main 下載 節點 args 1. 下載補丁和最新OPatchGI PSU : p25869727_112040_Linux-x86-64.zipOPatch : p6880880_112000_Linux-x86-6

續:糾正:ubuntu【7.04】可以安裝,而且完美的安裝 ! for《Oracle-10.2.0.1,補丁10.2.0.5:在 debian 版本4【不含4】以上,及 ubuntu 7.04【不含7.04】以上都可以安裝!》

etc ubun oracl poweroff ++ ldconfig red aio edi n次的測試後,最終證明,如下做法,可以完美安裝。 中間都不帶任何一個錯誤的!!!完美! dhclient vi /etc/profile ll cd /e

Oracle 10g 應用補丁PSU 10.2.0.5.180717

  最近測試了一下在Oracle 10g下面(單例項下面)升級、應用補丁PSU 10.2.0.5.180717,打這個補丁的主要原因是 Oracle 將於 2019年6月啟用新的SCN相容性,並且由於BigSCN的作用,96K每秒的SCN增速,都可能會使得通過DB Link的訪問產生SCN過度拉昇

rhel7.4安裝oracle 11G 11.2.0.4.0 RAC

mes sid unit 下一步 路徑和 vim pen submenu shadow 一、操作系統 red hat 7.4oracle數據庫版本11.2.0.4oracle grid版本11.2.0.4對應的文件p13390677_112040_Linux-x86-64_

圖形化升級單機oracle 11.2.0.1 到 11.2.0.4

1. 講補丁包上傳到 oracle server ,解壓、安裝 [[email protected] ~]#unzip p13390677_112040_Linux-x86-64_1of7.zip -d /tmp && unzip p1339

Oracle 10.2.0.5 RMAN遷移並升級11.2.0.4一例

oracle 遷移 rman 一、環境介紹1. 源數據庫環境操作系統版本: OEL 5.4 x64數據庫版本 : 10.2.0.5 x64數據庫sid名 : orclOracle 10g 10.2.0.5(64bit)安裝目錄如下:數據庫軟件:/u01/app/oracle/product/10

oralce 11.2.0.4手動建立EM

安裝完oracle,啟動dbconsole,失敗 [[email protected] admin]$ emctl start dbconsole OC4J Configuration issue. /u01/oracle/app/product/11.2.0/dbhome_1/oc4j/

vmware server 2.0 + redhat5.4 + oracle 11g r2 rac 安裝文件!

1、下載所需要的軟體 虛擬機器軟體:VMware-server-2.0.2-203138.exe、vmware-vmrc-win32-x86.exe Linux作業系統:rhel-server-5.4-i386-dvd.iso oracle叢集軟體:linux_11gR2_

Oracle 11g11.2.0.1.0)QA

1.EMDCでOSユーザーは認証できない。原因:バッチジョブとしてログオン権限がない。対策:①システム環境変數%TEMP%,%TMP% で指定されているディレクトリへの権限をEnterprise Manager 用のOSユーザーに付與      ②「バッチジョブとしてログオン

oracle 11g (11.2.0.1.0) OCCI 查詢自動退出的問題

今天,同事說使用vs2010 occi 連線oracle 11g (11.2.0.1.0) 在進行查詢操作時,程式自動退出。 經查發生在執行ResultSet的next()函式時,程式退出的。 經查發現 oracle 11g 的版本是11.2.0.1.0,需要對oracle

oracle安裝,未找到檔案 F:\app\Administrator\product\11.2.0\dbhome_2\owb\external\oc4j_ap

安裝11g,過程中提示 未找到檔案 E:\app\xxj\product\11.2.0\dbhome_1\owb\external\oc4j_applications\applications\WFMLRSVCApp.ear 解決辦法: 將win64_11gR2_database_2of2中的\wi

Centos7.0無桌面環境上靜默安裝oracle 11g

oracle 11g centos 7 Centos7.0無桌面環境上靜默安裝oracle 11g 1 配置基礎環境1.1 創建用戶及組 groupadd oinstall #創建oinstallgroupadd dba # 創建dba組useradd -g oinstall -G d

aix下oracle 12.1.0.2 asmca不能開的故障

chown clas srv 無法 password scope acl div 之前 因為要添加一個新的13T磁盤組,所以決定通過asmca處理。 結果輸入asmca之後,沒有反應,前後兩天都是如此。 第三天,IBM的存儲工程師已經把心的MPIO掛上,如果還無法操作,只能

oracle 11g 手動收集用戶統計信息

dbms_stats gather_schema_stats 日常手動收集統計信息,常用參數如下。用戶名為ROIDBA exec dbms_stats.gather_schema_stats(‘ROIDBA‘,estimate_percent=>20,no_invalidate=>DBMS

oracle 11g ocp 筆記(2)-- 安裝和創建數據庫

apu 數據庫管理工具 OS 靜默 software app %s 變量 多個 1.了解 數據庫管理工具 1.2 OUI(Oracle Universal Installer) ·OUI產品清單(inventory)位置 Windows:

SUSE 11 + Oracle 11g ADG修改主庫IP全流程

Oracle 11G ADG 修改IP 一、描述 數據庫版本11g,單實例ADG. 操作系統版本為SUSE 11 SP3. 主庫IP:192.168.1.11 備庫IP:192.168.1.12 二、需求 主庫需要修改IP地址,保證ADG環境正常運行。 主庫IP 改為:192.168.1.10,備

1. 安裝Oracle,配置環境 2. 實現查詢From子句 3. 實現查詢where子句 4. 實現查詢order by子句

不可 所有 ear sql文件 是否 階段 dna cls 數學運算 一、環境安裝1. 登錄:以管理員身份登錄 sqlplus 登錄名/密碼 管理員身份登錄:sqlplus system/1234562. 登錄後,導入案例。下載scott.sql文件,執行下面一行的命令 S