[Upgrade] Oracle 10.2.0.5 PSU upgrade
before we start to PSU upgrade,we should backup database(cold or hot backup) and the oracle home directory.
C:\Users\Admin>chcp 437 #change language mode to english.
D:\>set ORACLE_HOME=E:\oracle\product\10.2.0\db_1
D:\>echo %ORACLE_HOME%
E:\oracle\product\10.2.0\db_1
E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290>dir
Volume in drive E has no label.
Volume Serial Number is 0AC8-CB65
Directory of E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290
2017-04-08 10:06 AM <DIR> .
2017-04-08 10:06 AM <DIR> ..
2017-04-08 10:06 AM <DIR> custom
2017-04-08 10:06 AM <DIR> etc
2017-04-08 10:06 AM <DIR> files
2010-09-01 07:06 AM 2,924 patchmd.xml
2010-09-08 10:55 PM 59,498 README.html
2 File(s) 62,422 bytes
5 Dir(s) 1,404,989,440 bytes free
E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290>%ORACLE_HOME%\opatch\opatch apply
Invoking OPatch 10.2.0.5.1
Oracle Interim Patch Installer version 10.2.0.5.1
Copyright (c) 2010, Oracle Corporation. All rights reserved.
Oracle Home : E:\oracle\product\10.2.0\db_1
Central Inventory : C:\Program Files\Oracle\Inventory
from : n/a
OPatch version : 10.2.0.5.1
OUI version : 10.2.0.5.0
OUI location : E:\oracle\product\10.2.0\db_1\oui
Log file location : E:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch2017-04-08_13-54-21PM.log
Patch history file: E:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch_history.txt
ApplySession applying interim patch '10058290' to OH 'E:\oracle\product\10.2.0\db_1'
Running prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Following files are active :
E:\oracle\product\10.2.0\db_1\bin\oracle.exe
E:\oracle\product\10.2.0\db_1\rdbms\admin\oracle.sym
E:\oracle\product\10.2.0\db_1\rdbms\mesg\oraus.msb
E:\oracle\product\10.2.0\db_1\bin\oranl10.dll
ApplySession failed during prerequisite checks: Prerequisite check "CheckActiveFilesAndExecutables" failed.
System intact, OPatch will not attempt to restore the system
OPatch failed with error code = 74
####this error is becasue haven't close the database
SQL> shutdown immediate
####This error happen again.
####after check is oracle service is not close,close the oracle service and run the opatch apply command again.
E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290>%ORACLE_HOME%\opatch\opatch apply
Invoking OPatch 10.2.0.5.1
Oracle Interim Patch Installer version 10.2.0.5.1
Copyright (c) 2010, Oracle Corporation. All rights reserved.
Oracle Home : E:\oracle\product\10.2.0\db_1
Central Inventory : C:\Program Files\Oracle\Inventory
from : n/a
OPatch version : 10.2.0.5.1
OUI version : 10.2.0.5.0
OUI location : E:\oracle\product\10.2.0\db_1\oui
Log file location : E:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch2017-04-08_13-57-30PM.log
Patch history file: E:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch_history.txt
ApplySession applying interim patch '10058290' to OH 'E:\oracle\product\10.2.0\db_1'
Running prerequisite checks...
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 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
OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = 'E:\oracle\product\10.2.0\db_1')
Is the local system ready for patching? [y|n]
Could not recognize input. Please re-enter.
y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '10058290' for restore. This might take a while...
Backing up files affected by the patch '10058290' for rollback. This might take a while...
Execution of 'cmd /C "E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290\custom\scripts\pre.bat" -apply 10058290 ':
Return Code = 0
Patching component oracle.rdbms, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\bin\oracle.exe"
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\admin\oracle.sym"
Copying file to "E:\oracle\product\10.2.0\db_1\Bundle\Patch1\catcpu.sql"
Copying file to "E:\oracle\product\10.2.0\db_1\Bundle\Patch1\catcpu_rollback.sql"
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\admin\bundledata_WINBUNDLE.xml"
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\admin\catbundle.sql"
Patching component oracle.rdbms.rsf, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\mesg\oraus.msb"
Patching component oracle.rdbms.dbscripts, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\admin\prvtjob.plb"
Patching component oracle.network.rsf, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\bin\oranl10.dll"
Patching component oracle.has.common, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\bin\crsctl.exe"
Copying file to "E:\oracle\product\10.2.0\db_1\bin\ocssd.exe"
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\admin\ocssd.sym"
Copying file to "E:\oracle\product\10.2.0\db_1\crs\admin\ocssd.sym"
Patching component oracle.has.rsf, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\bin\crsd.exe"
ApplySession adding interim patch '10058290' to inventory
Verifying the update...
Inventory check OK: Patch ID 10058290 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 10058290 are present in Oracle Home.
Execution of 'cmd /C "E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290\custom\scripts\post.bat" -apply 10058290 ':
Return Code = 0
The local system has been patched and can be restarted.
OPatch succeeded.
###execute catcpu.sql script
E:\oracle\product\10.2.0\db_1\Bundle\Patch1>dir
Volume in drive E has no label.
Volume Serial Number is 0AC8-CB65
Directory of E:\oracle\product\10.2.0\db_1\Bundle\Patch1
2017-04-08 01:58 PM <DIR> .
2017-04-08 01:58 PM <DIR> ..
2010-09-01 07:11 AM 2,654 catcpu.sql
2010-09-01 07:11 AM 2,342 catcpu_rollback.sql
2 File(s) 4,996 bytes
2 Dir(s) 1,165,344,768 bytes free
E:\oracle\product\10.2.0\db_1\Bundle\Patch1>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on 星期六 4月 8 14:03:44 2017
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
連線到:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @catcpu.sql
SQL> @utlprp.sql
SQL> @?/rdbms/admin/catbundle_WINBUNDLE_BRUCE_APPLY.sql
all done.
C:\Users\Admin>chcp 437 #change language mode to english.
D:\>set ORACLE_HOME=E:\oracle\product\10.2.0\db_1
D:\>echo %ORACLE_HOME%
E:\oracle\product\10.2.0\db_1
E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290>dir
Volume in drive E has no label.
Volume Serial Number is 0AC8-CB65
Directory of E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290
2017-04-08 10:06 AM <DIR> .
2017-04-08 10:06 AM <DIR> ..
2017-04-08 10:06 AM <DIR> custom
2017-04-08 10:06 AM <DIR> etc
2017-04-08 10:06 AM <DIR> files
2010-09-01 07:06 AM 2,924 patchmd.xml
2010-09-08 10:55 PM 59,498 README.html
2 File(s) 62,422 bytes
5 Dir(s) 1,404,989,440 bytes free
E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290>%ORACLE_HOME%\opatch\opatch apply
Invoking OPatch 10.2.0.5.1
Oracle Interim Patch Installer version 10.2.0.5.1
Copyright (c) 2010, Oracle Corporation. All rights reserved.
Oracle Home : E:\oracle\product\10.2.0\db_1
Central Inventory : C:\Program Files\Oracle\Inventory
from : n/a
OPatch version : 10.2.0.5.1
OUI version : 10.2.0.5.0
OUI location : E:\oracle\product\10.2.0\db_1\oui
Log file location : E:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch2017-04-08_13-54-21PM.log
Patch history file: E:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch_history.txt
ApplySession applying interim patch '10058290' to OH 'E:\oracle\product\10.2.0\db_1'
Running prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Following files are active :
E:\oracle\product\10.2.0\db_1\bin\oracle.exe
E:\oracle\product\10.2.0\db_1\rdbms\admin\oracle.sym
E:\oracle\product\10.2.0\db_1\rdbms\mesg\oraus.msb
E:\oracle\product\10.2.0\db_1\bin\oranl10.dll
ApplySession failed during prerequisite checks: Prerequisite check "CheckActiveFilesAndExecutables" failed.
System intact, OPatch will not attempt to restore the system
OPatch failed with error code = 74
####this error is becasue haven't close the database
SQL> shutdown immediate
####This error happen again.
####after check is oracle service is not close,close the oracle service and run the opatch apply command again.
E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290>%ORACLE_HOME%\opatch\opatch apply
Invoking OPatch 10.2.0.5.1
Oracle Interim Patch Installer version 10.2.0.5.1
Copyright (c) 2010, Oracle Corporation. All rights reserved.
Oracle Home : E:\oracle\product\10.2.0\db_1
Central Inventory : C:\Program Files\Oracle\Inventory
from : n/a
OPatch version : 10.2.0.5.1
OUI version : 10.2.0.5.0
OUI location : E:\oracle\product\10.2.0\db_1\oui
Log file location : E:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch2017-04-08_13-57-30PM.log
Patch history file: E:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch_history.txt
ApplySession applying interim patch '10058290' to OH 'E:\oracle\product\10.2.0\db_1'
Running prerequisite checks...
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 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
OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = 'E:\oracle\product\10.2.0\db_1')
Is the local system ready for patching? [y|n]
Could not recognize input. Please re-enter.
y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '10058290' for restore. This might take a while...
Backing up files affected by the patch '10058290' for rollback. This might take a while...
Execution of 'cmd /C "E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290\custom\scripts\pre.bat" -apply 10058290 ':
Return Code = 0
Patching component oracle.rdbms, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\bin\oracle.exe"
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\admin\oracle.sym"
Copying file to "E:\oracle\product\10.2.0\db_1\Bundle\Patch1\catcpu.sql"
Copying file to "E:\oracle\product\10.2.0\db_1\Bundle\Patch1\catcpu_rollback.sql"
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\admin\bundledata_WINBUNDLE.xml"
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\admin\catbundle.sql"
Patching component oracle.rdbms.rsf, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\mesg\oraus.msb"
Patching component oracle.rdbms.dbscripts, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\admin\prvtjob.plb"
Patching component oracle.network.rsf, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\bin\oranl10.dll"
Patching component oracle.has.common, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\bin\crsctl.exe"
Copying file to "E:\oracle\product\10.2.0\db_1\bin\ocssd.exe"
Copying file to "E:\oracle\product\10.2.0\db_1\rdbms\admin\ocssd.sym"
Copying file to "E:\oracle\product\10.2.0\db_1\crs\admin\ocssd.sym"
Patching component oracle.has.rsf, 10.2.0.5.0...
Copying file to "E:\oracle\product\10.2.0\db_1\bin\crsd.exe"
ApplySession adding interim patch '10058290' to inventory
Verifying the update...
Inventory check OK: Patch ID 10058290 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 10058290 are present in Oracle Home.
Execution of 'cmd /C "E:\oracle\10.2.0.5\p10058290_10205_WINNT\10058290\custom\scripts\post.bat" -apply 10058290 ':
Return Code = 0
The local system has been patched and can be restarted.
OPatch succeeded.
###execute catcpu.sql script
E:\oracle\product\10.2.0\db_1\Bundle\Patch1>dir
Volume in drive E has no label.
Volume Serial Number is 0AC8-CB65
Directory of E:\oracle\product\10.2.0\db_1\Bundle\Patch1
2017-04-08 01:58 PM <DIR> .
2017-04-08 01:58 PM <DIR> ..
2010-09-01 07:11 AM 2,654 catcpu.sql
2010-09-01 07:11 AM 2,342 catcpu_rollback.sql
2 File(s) 4,996 bytes
2 Dir(s) 1,165,344,768 bytes free
E:\oracle\product\10.2.0\db_1\Bundle\Patch1>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on 星期六 4月 8 14:03:44 2017
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
連線到:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @catcpu.sql
SQL> @utlprp.sql
SQL> @?/rdbms/admin/catbundle_WINBUNDLE_BRUCE_APPLY.sql
all done.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2146557/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Upgrade] Oracle 10.2.0.5 opatch utility upgradeOracle
- [Upgrade] Oracle 10.2.0.1 --> 10.2.0.5 patchset Upgrade.Oracle
- upgrade 10.2.0.5 to 11.2.0.4 on linuxLinux
- 升級 upgrade ORACLE DBOracle
- upgrade oracle 10.2.0.4 for aixOracleAI
- 【Oracle】rman upgrade catalogOracle
- upgrade oracle rman catalogOracle
- zt_oracle psu_cpu_bundle補丁patch升級upgrade相關概念Oracle
- helm upgrade
- Upgrade GC 10.2.0.x to 10.2.0.5 - Important Steps Required_853691.1GCImportUI
- Upgrade Oracle Database from 10.2.0.1 to 11.2.0.4OracleDatabase
- Oracle Doc list involved with upgrade issueOracle
- 近期oracle upgrade book and rac manual 手記Oracle
- 2.3.3.3 Application UpgradeAPP
- Failed to create or upgrade OLRAI
- My first Upgrade projectProject
- Failed to upgrade Oracle Cluster Registry configurationAIOracle
- upgrade oracle version 9i to 10gOracle
- Oracle Database Upgrade Path Reference List [ID 730365.1]OracleDatabase
- Oracle 10g upgrade 10.2.0.2 -- 10.2.0.4Oracle 10g
- Using silent mode to install GC 10.2.0.1 and upgrade GC to 10.2.0.5 by Using an Existing Database onGCDatabase
- PostgreSQL DBA(91) - PG upgradeSQL
- BUG:Failed to create or upgrade OLRAI
- Oracle 10g upgrade from 10.2.0.1 to 10.2.0.4Oracle 10g
- Oracle案例04——ORA-39700: database must be opened with UPGRADE optionOracleDatabase
- 【upgrade】oracle10.2.0.1.0升級10.2.0.5.0 for linuxOracleLinux
- 2.3.3.3.1 How an Application Upgrade WorksAPP
- sharepoint mysite and upgrade topics
- zt_oracle9204upgrade升級到oracle9206Oracle
- oracle client 10201 upgrade to 10204Oracleclient
- oracle_1201_upgrade_第二部Oracle
- Cisco ACI APIC upgrade downgrade pathAPI
- apt的update和upgrade區別APT
- pg_upgrade大版本升級
- yum upgrade和yum update區別
- Advise on OS patch upgrade with RAC
- ORACLE-1Z0-060題庫(Upgrade to Oracle Database 12c)OracleDatabase
- Oracle OCP 1Z0 053 Q217(Upgrade Recompile)OracleCompile