Monday, 7 June 2010

adctrl utility for managing jobs in 11i and R12

AD Controller is a general maintenance utility you use to determine the status of AutoUpgrade, AD Administration, or AutoPatch workers and to control worker operation. AD Controller is run in its own window, not in the same window as AutoUpgrade, AD Administration, or AutoPatch.
The command to start AD Controller is adctrl. AD Controller prompts you for standard items such as the log file name and the AOL username and password.

$ adctrl

AD Controller Menu
---------------------------------------------------
1. Show worker status
2. Tell worker to restart a failed job
3. Tell worker to quit
4. Tell manager that a worker failed its job
5. Tell manager that a worker acknowledges quit
6. Restart a worker on the current machine
7. Exit

After you have entered the username and password the above menu will open for ADCTRL.

Here we have 7 options.

You can start, stop and monitor the workers. Lets monitor status of workers with option 1:

Enter your choice [1] :

Worker Code Context Filename Status
------ -------- ----------------- -------------------------- --------------
1 Run Generic R120 BOMFMCPY.pll Running
2 Run Generic R120 BOMFMMDE.pll Running
3 Run Generic R120 BOMFMOPR.pll Running
4 Run Generic R120 BOMFMREV.pll Running


Logfiile location of adworker.
Depending on the number of workers from adpatch options, that much adworker???.log will create at
$APPL_TOP/admin/ORACLE_SID/log

Example:

$ cd $APPL_TOP/admin/VIS/log

For each adworker process, a log file is generated that shows activity and errors if any. Lets examine one of these log files:
$ cat adworker001.log
************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Tue May 20 2010 21:45:23

APPL_TOP is set to /u01/apps/apps_st/appl

Worker id = 1
Started by: adpatch

NLS_LANG value from the environment is : AMERICAN_AMERICA.UTF8
NLS_LANG value for this AD utility run is : AMERICAN_AMERICA.UTF8

Connecting to SYSTEM......Connected successfully.

Already asked for the ORACLE username and password
of Application Object Library.
(The given username/password was: APPLSYS/*****)

Connecting to APPLSYS......Connected successfully.

The status of various features in this run of AD Worker is:

Feature Active? APPLTOP Data model Flags
------------------------------ ------- --------
CHECKFILE Yes 1 1 Y N N Y N Y
PREREQ Yes 6 6 Y N N Y N Y
CONCURRENT_SESSIONS No 2 2 Y Y N Y Y N
PATCH_TIMING Yes 2 2 Y N N Y N Y
PATCH_HIST_IN_DB Yes 6 6 Y N N Y N Y
SCHEMA_SWAP Yes 1 1 Y N N Y Y Y
JAVA_WORKER Yes 1 1 Y N N Y N Y
CODELEVEL Yes 1 1 Y N N Y N Y
Reading product information from file...

For troubleshooting adpatch issues and errors, need to understand the log location of this adworkers.

Cheers!

Related Posts by Categories



No comments: