Fusion Application(FA)补丁管理工具简介

Fusion Application(FA)补丁管理工具简介。

FapmgrFA的补丁管理器。

调用命令如下:

 

(UNIX) FA_ORACLE_HOME/lcm/ad/bin/fapmgr.shcommand [-options]

(Windows) FA_ORACLE_HOME\lcm\ad\bin\fapmgr.cmdcommand [-options]

Command 选项如下:

Command

描述

validate

校验补丁和当前的环境是不是兼容

apply

应用安装补丁

report

生成补丁应用情况的报告

retry

对上次安装失败的补丁进行重试

abort

结束一个已经失败的进程

forcefail

结束一个已经挂起的补丁应用进程。

 

使用帮助查看更多选项。

(UNIX) FA_ORACLE_HOME/lcm/ad/bin/fapmgr.shcommand -help

(Windows) FA_ORACLE_HOME\lcm\ad\bin\fapmgr.cmdcommand –help

 

FapmgrFA的补丁管理器支持两种方式,在线方式和离线方式。下面是在线方式的例子,在线方式就是在打补丁的时候不需要停止任何FA SERVERS

FA的补丁管理器进程读取一个叫做驱动程序的文件,然后确定将要进行的一系列任务。再派生出来一些worker进程来执行这些任务。管理器和这些worker通过数据库中的一个表来进行通信。管理器通过更新表中的数据来将任务分配给worker。每个worker进程也是通过检查表更新来取得将要执行的任务。当任务完成时,worder再更新表中的状态。我们可以在命令执行的时候来指定worker的数量,如下面的命令所示。

(UNIX) FA_ORACLE_HOME/lcm/ad/bin/fapmgr.shapply -patchtop path_to_unzipped_patch

-stoponerror -online -workers 10

 

(Windows) FA_ORACLE_HOME\lcm\ad\bin\fapmgr.cmdapply -patchtop path_to_unzipped_ patch \

-stoponerror -online -workers 10

命令选项:

选项

描述

patchtop

补丁解压的目录

patchingplan

补丁应用的计划

stoponerror

补丁失败就停止,修好问题可以再次执行命令

workers

指定workers的数量,不指定时系统会分配最优的数量。

online

在线方式应用补丁

logfile

指定log文件的位置,不指定放在默认的路径下面。FA_ORACLE_HOME/admin/FUSION/log

loglevel

指定日志文件的级别。

help

Displays help.

下面是一个补丁应用的例子:

 

 

 

/u01/APPLTOP/fusionapps/applications/lcm/ad/bin/fapmgr.shapply -online -stoponerror -patchingplan /fsnadmin/efops_p4_saas/erp/one-offs/erp_rel9.2-20150904_iehp/patches/65.50.1.---.---.APPS.10000000.UNIFIED_BUNDLE_20150904_iehp/FAPatchPlan.xml

 

 通过上面的命令可以应用补丁,补丁应用完成后可以使用下面的命令检查补丁的应用情况:

[oracle@slc04ttm tmp]$/u01/APPLTOP/fusionapps/applications/lcm/ad/bin/fapmgr.sh report -isapplied-patch 19882483,21535492  -reportwidthWIDE -outputfile /tmp/patchlist_201508.txt

 

Oracle Fusion Applications Patch Manager Version11.1.9.2.0

Copyright (c) 2009, 2013, Oracle and/or its affiliates.All rights reserved.

 

Archiving existing log files from[/u01/APPLTOP/instance/lcm/logs/11.1.9.2.0/FAPMGR] to[/u01/APPLTOP/instance/lcm/logs/11.1.9.2.0/FAPMGR/logarchive/REPORT-ISAPPLIED/20150901064928].

 

Started validating the OPatch version.

Completed validating the OPatch version.

 

Started validating the Database connection.

WLS ManagedService is not up running. Fall back to usesystem properties for configuration.

Completed validating the Database connection.

 

Report Name: Patch Status

Report for: FUSION [/u01/APPLTOP/fusionapps/applications]

 

Bug No. : 21535492:US

OUI Component : oracle.fusionapps.prj

Status : Applied

Patch No. : 21535492

Date Applied (mm-dd-yyyy hh:mm:ss) : 09-01-2015  06:04:09

 

Bug No. : 19882483:US

OUI Component : oracle.fusionapps.fscm

Status : Applied

Patch No. : 19882483

Date Applied (mm-dd-yyyy hh:mm:ss) : 04-06-2015  20:15:47

 

 

The report was generated on: 01-Sep-2015 06:51:28. Alltimestamps are in Coordinated Universal Time.

The report file is created at: /tmp/patchlist_201508.txt

All log files location                      :/u01/APPLTOP/instance/lcm/logs/11.1.9.2.0/FAPMGR

Oracle Fusion Applications Patch Manager log:/u01/APPLTOP/instance/lcm/logs/11.1.9.2.0/FAPMGR/FAPatchManager_report-isapplied_20150901065050.log

Log Summary                                  :/u01/APPLTOP/instance/lcm/logs/11.1.9.2.0/FAPMGR/logsummary_report-isapplied_20150901065050.html

Oracle Fusion Applications Patch Manager completedsuccessfully.

 

 

In the next run, the log files for this run will be movedfrom [/u01/APPLTOP/instance/lcm/logs/11.1.9.2.0/FAPMGR] to[/u01/APPLTOP/instance/lcm/logs/11.1.9.2.0/FAPMGR/logarchive/REPORT-ISAPPLIED/20150901065050].

 

[oracle@slc04ttm tmp]$

[oracle@slc04ttm tmp]$

 

猜你喜欢

转载自blog.csdn.net/henrybai/article/details/48222505