Documente Academic
Documente Profesional
Documente Cultură
[applmgr@r12 appl_ebs]$
[applmgr@r12 appl_ebs]$
[applmgr@r12 appl_ebs]$
[applmgr@r12 appl_ebs]$
[applmgr@r12 appl_ebs]$ adop -examples
Applications DBA Online Patching Tool (adop)
adop phase=finalize,cutover,cleanup
Example:
adop phase=prepare workers=8
input_file=<file_name>
As well as being entered directly on the command line,
adop parameters
can be specified in a text file, with one
<parameter>=<value>
on each line of the file. Command line parameters
override input file
parameters.
Example - Input File text "empty_cycle.txt" for empty
patching cycle:
phase=prepare,finalize,cutover,cleanup
workers=4
loglevel=statement
loglevel=(statement|procedure|event|warning|error|
unexpected)
[default: event]
Controls the level of diagnostic log detail displayed on
the
console output. Each log message is tagged with a level:
1) statement - internal debugging messages
2) procedure - internal procedure begin/end
messages
3) event - significant processing action
4) warning - important user message or possible
problem
5) error - a patching action has failed, processing
continues
6) unexpected - a critical action has failed, processing
halted
Setting loglevel will display messages at that level and
higher.
Example:
Apply Parameters:
patches=<patch#>[,<patch#>...]
patches=<patch_directory>:<driver>[,<patch_directory>:<dr
iver>...]
This parameter specifies a comma-separated list of
patches to be
applied. Patches can be specified either as the patch
number or
by the patch directory and driver file. All patches are
expected
to be in the $PATCH_TOP directory on all tiers. Patches
are applied
serially unless the merge=yes parameter is specified.
Example - Apply two patches in series:
adop phase=apply
patches=1012464,10124646_AR:u10124646.drv
apply_mode=(online|downtime|hotpatch) [default:
online]
Use online mode to apply a patch to the patch edition
during an
online patching cycle; downtime mode to apply a patch
to the
run edition when application services are down; and
hotpatch
mode to apply a patch to the run edition when
application
services are up. Only use hotpatch mode when explicitly
directed by documentation.
options=<patch_option>[,<patch_option>...]
Options can be specified in a comma-separated list to
control
advanced features when a patch is applied. These
options are normally
not needed unless specified by documentation or
support. Note
that these options can be prefixed with "no", e.g.
"nocheckfile",
to disable the behavior, and for some options "no" is the
default.
Finalize Parameters:
finalize_mode=(full|quick) [default: quick]
Quick mode will provide the shortest execution time, by
skipping non-essential actions.
Full mode performs additional actions such as gathering
statistics that may improve performance after cutover.
Cutover Parameters:
adop phase=fs_clone
adop phase=prepare
adop phase=apply patches=123456
### serious unfixable error reported
adop phase=abort
adop phase=cleanup cleanup_mode=full
adop phase=fs_clone
adop phase=prepare
adop phase=actualize_all
adop phase=finalize
adop phase=cutover
adop phase=cleanup cleanup_mode=full
[applmgr@r12 adop]$ cd 6
[applmgr@r12 6]$ ls -lrt
total 32
drwxr-xr-x. 3 applmgr dba 4096 Mar 27 09:29
20170327_092820
drwxr-xr-x. 2 applmgr dba 4096 Mar 27 09:59
20170327_095948
drwxr-xr-x. 2 applmgr dba 4096 Mar 30 09:43
20170330_094300
drwxr-xr-x. 2 applmgr dba 4096 Mar 30 09:43
20170330_094323
drwxr-xr-x. 3 applmgr dba 4096 Mar 30 09:51
20170330_095056
drwxr-xr-x. 2 applmgr dba 4096 Mar 30 09:51
20170330_095144
drwxr-xr-x. 2 applmgr dba 4096 Mar 30 09:53
20170330_095258
drwxr-xr-x. 2 applmgr dba 4096 Mar 30 10:05
20170330_100457
/
u01/appl_ebs/fs_ne/EBSapps/log/adop/6/20170330_0950
56/prepare/r12/TXK_SYNC_update/log
EDITION_NAME
------------------------------------------------------------------------------
--
PARENT_EDITION_NAME
------------------------------------------------------------------------------
--
USA
---
ORA$BASE
YES
V_20170330_0954
ORA$BASE
YES
EDITION_NAME
------------------------------------------------------------------------------
--
PARENT_EDITION_NAME
------------------------------------------------------------------------------
--
USA
SQL> select * from adop_Valid_nodes;
NODE_NAME
------------------------------------------------------------------------------
--
CONTEXT_NAME
--------------------------------------------------
ZD_EDITION_NAME ZD_SYNC
------------------------------ ------------------------------
r12
VIS_r12
SET1 INSERTED
OBJECT_NAME OBJECT_TYPE
OWNER
-------------------------------------------------- -----------------------
----------
AD_ADOP_SESSION_PATCHES# VIEW
APPLSYS
AD_ADOP_SESSION_PATCHES TABLE
APPLSYS
AD_ADOP_SESSION_ID_SEQ SEQUENCE
APPLSYS
AD_ADOP_SESSIONS_LOGS# VIEW
APPLSYS
AD_ADOP_SESSIONS_LOGS TABLE
APPLSYS
AD_ADOP_SESSIONS# VIEW
APPLSYS
AD_ADOP_SESSIONS TABLE
APPLSYS
ADOP_VALID_NODES_U1 INDEX
APPLSYS
ADOP_VALID_NODES# VIEW
APPLSYS
ADOP_VALID_NODES TABLE
APPLSYS
SSP_SHARED_ADOPTION_RESULTS PACKAGE
BODY APPS
SSP_SHARED_ADOPTION_RESULTS PACKAGE
APPS
SSP_SHARED_ADOPTION_PAY PACKAGE BODY
APPS
SSP_SHARED_ADOPTION_PAY PACKAGE
APPS
AD_ZD_ADOP PACKAGE BODY
APPS
AD_ZD_ADOP PACKAGE APPS
AD_ADOP_SESSION_PATCHES SYNONYM
APPS
AD_ADOP_SESSION_ID_SEQ SYNONYM
APPS
AD_ADOP_SESSIONS_LOGS SYNONYM
APPS
AD_ADOP_SESSIONS SYNONYM
APPS
ADOP_VALID_NODES= FUNCTION
APPS
ADOP_VALID_NODES+ TRIGGER
APPS
ADOP_VALID_NODES SYNONYM
APPS
23 rows selected.
SQL> desc applsys.AD_ADOP_SESSION_PATCHES#
Name Null? Type
------------------------------------------------------------------------------
----- -------- --------------------------------------------------------
ADOP_SESSION_ID NOT
NULL NUMBER
BUG_NUMBER NOT
NULL VARCHAR2(30)
PATCHRUN_ID
NUMBER
STATUS NOT NULL
VARCHAR2(1)
APPLIED_FILE_SYSTEM_BASE
VARCHAR2(512)
PATCH_FILE_SYSTEM_BASE
VARCHAR2(512)
ADPATCH_OPTIONS
VARCHAR2(4000)
APPLTOP_ID
NUMBER
NODE_NAME
VARCHAR2(256)
AUTOCONFIG_STATUS
VARCHAR2(1)
START_DATE
DATE
END_DATE
DATE
CLONE_STATUS
VARCHAR2(30)
PATCH_TOP
VARCHAR2(250)
DRIVER_FILE_NAME
VARCHAR2(50)
SESSION_TYPE
VARCHAR2(20)
SQL> desc ad_adop_session_patches
Name Null? Type
------------------------------------------------------------------------------
----- -------- --------------------------------------------------------
ADOP_SESSION_ID NOT
NULL NUMBER
BUG_NUMBER NOT
NULL VARCHAR2(30)
PATCHRUN_ID
NUMBER
STATUS NOT NULL
VARCHAR2(1)
APPLIED_FILE_SYSTEM_BASE
VARCHAR2(512)
PATCH_FILE_SYSTEM_BASE
VARCHAR2(512)
ADPATCH_OPTIONS
VARCHAR2(4000)
APPLTOP_ID
NUMBER
NODE_NAME
VARCHAR2(256)
AUTOCONFIG_STATUS
VARCHAR2(1)
START_DATE
DATE
END_DATE
DATE
CLONE_STATUS
VARCHAR2(30)
PATCH_TOP
VARCHAR2(250)
DRIVER_FILE_NAME
VARCHAR2(50)
SESSION_TYPE
VARCHAR2(20)
NODE_NAME
------------------------------------------------------------------------------
------------------------------------------------------------------------
CONTEXT_NAME
--------------------------------------------------
r12
VIS_r12