How to update the opatch tool version in Oracle

Source: Internet
Author: User
Tags install perl metalink


1. opatch tool description

The opatch tool was mentioned in the previous Oracle patch system blog:

Introduction to Oracle patch system and opatch tools

Http://blog.csdn.net/tianlesoftware/article/details/5809526

 

Since version 9.2, Oracle has implemented the opatch patch installation tool. opatch uses a system data structure called inventory (shared with Oui strictly) to centrally manage all installed patches. The opatch command is used to install and uninstall individual patches, conflict Detection is automatically completed by opatch during installation. a list command is provided to conveniently obtain information about the patches that have been installed.

In version 10g (10.1 and 10.2), opatch is automatically installed as a standard tool during installation. (Install it in $ ORACLE_HOME/opatch .) For version 9.2, You need to download opatch from Metalink. whether or not opatch is installed in the system or not, You should download the latest version of opatch from Metalink before use. unfortunately, due to system implementation problems, the opatch used in 10.2 is incompatible with the opatch used in earlier versions (10.1 and 9.2) and cannot be mixed. This must be noted.

Opatch is a script program written in Perl (Java API is also used ). The Perl version used is version 5.6. Although it can also be run in versions earlier than version 5.6, install Perl of version 5.6 or later as much as possible. the good news for DBA is that if the HTTP server is retained when you install version 9.2, Perl will be automatically installed under $ ORACLE_HOME/Apache. (10 Gb will automatically install and configure Perl and opatch .)

 

Because the differences between opatch versions also bring inconvenience. For example, when we use the opatch tool to upgrade the database to 10.2.0.5.x, we must require that the opatch version be 10.2.0.5 or later. When we upgrade the instance to 10.2.0.5, The opatch version is 10.2.0.4.9. we cannot meet our requirements. In this case, you need to download a later version of opatch from MOS separately and update the opatch under ORACLE_HOME before you can continue the upgrade.

 

SQL> select * from V $ version whererownum = 1;

Banner

----------------------------------------------------------------

Oracle Database 10g enterprise editionrelease 10.2.0.5.0-Prod

 

DAVE:/u01/APP/Oracle/product/10.2.0/db_1/opatch>./opatch version

Invoking opatch 10.2.0.4.9

 

Opatch version: 10.2.0.4.9

 

Opatch succeeded.

 

Ii. Update opatch tool Methods

The method for updating the opatch tool is simple. You only need to download the corresponding patch from the mos and overwrite the opatch directory under ORACLE_HOME. Before overwriting, back up the data.

Patch no of the opatch tool 10.2.0.3.4 is: 4898608

Patch no of the opatch tool 10.2.0.5 is: 6880880. For the version of the opatch patch, the related upgrade documents will be described in detail.

 

DAVE:/u01/APP/Oracle/product/10.2.0/db_1> MV opatch. Bak

 

DAVE:/u01/APP/Oracle/product/10.2.0/db_1> CP/mnt/oraclesoftware/opatch_10.2_p6880880/p6880880_102000_linux.zip $ ORACLE_HOME

DAVE:/u01/APP/Oracle/product/10.2.0/db_1> ls

Assistants DBS jlib ODBC Perl sqlnet. Log

Bin demo jre odbc plsql sqlplus

CCR diagnostics ldap olap precomp srvm

CDATA has lib opatch. Bak racg sysman

Cfgtoollogs HS log opmn rdbms uix

Clone install MD oracore relnotes wwg

Config install. Platform mesg orainst. Loc root. Sh xdk

CRS inventory MGW ord root. Sh. Old

CSS JavaVM network Oui root. Sh. old.1

Ctx jdbc nls owm slax

Dave_anqing JDK Solaris p6880880_102000_linux.zip sqlj

 

DAVE:/u01/APP/Oracle/product/10.2.0/db_1> unzip p6880880_102000_linux.zip

Archive: p6880880_102000_linux.zip

Creating: opatch/

Creating: opatch/OCM/

Extracting: opatch/OCM/ocm.zip

Creating: opatch/OCM/lib/

Inflating: opatch/OCM/lib/osdt_jce.jar

Inflating: opatch/OCM/lib/osdt_core3.jar

Inflating: opatch/OCM/lib/emocmclnt-14.jar

Inflating: opatch/OCM/lib/emocmutl. Jar

Creating: opatch/OCM/bin/

Inflating: opatch/OCM/bin/emocmrsp

Inflating: opatch/OCM/ocm_platforms.txt

Creating: opatch/CRS/

Creating: opatch/CRS/log/

Inflating: opatch/CRS/patch112.pl

Inflating: opatch/CRS/crsdelete. PM

Inflating: opatch/CRS/crspatch. PM

Inflating: opatch/CRS/s_crsconfig_defs

Inflating: opatch/CRS/crsconfig_lib.pm

Inflating: opatch/CRS/messaging ss. PM

Inflating: opatch/CRS/auto_patch.pl

Inflating: opatch/CRS/s_crsconfig_lib.pm

Inflating: opatch/opatch

Creating: opatch/opatchprereqs/

Creating: opatch/opatchprereqs/opatch/

Inflating: opatch/opatchprereqs/opatch/runtime_prereq.xml

Inflating: opatch/opatchprereqs/opatch/opatch_prereq.xml

Inflating: opatch/opatchprereqs/opatch/rulemap. xml

Inflating: opatch/opatchprereqs/prerequisite. Properties

Creating: opatch/opatchprereqs/OUI/

Inflating: opatch/opatchprereqs/OUI/knowledgesrc. xml

Inflating: opatch/opatch. ini

Inflating: opatch/emdpatch. pl

Inflating: opatch/opatch. pl

Creating: opatch/jlib/

Inflating: opatch/jlib/opatchprereq. Jar

Inflating: opatch/jlib/opatchactions. Jar

Inflating: opatch/jlib/opatchutil. Jar

Inflating: opatch/jlib/opatchfmw. Jar

Inflating: opatch/jlib/opatchext. Jar

Inflating: opatch/jlib/opatch. Jar

Inflating: opatch/opatch. bat

Creating: opatch/docs/

Inflating: opatch/docs/prereq_users_guide.txt

Inflating: opatch/docs/faq

Inflating: opatch/docs/users_guide.txt

Inflating: opatch/readme.txt

DAVE:/u01/APP/Oracle/product/10.2.0/db_1> ll opatch

Total 80

Drwxr-XR-x 3 Oracle oinstall 4096 Nov 3 2010 CRS

Drwxr-XR-x 2 Oracle oinstall 4096 Nov 3 2010 docs

-RW-r -- 1 Oracle oinstall 23695 Nov 3 2010emdpatch. pl

Drwxr-XR-x 2 Oracle oinstall 4096 Nov 3 2010 jlib

Drwxr-XR-x 4 Oracle oinstall 4096 Nov 3 2010 OCM

-R-X -- X --- 1 Oracle oinstall 13252 Nov 3 2010 opatch

-Rwxr-XR-x 1 Oracle oinstall 8085 Nov 3 2010 opatch. bat

-RW-r -- 1 Oracle oinstall 49 Nov 3 2010 opatch. ini

-RW-r -- 1 Oracle oinstall 2576 Nov 3 2010 opatch. pl

Drwxr-XR-x 4 Oracle oinstall 4096 Nov 3 2010 opatchprereqs

-RW-r -- 1 Oracle oinstall 2417 Nov 3 2010 readme.txt

 

Verify the opatch tool Version:

DAVE:/u01/APP/Oracle/product/10.2.0/db_1> Cd opatch

DAVE:/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

 

Opatch succeeded.

 

 

When the opatch version comes up, you can perform other operations.

 

 

 

 

 

 

Bytes -------------------------------------------------------------------------------------------------------

Blog: http://blog.csdn.net/tianlesoftware

WEAVER: http://weibo.com/tianlesoftware

Email: dvd.dba@gmail.com

Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)

Super DBA group: 63306533 (full); dba4 group: 83829929 (full) dba5 group: 142216823 (full)

Dba6 group: 158654907 (full) dba7 group: 69087192 (full) dba8 group: 172855474

DBA super group 2: 151508914 dba9 group: 102954821 chat group: 40132017 (full)

-- Add the group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, the application is rejected.

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.