OFM相关故障的说明_Tomcat, WebLogic及J2EE讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Tomcat, WebLogic及J2EE讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3422 | 回复: 0   主题: OFM相关故障的说明        下一篇 
yanghui
注册用户
等级:上尉
经验:584
发帖:92
精华:0
注册:2011-12-13
状态:离线
发送短消息息给yanghui 加好友    发送短消息息给yanghui 发消息
发表于: IP:您无权察看 2011-12-13 9:15:21 | [全部帖] [楼主帖] 楼主

How to apply interim patches and the functionality of opatch on windows
PURPOSE
Instructions on how to use OPATCH when applying interim patches on Windows Platform
SCOPE & APPLICATION
This document is mostly applying to the use of OPATCH on Windows.
RELATED DOCUMENTS
Note: 189489.1 Oracle9i Data Server Interim Patch Installation
Requirements before installing an interim patch with OPATCH
-----------------------------------------------------------
1. The Interim Patch Installer, Opatch can only be used with Data Server
Interim patches for Oracle9i Release 2 (version 9.2) or greater
2. You must have located the patch via a Bug Database entry
and have the exact symptoms described in the bug entry.
3. Your system configuration (Oracle Server version and patch
level, OS Version) must exactly match those in the bug
database entry - You must have NO OTHER PATCHES installed on
your Oracle Server since the latest patch set (or base release
x.y.z if you have no patch sets installed).
4. To apply the patch, make sure ORACLE_HOME is set to the correct Oracle
Home which needs to be patched.
5. Stop all oracle services and other applications that use Oracle Client.
This may include Webservers if any, that load Oracle client in the
mid tier.
6. OPatch is a perl-based utility which uses Java Application Programming
Interfaces. OPatch was written based on perl 5.6, and while it can
successfully run with earlier versions, perl 5.6 is recommended.
If you do not currently have Perl on your system, please use one of the
following methods to obtain it:
a)Perl is included in the Oracle9i Release 2 (9.2.0.1) CD distribution,
under APACHE. If you performed a 'Typical' installation of the Enterprise
Server, perl was automatically installed under the Apache directory.
If you have not performed a Typical installation, perl may be added by
running the installer and selecting HTTP Server under the 'Custom'
installation.
b)Download a script from MetaLink to install perl from the Oracle Server CD.
This script can be downloaded from MetaLink as Patch:6880880.
7. Always take a backup of the database and the ORACLE_HOME as well as
the Oracle Inventory before applying any patch.
Installing the Interim Patch
----------------------------
1. Download and unzip the patch that you are going to install and place it
in a directory. For example C:\patchnumber
2. Always run the latest version of opatch despite that a version of opatch
may be shipped with the interim patch. The latest version of opatch can
be found under http://metalink.oracle.com
Navigate to patches and choose new patch search and patch number 2617419
3. Install the patch by navigating to the OPatch directory and apply the
patch with the the following command:
Example:
D:\>OPatch\opatch apply
4. You can rerun the script if the initial run is interrupted. However, a
partially installed interim patch cannot be removed - the patch process
must finish successfully first.
Functions within Opatch
-----------------------
If you type opatch -h you will get a helplist over commands that can be used in
opatch.
Here are some of them :
opatch apply
-- Used to apply a patch
opatch apply -force
--Used to apply patch even if there is a conflict due to previous applied
interim patch. This will deinstall the previous one and install this one.
opatch lsinventory
--Used to list the inventory for a particular $ORACLE_HOME or display all
installations that can be found.
opatch rollback
-- Used to deinstall a oneoff patch. The patch id and the patch_dir must always
be supplied.
Ex. opatch rollback -id 3554678 -ph d:\3554678
Opatch version Used to provide the version of the opatch utility.
If applying -report to any command everything will be printed on screen without
executing the actions
To every command there is a number of arguments that can be used. To see the
arguments issue the command -help along with the command to display the options.
Ex. opatch apply –help


如何申请中间补丁和opatch 在windows系统下的功能

目的

介绍在windows平台上申请中间补丁时如何使用opatch

应用范围

该文档通常是运用在windows平台上opatch 的使用

相关文档

Note: 189489.1 Oracle9i Data Server Interim Patch Installation


在安装中间补丁之前的一些要求:

1.中间补丁安装包Opatch 只能和数据服务器的中间补丁一起使用

2.必须通过调试数据库入口来定位补丁,在调试入口中有准确的症状

3.系统配置必须和调试数据库入口中的配置相匹配--在最新补丁设置后oracle服务器没有其他补丁

4.申请补丁时,确保ORACLE_HOME在正确的Oracle Home中设置

5.停止所有的oracle服务器和在客户端使用的其他应用程序,如果是在mid tier下载的客户端可能包括web服务器

6.OPatch是基于perl的实用程序,使用java应用程序设计接口。perl在perl5.6的基础上书写的,能够成功的和一些早期的版本运行,推荐使用perl5.6

如果系统上没有perl,请使用下面的方法来获取:

a)Oracle9i包括perl,如果执行的是典型安装,则perl会自动安装在Apache 目录下。如果没有执行典型安装,则perl可能在运行安装包和常规安装下选择HTTP服务器的时候被添加上

b|)从MetaLink下载一个脚本来安装perl。该脚本能够以补丁6880880从MetaLink里下载

7.在申请补丁前要经常备份数据库、ORACLE_HOME和内存

安装中间补丁

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

1.下载补丁并解压,将它放置在一个目录下,例如 C:\patchnumber

2.总是运行最新版本的opatch,不管它是否可能会装载中间补丁。最新版本opatch能在 http://metalink.oracle.com里找到

浏览新的补丁并且搜索补丁2617419

3.通过浏览opatch目录来安装补丁,用下面的指令申请补丁:

例如:

D:\>OPatch\opatch apply


4.如果最初的运行中断的话,返回到脚本。部分中间补丁的安装不能被移除--补丁流程必须首先成功完成

opatch中得功能

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

如果将opatch的类型定义为-h,则会生成一个帮助列表,能够在opatch中使用

opatch apply
-- 用来申请补丁
opatch apply -force
--用来申请补丁,即使由于之前申请中间补丁会产生冲突。将之前的补丁反装置然后在安装现在的补丁
opatch lsinventory
--用来列出一个特殊$ORACLE_HOME的内存,或者陈列所有能够找到的安装目录
opatch rollback
-- 用来反装置一个临时补丁。必须经常提供补丁id和目录
Ex. opatch rollback -id 3554678 -ph d:\3554678
Opatch version
--用来提供opatch使用程序的版本


控制任何事情的申请报告将不执行任何动作,答应在屏幕上

对于每一个指令,有很多论证可以使用。为了看到论证问题,指令可以帮助指令显示选项

Ex. opatch apply -help




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论