Oracle 10g R2 RAC Manual Patch psu (10.2.0.5.19)

Source: Internet
Author: User
Tags sqlplus

I. Preparation work 1, database environment

Operating system version: Redhat 5.8 x64
Database version: Oracle 10.2.0.5 x64 RAC
cluterware:10.2.0.5
Oracle database:10.2.0.5.0
PSU Patch: 10.2.0.5.19 (second half of 2015)

2, Prepare content

Opatch:p6880880_102000_linux-x86-64.zip
DB Psu:p20299014_10205_linux-x86-64.zip

Description: p20299014 patch package without CRS patch repair, so directly hit the database PSU can be.


Second, update the Opatch version, must be updated

Description: Update the Opatch version on two nodes, respectively.

1. Update the Opatch version, you need to update from 10.2.0.4.9 to 10.2.0.5.1,opatch direct compression replacement.

(1) Upload p6880880_112000_linux-x86-64.zip,p20299014_10205_linux-x86-64.zip to the/u01/app directory.
(2) Rename the original Opatch directory under root user.

Mv/u01/app/oracle/product/10.2.0/db_1/opatch/u01/app/oracle/product/10.2.0/db_1/opatchbk

2. Oracle Directory Opatch Replacement

(1) Root user
cd/u01/app/
Chown Oracle:oinstall P6880880_102000_linux-x86-64.zip
Chown Oracle:oinstall P20299014_10205_linux-x86-64.zip

(2) Oracle User

Su-oracle
cd/u01/app/
Unzip P6880880_112000_linux-x86-64.zip
Unzip P20299014_10205_linux-x86-64.zip

(3) Root user

cd/u01/app/
MV opatch/u01/app/oracle/product/10.2.0/db_1/

(4) Oracle User Testing

Su-oracle

/u01/app/oracle/product/10.2.0/db_1/opatch/opatch version

Invoking Opatch 10.2.0.5.1
Opatch version:10.2.0.5.1


3. Test compatibility

Su-oracle

$ORACLE _home/opatch/opatch prereq Checkconflictagainstohwithdetail-phbasedir/u01/app/20299014-oh $ORACLE _home

Invoking Opatch 10.2.0.5.1
Oracle Interim Patch Installer version 10.2.0.5.1
Copyright (c), Oracle Corporation. All rights reserved.
Prereq session
Oracle Home:/u01/app/oracle/product/10.2.0/db_1
Central Inventory:/u01/app/oracle/orainventory
From:/etc/orainst.loc
Opatch version:10.2.0.5.1
OUI version:10.2.0.5.0
OUI Location:/u01/app/oracle/product/10.2.0/db_1/oui
Log File Location:/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2016-03-29_10-38-44am.log
Patch history File:/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt
Invoking Prereq "Checkconflictagainstohwithdetail"
Prereq "Checkconflictagainstohwithdetail" passed.
Opatch succeeded.

4. See if the patch can be upgraded by rolling

This method has no effect on the application system, while the other nodes do not need to be shut down while upgrading one node.
$/u01/app/oracle/product/10.2.0/db_1/opatch/opatch query-all/u01/app/20299014/|grep Rolling
Patch is a rolling patch:true


Third, hit the Database PSU patch

Upgrade to look at their respective environments, can be useful in the way of rolling upgrades, you can also use the full shutdown and then upgrade.

1. Upgrade Node 1 First, close node 1

[[email protected] ~]$ srvctl stop instance-d orcl-i ORCL1
[Email protected] ~]$ srvctl stop listener-n Node1
[Email protected] ~]$ srvctl stop asm-n Node1

2. Perform the upgrade

Local Upgrade Method:
cd/u01/app/
/u01/app/oracle/product/10.2.0/db_1/opatch/opatch Napply-local-oh/u01/app/oracle/product/10.2.0/db_1-id 20299014

Example: If you do not use a rolling upgrade, local and remote to fight the way:
cd/u01/app/20299014
/u01/app/oracle/product/10.2.0/db_1/opatch/opatch Apply

First hit the local node, start the Node 1 database, then close Node 2, then hit the Node 2 patch, and finally start Node 2.

3. Node 1 starts.

[Email protected] ~]$ srvctl start asm-n node1
[Email protected] ~]$ srvctl start instance-d orcl-i ORCL1
[Email protected] ~]$ srvctl start listener-n node1

4. Close Node 2

[[email protected] ~]$ srvctl stop instance-d orcl-i Orcl2
[Email protected] ~]$ srvctl stop listener-n Node2
[Email protected] ~]$ srvctl stop asm-n Node2

Continue to hit the Node 2 patch, after the completion, then start Node 2.

[Email protected] ~]$ srvctl start asm-n node2
[Email protected] ~]$ srvctl start instance-d orcl-i Orcl2
[Email protected] ~]$ srvctl start listener-n node2

5. Node 1, node 2 Check upgrade status

$/u01/app/oracle/product/10.2.0/db_1/opatch/opatch lsinv   
                                                       
Invoking Opatch 10.2.0.5.1    
Oracle Interim Patch Installer version 10.2.0.5.1    
Copyright (c), Oracle corporation.  All right s reserved.

Oracle Home:/u01/app/oracle/product/10.2.0/db_1
Central Inventory:/u01/app/oracle/orainventory
From:/etc/orainst.loc
Opatch version:10.2.0.5.1
OUI version:10.2.0.5.0
OUI Location:/u01/app/oracle/product/10.2.0/db_1/oui
Log File Location:/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2016-03-29_16-10-36pm.log

Patch history File:/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt

Lsinventory Output file Location:/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/ Lsinventory2016-03-29_16-10-36pm.txt

