Oracle 資料庫 補丁升級
Linux 5.7 x86-64bit + Oracle 11.2g
====================================================================================================
1、資料庫版本
====================================================================================================
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE11.2.0.1.0Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
[
[[email protected] root]$ cd $ORACLE_HOME
[[email protected] dbhome_1]$ ls -l|grep OPatch
drwxr-xr-x 6 oracle oinstall 4096 Aug 12 21:07 OPatch
[[email protected] dbhome_1]$
====================================================================================================
2、查詢OPatch版本
====================================================================================================
首先,我們需要確定當前的OPatch版本。進入OPatch目錄之後,可以通過版本首先確認。
[
[[email protected] OPatch]$ ls -l
total 92
drwxr-xr-x 2 oracle oinstall 4096 Aug 12 21:07 docs
-rw-r--r-- 1 oracle oinstall 21576 May 6 2009 emdpatch.pl
drwxr-xr-x 2 oracle oinstall 4096 Aug 12 21:07 jlib
drwxr-xr-x 5 oracle oinstall 4096 Aug 12 21:07 ocm
-rwxr-xr-x 1 oracle oinstall 8709 May 6 2009 opatch
-rw-r--r-- 1 oracle oinstall 49 Aug 12 21:07 opatch.ini
-rw-r--r-- 1 oracle oinstall 2576 May 6 2009 opatch.pl
drwxr-xr-x 4 oracle oinstall 4096 Aug 12 21:07 opatchprereqs
[
Invoking OPatch 11.1.0.6.6
OPatch Version: 11.1.0.6.6
OPatch succeeded.
====================================================================================================
3、原有OPatch備份
====================================================================================================
11.2.0.1自帶的OPatch版本為11.1.0.6.6
tar zcvf opatch160831_bk.tar OPatch
[[email protected] dbhome_1]$ tar zcvf opatch160831_bk.tar OPatch
OPatch/
OPatch/ocm/
OPatch/ocm/lib/
OPatch/ocm/lib/emocmutl.jar
OPatch/ocm/doc/
OPatch/ocm/doc/dummy.txt
OPatch/ocm/bin/
OPatch/ocm/bin/dummy
OPatch/ocm/generic.zip
OPatch/opatch.pl
OPatch/opatchprereqs/
OPatch/opatchprereqs/oui/
OPatch/opatchprereqs/oui/knowledgesrc.xml
OPatch/opatchprereqs/opatch/
OPatch/opatchprereqs/opatch/rulemap.xml
OPatch/opatchprereqs/opatch/opatch_prereq.xml
OPatch/opatchprereqs/opatch/runtime_prereq.xml
OPatch/opatchprereqs/prerequisite.properties
OPatch/docs/
OPatch/docs/FAQ
OPatch/docs/Users_Guide.txt
OPatch/docs/Prereq_Users_Guide.txt
OPatch/emdpatch.pl
OPatch/opatch.ini
OPatch/opatch
OPatch/jlib/
OPatch/jlib/opatch.jar
OPatch/jlib/opatchutil.jar
OPatch/jlib/opatchprereq.jar
OPatch/jlib/opatchactions.jar
====================================================================================================
4、OPatch升級
====================================================================================================
最新版本的OPatch可以從MOS上面下載到,補丁檔名稱為:p6880880_112000_LINUX.zip
--解壓到ORACLE_HOME目錄上
[[email protected] upload]$ unzip p6880880_112000_LINUX.zip -d $ORACLE_HOME
[[email protected] dbhome_1]$ unzip /tmp/orcl/patch/p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME
Archive: /tmp/orcl/patch/p6880880_112000_Linux-x86-64.zip
creating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/README.html
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/README.txt
creating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/oplan.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/oracle.oplan.classpath.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/automation.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/OsysModel.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/EMrepoDrivers.jar
creating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/apache-commons/
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/apache-commons/commons-cli-1.0.jar
creating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/jaxb/
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/jaxb/activation.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/jaxb/jaxb-api.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/jaxb/jaxb-impl.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/jaxb/jsr173_1.0_api.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/osysmodel-utils.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/jlib/CRSProductDriver.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/oplan/oplan
replace /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/docs/FAQ? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/docs/FAQ
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/docs/Users_Guide.txt
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/docs/Prereq_Users_Guide.txt
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/jlib/opatch.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/jlib/opatchsdk.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/jlib/oracle.opatch.classpath.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/jlib/oracle.opatch.classpath.unix.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/jlib/oracle.opatch.classpath.windows.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchprereqs/opatch/opatch_prereq.xml
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchprereqs/opatch/rulemap.xml
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchprereqs/opatch/runtime_prereq.xml
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchprereqs/oui/knowledgesrc.xml
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchprereqs/prerequisite.properties
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch.bat
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch.pl
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch.ini
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchdiag
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchdiag.bat
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/emdpatch.pl
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/README.txt
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/bin/emocmrsp
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/emocmclnt-14.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/emocmclnt.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/emocmcommon.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/http_client.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/jcert.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/jnet.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/jsse.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/log4j-core.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/osdt_core3.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/osdt_jce.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/regexp.jar
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/lib/xmlparserv2.jar
extracting: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/ocm.zip
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ocm/ocm_platforms.txt
creating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/
creating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/log/
extracting: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/log/dummy
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/auto_patch.pl
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/crsconfig_lib.pm
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/crsdelete.pm
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/crspatch.pm
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/installPatch.excl
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/oracss.pm
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/patch112.pl
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/s_crsconfig_defs
inflating: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/crs/s_crsconfig_lib.pm
====================================================================================================
5、驗證OPatch安裝成功。
====================================================================================================
[[email protected] dbhome_1]$ cd OPatch/
[[email protected] OPatch]$ ls
README.txt docs jlib opatch opatch.ini opatchdiag opatchprereqs
crs emdpatch.pl ocm opatch.bat opatch.pl opatchdiag.bat oplan
[[email protected] OPatch]$ ./opatch version
OPatch Version: 11.2.0.3.0
OPatch succeeded.
====================================================================================================
6、停止資料庫、監聽等服務
====================================================================================================
注意:將資料庫和監聽程式關閉、一定要關門SQL 連線視窗,否則會報錯。
[[email protected] 12419278]$ lsnrctl stop
LSNRCTL for Linux: Versin 11.2.0.1.0 - Production on 31-8月 -2016 14:46:57
Copyright (c) 1991, 2009, Oracle. All rights reserved.
正在連線到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
命令執行成功
[[email protected] 12419278]$ emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://10.122.129.71:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 11g Database Control ...
... Stopped.
SQL> shutdown immediate
資料庫已經關閉。
已經解除安裝資料庫。
ORACLE 例程已經關閉。
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 斷開
[[email protected] root]$
====================================================================================================
7、安裝資料庫安全補丁,(一定要關門SQL 連線視窗,否則會報以下錯。)
===================================================================================================
[[email protected] 12419278]$ $ORACLE_HOME/OPatch/opatch napply
Oracle Interim Patch Installer version 11.2.0.3.0
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc
OPatch version : 11.2.0.3.0
OUI version : 11.2.0.1.0
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2016-08-31_14-53-25PM_1.log
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Following executables are active :
/u01/app/oracle/product/11.2.0/dbhome_1/bin/oracle
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2016-08-31_14-53-25PM_1.log
OPatch failed with error code 73
====================================================================================================
7、安裝資料庫安全補丁
====================================================================================================
[[email protected] 12419278]$ $ORACLE_HOME/OPatch/opatch napply
Oracle Interim Patch Installer version 11.2.0.3.0
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc
OPatch version : 11.2.0.3.0
OUI version : 11.2.0.1.0
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2016-08-31_14-54-37PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 10323077 10323079 10323081 10323082 11794163 11794164 11794167 12419278 12534742 12534743 12534745 12534746 12534747 12534748 12534749 12534750 12534751 12534752 12534753 12534754 12534755 12534756 9454037 9454038 9676419 9676420 9971778 9971779 9971780
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 = '/u01/app/oracle/product/11.2.0/dbhome_1')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '10323077' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms.dv.oc4j, 11.2.0.1.0...
Verifying the update...
Applying interim patch '10323079' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '10323081' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.sdo.locator, 11.2.0.1.0...
Verifying the update...
Applying interim patch '10323082' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching comonent oracle.sysman.console.db, 11.2.0.1.0...
Patching component oracle.sysman.oms.core, 10.2.0.4.2...
Verifying the update...
Applying interim patch '11794163' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms.dv, 11.2.0.1.0...
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '11794164' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.xdk.rsf, 11.2.0.1.0...
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '11794167' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.ldap.rsf.ic, 11.2.0.1.0...
Patching component oracle.ldap.rsf, 11.2.0.1.0...
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12419278' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms.rsf, 11.2.0.1.0...
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534742' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.sysman.console.db, 11.2.0.1.0...
Patching component oracle.sysman.oms.core, 10.2.0.4.2...
Verifying the update...
Applying interim patch '12534743' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.sysman.console.db, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534745' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.sysman.plugin.db.main.repository, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534746' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.sysman.console.db, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534747' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.sysman.console.db, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534748' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.sysman.console.db, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534749' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.sysman.console.db, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534750' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.ldap.rsf, 11.2.0.1.0...
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534751' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
ApplySession: Optional component(s) [ oracle.client, 11.2.0.1.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms.rsf, 11.2.0.1.0...
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534752' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms.dbscripts, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534753' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms.rsf, 11.2.0.1.0...
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534754' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534755' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '12534756' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.xdk.rsf, 11.2.0.1.0...
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '9454037' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '9454038' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms.dbscripts, 11.2.0.1.0...
Verifying the update...
Applying interim patch '9676419' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching comonent oracle.network.rsf, 11.2.0.1.0...
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Applying interim patch '9676420' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.network.rsf, 11.2.0.1.0...
Patching component oracle.network.listener, 11.2.0.1.0...
Verifying the update...
Applying interim patch '9971778' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms.dbscripts, 11.2.0.1.0...
Verifying the update...
Applying interim patch '9971779' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.javavm.server, 11.2.0.1.0...
Verifying the update...
Applying interim patch '9971780' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'
Patching component oracle.rdbms.dbscripts, 11.2.0.1.0...
Patching component oracle.rdbms, 11.2.0.1.0...
Verifying the update...
Patches 10323077,10323079,10323081,10323082,11794163,11794164,11794167,12419278,12534742,12534743,12534745,12534746,12534747,12534748,12534749,12534750,12534751,12534752,12534753,12534754,12534755,12534756,9454037,9454038,9676419,9676420,9971778,9971779,9971780 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2016-08-31_14-54-37PM_1.log
OPatch succeeded.
[[email protected] 12419278]$
====================================================================================================
8、檢視補丁安裝情況
====================================================================================================
[[email protected] OPatch]$ ./opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.0
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc
OPatch version : 11.2.0.3.0
OUI version : 11.2.0.1.0
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2016-08-31_15-02-39PM_1.log
Lsinventory Output file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2016-08-31_15-02-39PM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
Oracle Database 11g 11.2.0.1.0
There are 1 products installed in this Oracle Home.
Interim patches (29) :
Patch 9971780 : applied on Wed Aug 31 14:58:36 CST 2016
Unique Patch ID: 13769865
Created on 14 Sep 2010, 23:41:27 hrs PST8PDT
Bugs fixed:
9971780
Patch 9971779 : applied on Wed Aug 31 14:58:32 CST 2016
Unique Patch ID: 13769865
Created on 14 Sep 2010, 23:33:03 hrs PST8PDT
Bugs fixed:
9971779, 9454036
Patch 9971778 : applied on Wed Aug 31 14:58:30 CST 2016
Unique Patch ID: 13769865
Created on 14 Sep 2010, 23:31:03 hrs PST8PDT
Bugs fixed:
9971778
Patch 9676420 : applied on Wed Aug 31 14:58:27 CST 2016
Unique Patch ID: 13769865
Created on 31 May 2010, 05:30:16 hrs PST8PDT
Bugs fixed:
9676420
Patch 9676419 : applied on Wed Aug 31 14:58:24 CST 2016
Unique Patch ID: 13769865
Created on 31 May 2010, 05:29:50 hrs PST8PDT
Bugs fixed:
9676419
Patch 9454038 : applied on Wed Aug 31 14:58:21 CST 2016
Unique Patch ID: 13769865
Created on 18 Mar 2010, 07:16:56 hrs PST8PDT
Bugs fixed:
9454038
Patch 9454037 : applied on Wed Aug 31 14:58:19 CST 2016
Unique Patch ID: 13769865
Created on 25 Mar 2010, 04:54:11 hrs PST8PDT
Bugs fixed:
9454037
Patch 12534756 : applied on Wed Aug 31 14:58:16 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:16:09 hrs PST8PDT
Bugs fixed:
12534756, 11794165
Patch 12534755 : applied on Wed Aug 31 14:58:13 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:16:08 hrs PST8PDT
Bugs fixed:
12534755, 8702535, 8991997
Patch 12534754 : applied on Wed Aug 31 14:58:09 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:16:07 hrs PST8PDT
Bugs fixed:
12534754
Patch 12534753 : applied on Wed Aug 31 14:58:05 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:16:05 hrs PST8PDT
Bugs fixed:
12534753
Patch 12534752 : applied on Wed Aug 31 14:58:02 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:16:02 hrs PST8PDT
Bugs fixed:
12534752
Patch 12534751 : applied on Wed Aug 31 14:57:59 CST 2016
Unique Patch ID: 13769865
Created on 8 Jul 2011, 02:03:38 hrs PST8PDT
Bugs fixed:
12534751
Patch 12534750 : applied on Wed Aug 31 14:57:56 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:15:57 hrs PST8PDT
Bugs fixed:
12534750
Patch 12534749 : applied on Wed Aug 31 14:57:53 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:15:56 hrs PST8PDT
Bugs fixed:
12534749
Patch 12534748 : applied on Wed Aug 31 14:57:41 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:15:55 hrs PST8PDT
Bugs fixed:
12534748
Patch 12534747 : applied on Wed Aug 31 14:57:26 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:15:53 hrs PST8PDT
Bugs fixed:
12534747
Patch 12534746 : applied on Wed Aug 31 14:56:58 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:15:52 hrs PST8PDT
Bugs fixed:
12534746
Patch 12534745 : applied on Wed Aug 31 14:56:46 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:15:51 hrs PST8PDT
Bugs fixed:
12534745
Patch 12534743 : applied on Wed Aug 31 14:56:40 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:15:49 hrs PST8PDT
Bugs fixed:
12534743
Patch 12534742 : applied on Wed Aug 31 14:56:11 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:15:48 hrs PST8PDT
Bugs fixed:
12534742
Patch 12419278 : applied on Wed Aug 31 14:56:01 CST 2016
Unique Patch ID: 13769865
Created on 23 May 2011, 02:15:45 hrs PST8PDT
Bugs fixed:
9655013, 12419278, 9952260, 9369797, 11724991, 10249532
Patch 11794167 : applied on Wed Aug 31 14:55:56 CST 2016
Unique Patch ID: 13769865
Created on 16 Mar 2011, 00:52:03 hrs PST8PDT
Bugs fixed:
11794167
Patch 11794164 : applied on Wed Aug 31 14:55:53 CST 2016
Unique Patch ID: 13769865
Created on 16 Mar 2011, 00:53:33 hrs PST8PDT
Bugs fixed:
11794164
Patch 11794163 : applied on Wed Aug 31 14:55:51 CST 2016
Unique Patch ID: 13769865
Created on 25 Mar 2011, 02:58:25 hrs PST8PDT
Bugs fixed:
10323080, 11794163
Patch 10323082 : applied on Wed Aug 31 14:55:46 CST 2016
Unique Patch ID: 13769865
Created on 22 Dec 2010, 07:29:02 hrs PST8PDT
Bugs fixed:
10323082
Patch 10323081 : applied on Wed Aug 31 14:55:29 CST 2016
Unique Patch ID: 13769865
Created on 22 Dec 2010, 07:09:56 hrs PST8PDT
Bugs fixed:
10323081
Patch 10323079 : applied on Wed Aug 31 14:55:27 CST 2016
Unique Patch ID: 13769865
Created on 22 Dec 2010, 07:03:31 hrs PST8PDT
Bugs fixed:
10323079
Patch 10323077 : applied on Wed Aug 31 14:55:23 CST 2016
Unique Patch ID: 13769865
Created on 22 Dec 2010, 04:12:56 hrs PST8PDT
Bugs fixed:
10323077
--------------------------------------------------------------------------------
OPatch succeeded.
====================================================================================================
9、資料庫、監聽服務啟動
====================================================================================================
[[email protected] OPatch]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 31-8月 -2016 15:09:31
Copyright (c) 1991, 2009, Oracle. All rights reserved.
啟動/u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: 請稍候...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
系統引數檔案為/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
寫入/u01/app/oracle/diag/tnslsnr/orcl-db-01/listener/alert/log.xml的日誌資訊
監聽: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
監聽: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
正在連線到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
LISTENER 的 STATUS
------------------------
別名 LISTENER
版本 TNSLSNR for Linux: Version 11.2.0.1.0 - Production
啟動日期 31-8月 -2016 15:09:31
正常執行時間 0 天 0 小時 0 分 0 秒
跟蹤級別 off
安全性 ON: Local OS Authentication
SNMP OFF
監聽程式引數檔案 /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
監聽程式日誌檔案 /u01/app/oracle/diag/tnslsnr/orcl-db-01/listener/alert/log.xml
監聽端點概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
服務摘要..
服務 "orcl" 包含 1 個例項。
例項 "orcl", 狀態 UNKNOWN, 包含此服務的 1 個處理程式...
命令執行成功
[[email protected] OPatch]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://10.122.129.71:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control .... started.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/10.122.129.71_orcl/sysman/log
[[email protected] OPatch]$
====================================================================================================
10、修改SQL檔案載入到資料庫中 (一定要執行這一步,否則相當沒有打補丁!
====================================================================================================
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql cpu apply
SQL> QUIT
SQL> show errors
沒有錯誤。
SQL> CREATE OR REPLACE PACKAGE BODY DBMS_CDC_IPUBLISH wrapped
2 a000000
3 1
4 abcd
5 abcd
6 abcd
7 abcd
8 abcd
9 abcd
10 abcd
11 abcd
12 abcd
13 abcd
14 abcd
15 abcd
16 abcd
17 abcd
18 abcd
19 b
20 5f4a 1682
21 HqK3O9rmI0Pq2zNKgH/S6YdNm9Mwg81xuiAFV28ZF7We4HyZPtonL5jNWQXK1vdsg8zVDOIU
22 sNe3jxRg1Nrebg2Q4USShv6lZghm8qeK9XzEDqG293oUckPaHwlBRRnav1+zfDOW9yRuGr7B
----------------------------
會話已更改。
SQL> PROMPT Updating registry...
Updating registry...
SQL> INSERT INTO registry$history
2 (action_time, action,
3 namespace, version, id,
4 bundle_series, comments)
5 VALUES
6 (SYSTIMESTAMP, 'APPLY',
7 SYS_CONTEXT('REGISTRY$CTX','NAMESPACE'),
8 '11.2.0.1',
9 6,
10 'CPU',
11 'CPUJul2011');
已建立 1 行。
SQL> COMMIT;
提交完成。
SQL> SPOOL off
SQL> SET echo off
Check the following log file for errors:
/u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/catbundle/catbundle_CPU_ORCL_APPLY_2016Sep05_07_14_17.log
相關推薦
Oracle 資料庫 補丁升級
環境描述: Linux 5.7 x86-64bit + Oracle 11.2g ================================================================================================
Oracle資料庫補丁升級的一些積累
一、補丁相關的術語在資料庫技術支援服務過程中,經常會遇到補丁相關的術語,現在集中做一下說明。 1. interim patch/one-off patch是我們常說的小補丁,為了修復某個bug而釋出的補丁,這種補丁推薦在測試庫上測試無誤後再安裝在生產庫上。2. merged
oracle資料庫打PSU補丁過程
資料庫版本:oracle11g單機庫 11.2.0.4.0 重要步驟: 1. oracle官網上下載相關PSU補丁包及Opatch工具,由於我下載的是Gi補丁包,裡面包含了grid和database的補丁,所以得摘出oracle資料庫的PSU補丁包,這個很煩人,摘得時候閱讀官方文件區分,如果
【解決】Mac升級Mojave後用Navicat連線Oracle資料庫報ORA-21561: OID generation failed
一、原因排查 終端執行命令: xxxdeMacBook-Pro:~ xxx$ hostname xxxdeMacBook-Pro.local 發現是 輸出的hostname為 .local 而不是 localhost 檢視 hosts 檔案 : vim /e
使用DBUA單一例項如何升級至Oracle資料庫12c
對於Oracle資料庫的每個版本,總是需要遵循一個升級路徑。而對於很多人來說,他們經常是在不瞭解需要做些什麼的情況下就匆忙下載軟體並嘗試去安裝或升級。如果失敗,這就有可能會導致災難並對業務產生潛在的影響。 升級至Oracle資料庫12c(12.1.0)的路徑是相當簡單的。如果你所執行的Oracl
oracle資料庫升級11.2.0.3升級到11.2.0.4
####################################### ## 升級準備期 ## ####################################### 1. 介質準備,在所有伺服器上,準備如下
不停機升級ORACLE資料庫的方法簡介
如果你需要安裝的資料庫伺服器比較多,使用圖形化方式安裝資料庫軟體的速度還是很慢,而且也比較麻煩。Oracle 11g 提供了Clone安裝的方法。 Clone安裝的方法就是複製已經安裝好的一個ORACLE到另一個服務上。 步驟如下: 使用正常方法在伺服器A上安裝好Oracl
生產資料庫要不要升級與ORACLE資料庫支援服務內容和時限的問題
12c是oracle在資料庫領域的革命性產品,諸多新功能,如CDB、PDB、In-Memory、Sharding、組合列分割槽表等等行業內領先技術,無不體現出ORACLE仍佔據著行業內的創新技術領頭羊地位。 Oracle 12.2至今未釋出,但是其
Oracle 資料庫和補丁下載地址 12.1.0.2 11.2.0.4 11.2.0.1
Oracle 資料庫軟體和補丁下載地址 12.1.0.2 11.2.0.4 11.2.0.1 AIX Linux Windows平臺 Oracle 資料庫軟體和補丁下載地址、百度雲盤共享 12.1.0.2 11.2.0.4 11.2.0.1 AIX Linux W
oracle 12C中升級11g資料庫到12c遇到ORA-65139
今天使用dbua升級了原來一個11.2.0.4的資料庫,升級較慢3個多小時,但升級比較順利。 不過在後面將11g的資料庫插入 到12c中出錯 create pluggabl
檢視oracle資料庫當前版本,包括升級的記錄
set pages 100 lines 120 col action format a6 col namespace format a10 col version format a10
ORACLE資料庫解除安裝與升級後的資料還原
資料庫邏輯備份工具Export Export匯出程式去取資料庫(包括資料字典),並將輸出寫入到一個叫做匯出轉儲檔案(export dump file)二進位制檔案中,可以匯出整個資料庫、指定的使用者和指定的表,在匯出期間可以選擇匯出選項,如許可權、索引以及相關度過程及約
Weblogic補丁升級操作手冊
nload info nts -m 登錄 5.0 xml配置 down 命名 1、查看Weblogic版本號 方法一 [[email protected]/* */ ~]$ cd /home/weblogic/Oracle/Middlewar
AIX 系統補丁升級步驟
util acc shu 操作 操作系統 服務 after 補丁 是否 AIX 系統補丁升級步驟 1、升級之前建議備份 rootvg (推薦) # smit mksysb 2、檢查系統版本號 # oslevel -r 3、找到補丁光盤或者下載補丁,上傳到服務器中
ESXI 補丁升級回退
cli src software col sta nbsp 進度 1.5 分享 esxcli software vib install(update) -d="補丁路徑" esxcli software vib list 查看補丁信息vmware
ORACLE跨版本升級
ORACLE 升級 跨版本升級(10.2.0.5升級到11.2.0.3)10.2.0.5版本:ORACLE_BASE: /oracle/u01/app/oracleORACLE_HOME: /oracle/u01/app/oracle/product/10.2/db_111.2.0.3版本:ORACL
測試安全補丁升級, 不升級內核版本
RoCE onf lan loaded debug -c 3.x HR mit CentOS/RHEL 6 開始升級所有軟件的安全補丁: yum -y --security upgrade 自動更新安全補丁 yum -y install yum-cron vim
Weblogic補丁升級操作步驟
weblogic 補丁 Weblogic版本查詢weblogic版本查詢方式:1.命令方式1:cd /usr/weblogic/Oracle/Middleware/utils/bsu ./bsu.sh -prod_dir=/usr/weblogic/Oracle/Middleware/wlserver
ecshop 漏洞如何修復 補丁升級與安全修復詳情
安全 無法執行 版本信息 傳遞 信息 技術 sig 後門 命令 目前ecshop漏洞大面積爆發,包括最新版的ecshop 3.0,ecshop 4.0,ecshop2.7.3全系列版本都存在著高危網站漏洞,導致網站被黑,被篡改,被掛馬,許多商城系統深受其漏洞的×××,給商城
MySQL、SQL server 、Oracle資料庫中查詢所有的資料庫,查詢指定資料庫所有表名,查詢所有的欄位的名字
MySQL中查詢所有資料庫名和表名 1.查詢所有資料庫 show databases; 2.查詢指定資料庫中所有表名 select table_name from information_schema.tables where table_schema='database_name' a