Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle 12.1.0.1 GI+DATABASE play PSU

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

12.1.0.1 call Patch Set Update 12.1.0.1.9 (Oct2015)

Machine: two OLE6.5 with 12.1.0.1 RAC installed

Preparation: download p6880880_121010_Linux-x86-64 (OPATCH toolkit), p21551666_121010_Linux-x86-64 (PSU for GI and DATABASE)

Implementation process:

First upgrade the OPATCH tool of GI software

Su-grid

-- my p6880880_121010_Linux-x86-64 is in the / u01/app/opatch/ directory

Cd / u01/app/opatch/

Unzip p6880880_121010_Linux-x86-64

[grid@rac1 opatch] $which crs_stat

/ u01/app/grid/12.1.0.1/bin/crs_stat

-- back up the original OPatch tool

Su-

Cd / u01/app/grid/12.1.0.1/

Mv OPatch/ OPatch_bak

-copy the extracted OPatch to / u01/app/grid/12.1.0.1/ for opatch upgrade

Mv / u01/app/opatch/OPatch/ / u01/app/grid/12.1.0.1

Su-grid

[grid@rac1 OPatch] $. / opatch version

OPatch Version: 12.1.0.1.9

OPatch succeeded.

-- opatch upgrade of database software

Su-oracle

Cd / u01/app/opatch/

-- using the same ORACLE user to extract the OPatch tool

Unzip p6880880_121010_Linux-x86-64

[oracle@rac1 opatch] $which sqlplus

/ u01/app/oracle/12.1.0/db_1/bin/sqlplus

Mv / u01/app/oracle/12.1.0/db_1/OPatch / u01/app/oracle/12.1.0/db_1/OPatch_bak

Mv / u01/app/opatch/OPatch/ / u01/app/oracle/12.1.0/db_1

Cd / u01/app/oracle/12.1.0/db_1/OPatch

[oracle@rac1 OPatch] $. / opatch version

OPatch Version: 12.1.0.1.9

OPatch succeeded.

The above upgrade OPatch tools are all carried out on two nodes.

Next, upgrade GI.

You can back up the GI software before upgrading

Su-

Crsctl stop crs

Then put the GI software tar

In fact, you can rollback even if the patch fails.

Cd / u01/app/grid/12.1.0.1/OPatch/ocm/bin/

[grid@rac1 bin] $chmod uplix emocmrsp

[grid@rac1 bin] $. / emocmrsp

OCM Installation Response Generator 10.3.7.0.0-Production

Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.

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

The OCM configuration response file (ocm.rsp) was successfully created.

[grid@rac1 bin] $

[grid@rac1 bin] $

[grid@rac1 bin] $ls-l

Total 16

-rwxr-x--- 1 grid oinstall 9063 Nov 27 2009 emocmrsp

-rw-r--r-- 1 grid oinstall 621 Oct 28 11:26 ocm.rsp

[oracle@rac1 OPatch] $cd / u01/app/oracle/12.1.0/db_1/OPatch

[oracle@rac1 bin] $ls-l

Total 12

-rwxr-x--- 1 oracle oinstall 9063 Nov 27 2009 emocmrsp

[oracle@rac1 bin] $chmod uplix emocmrsp

[oracle@rac1 bin] $ls-l

Total 12

-rwxr-x--- 1 oracle oinstall 9063 Nov 27 2009 emocmrsp

[oracle@rac1 bin] $. / emocmrsp

OCM Installation Response Generator 10.3.7.0.0-Production

Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.

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

The OCM configuration response file (ocm.rsp) was successfully created.

-check the consistency of inventory information in each database.

/ u01/app/grid/12.1.0.1/OPatch/opatch lsinventory-detail-oh / u01/app/grid/12.1.0.1

/ u01/app/oracle/12.1.0/db_1/OPatch/opatch lsinventory-detail-oh / u01/app/oracle/12.1.0/db_1

/ u01/app/grid/12.1.0.1/OPatch/opatchauto apply / u01/app/patch/21551666-ocmrf / u01/app/grid/12.1.0.1/OPatch/ocm/bin/ocm.rsp

-- start upgrading GI and database (I play psu together with GI+DATABASE, or separately)

[root@rac1] # / u01/app/grid/12.1.0.2/OPatch/opatchauto apply / u01/app/patch/21551666-ocmrf / u01/app/grid/12.1.0.2/OPatch/ocm/bin/ocm.rsp

OPatch Automation Tool

Copyright (c) 2014, Oracle Corporation. All rights reserved.

OPatchauto Version: 12.1.0.1.9

OUI Version: 12.1.0.1.0

Running from: / u01/app/grid/12.1.0.2

Opatchauto log file: / u01/app/grid/12.1.0.2/cfgtoollogs/opatchauto/21551666/opatch_gi_2015-10-28 15-21-23_deploy.log

Parameter Validation: Successful

Configuration Validation: Successful

Patch Location: / u01/app/patch/21551666

Grid Infrastructure Patch (es): 17077442 17303297 21352619

DB Patch (es): 17077442 21352619

Patch Validation: Successful

Grid Infrastructure home:

/ u01/app/grid/12.1.0.2

DB home (s):

/ u01/app/oracle/12.1.0/db_1

Performing prepatch operations on CRS Home... Successful

Applying patch (es) to "/ u01/app/oracle/12.1.0/db_1"...

Patch "/ u01/app/patch/21551666/17077442" successfully applied to "/ u01/app/oracle/12.1.0/db_1".

Patch "/ u01/app/patch/21551666/21352619" successfully applied to "/ u01/app/oracle/12.1.0/db_1".

Applying patch (es) to "/ u01/app/grid/12.1.0.2"...

Patch "/ u01/app/patch/21551666/17077442" successfully applied to "/ u01/app/grid/12.1.0.2".

Patch "/ u01/app/patch/21551666/17303297" successfully applied to "/ u01/app/grid/12.1.0.2".

Patch "/ u01/app/patch/21551666/21352619" successfully applied to "/ u01/app/grid/12.1.0.2".

Performing postpatch operations on CRS Home... Successful

SQL changes, if any, are applied successfully on the following database (s): rac

Apply Summary:

Following patch (es) are successfully installed:

GI Home: / u01/app/grid/12.1.0.2: 17077442,17303297,21352619

DB Home: / u01/app/oracle/12.1.0/db_1: 17077442,21352619

Opatchauto succeeded.

-the above steps should be performed on both machines.

-- to apply the database after the upgrade, RAC only needs to run on one of the instances

Su-oracle

Cd $ORACLE_HOME/OPatch

. / datapatch-verbose

Cd $ORACLE_HOME/rdbms/admin

Sqlplus / as sysdba

SQL > @ utlrp.sql

Set line 200

Col COMMENTS for a20

Col ACTION_TIME for a30

SELECT * FROM dba_registry_history

ACTION_TIME ACTION NAMESPACE VERSION ID BUNDLE_SERIES COMMENTS

16-SEP-15 11.26.40.379388 AM APPLY SERVER 12.1.0.1 0 PSU Patchset 12.1.0.0.0

28-OCT-15 04.55.43.831149 PM APPLY SERVER 12.1.0.1 9 PSU PSU 12.1.0.1.9

28-OCT-15 04.55.47.057407 PM APPLY SERVER 12.1.0.1 9 PSU PSU 12.1.0.1.9

28-OCT-15 04.55.49.236190 PM APPLY SERVER 12.1.0.1 9 PSU PSU 12.1.0.1.9

28-OCT-15 04.55.50.409272 PM APPLY SERVER 12.1.0.1 9 PSU PSU 12.1.0.1.9

The result of the query is that the database has been patched.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report