--------------------------------------------------------------------------------
Installed top-level products (2):

Oracle Database 10g 10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 4 10.2.0.5.0
There is 2 products installed in this Oracle Home.

Interim patches (1):

Patch 20299014:applied on Tue Mar 16:03:40 CST 2016
Unique Patch id:19074368
Created on June, 02:35:37 hrs PST8PDT
Bugs fixed:
20074391, 13596521, 17088068, 8865718, 17201047, 13489660, 9020537
8664189, 10091698, 14275629, 19909862, 17832122, 17832123, 17832124
17832125, 16619894, 8822531, 10139235, 20299014, 8350262, 7119382
19274521, 13632738, 11724962, 20331945, 19274523, 9320130, 16961614
16961615, 13775862, 16961616, 16961617, 19006757, 16961618, 16961619
18221699, 9399589, 14841459, 9672816, 9499302, 20299021, 9659614, 13632743
9949948, 14220725, 8882576, 7612454, 7111619, 9711859, 9714832, 12780098
13561951, 14665116, 11066597, 16703112, 19231857, 17721717, 9713537
14459552, 19458377, 13737773, 13737775, 16212405, 18096714, 16338983
14390396, 10249537, 19006849, 7115910, 8354642, 7602341, 14076510
12565867, 15987029, 16462834, 18641419, 11693109, 14023636, 9024850
8394351, 8224558, 17082365, 14149782, 9109487, 14841558, 9171933
10173237, 16817117, 10068982, 10306945, 8666117, 11725006, 10214450
14205448, 17082371, 9767674, 16306019, 9323583, 9726739, 16279211
8412426, 10326338, 10165083, 6651220, 9145204, 13554409, 11076894
19854436, 11893577, 17865671, 16746190, 14492313, 14492314, 11814891
14492315, 14492316, 16742123, 21048089, 16864562, 14546638, 12419258
16056270, 10010310, 18139709, 9689310, 9390484, 21048090, 21048091
9963497, 12551700, 16362358, 12551701, 17465584, 12551702, 12551703
12551704, 10076669, 12551705, 16270946, 12551706, 12551707, 6076890
9308296, 12551708, 14258925, 12880299, 17381900, 18641451, 17381901
17381902, 11790175, 12796518, 9772888, 8650138, 17056813, 14469008
12551710, 10092858, 7519406, 9821321, 8771916, 13349665, 7509714
10159846, 13257247, 18031728, 18641461, 16372203, 11792865, 19007266
19309466, 16309604, 16309605, 16309606, 18522511, 8966823, 11674645
17551414, 15877957, 15877958, 7026523, 15877959, 17716305, 13503598
18767250, 9150282, 9448311, 10327179, 14774730, 19153980, 9735237
9952230, 15877960, 15877961, 15877962, 15877963, 8660422, 18221700
18221701, 16279401, 14546673, 14105702, 14105703, 14105704, 13483152
14269955, 17285560, 12925532, 12748240, 9694101, 12862186, 12862187
14727319, 8211733, 9586877, 9548269, 6694396, 7710224, 9337325, 11856395
10157402, 15950541, 19699191, 6402302, 10327190, 10269717, 13015379
10017048, 8546356, 13561750, 8821114, 9770451, 9360157, 8488233, 10132870
4180770, 9532911, 7361418, 6157713, 9184754, 8544696, 17850678, 8277300
13343467, 16382448, 13791364, 12419392, 10208905, 20236416, 20236417
20236418, 20236419, 7450366, 8970313, 6690853, 6011045, 10162036, 10248542
9469117, 13359623, 9952270, 13343471, 9842573, 17381899, 12710774
20558005, 10324526, 9322219, 8636407, 12828105, 19289642, 13736501
9824435, 13736502, 18681879, 13736503, 13736504, 13736505, 13736506
9032322, 13736507, 14035825, 19769505, 11858315, 14040433, 13916709
12827745, 14038805, 19567242, 16721594, 13923855, 19567243, 8528171
9072105, 19567244, 11737047

RAC system comprising of multiple nodes
Local node = Node1
Remote node = Node2
--------------------------------------------------------------------------------
Opatch succeeded.


Four, upgrade the database data dictionary 1, the database started, the database has been started, no need to start the database, directly execute the script.

$ sqlplus/as SYSDBA

CD $ORACLE _home/rdbms/admin
Sqlplus/nolog
Sql> Connect/as SYSDBA
Sql> STARTUP
sql> @catbundle. SQL PSU Apply
sql> @utlrp. sql
Sql>


2. After execution we can find the PSU update information:

Set Line 150
Col Action_time for A30
Col ACTION for A10
Col NAMESPACE for A8
Col VERSION for A18
Col Bundle_series for A5
Col COMMENTS for A20
SELECT * from Dba_registry_history;

Action_time ACTION namespac VERSION ID Bundl COMMENTS
------------------------------ ---------- -------- ------------------ ---------- ----- --------------------
29-mar-16 04.15.04.729398 PM jvmpsu.sql SERVER 10.2.0.5.2OJVMBP 0 RAN Jvmpsu.sql
29-mar-16 04.15.52.723026 PM jvmpsu.sql SERVER 10.2.0.5.2OJVMBP 0 RAN Jvmpsu.sql
29-mar-16 04.24.14.043257 PM APPLY SERVER 10.2.0.5 PSU PSU 10.2.0.5.19

3 Rows selected.
Sql>

This article is from the "Koumm Linux Technology blog" blog, be sure to keep this source http://koumm.blog.51cto.com/703525/1762862

Oracle 10g R2 RAC Manual Patch psu (10.2.0.5.19)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.