SlideShare una empresa de Scribd logo
1 de 7
Descargar para leer sin conexión
AD Control
Manages parallel workers in AD Administration and AutoPatch. 

The administrative tool used to manage patch workers is AD
Control, or adctrl. Frequently workers will fail or hang, which
will require the Oracle Applications DBA to interface with
adctrl.

AD Control menu options will vary depending upon the AD
patch version applied to the instance. When logged in as the
application owner on the Admin Node, execute adctrl to
display the menu options shown in




AD Controller Menu

To execute an adctrl menu option, simply type the menu
option and press Enter. If options 2–6 are chosen, either
specify the number of the worker that requires action, or
press Enter for the action to be executed for
all workers.
The “Skip Worker” menu option is a hidden adctrl menu
option. If a worker needs to be skipped, start adctrl, enter 8,
and then enter the worker number. Only use this option if
advised by Oracle Support.

  Oracle Aplication DBA Portal Tip:With AD.I, adctrl may be
used in noninteractive mode. Using adctrl noninteractively
can expedite patch problem resolution.

Resolving AD Patch Worker Failure
If a worker has failed, the adpatch session will normally
display a failedworker
message. The status of the worker may also be determined
using adctrl. If a worker has failed, the worker error can be
obtained by viewing the worker log file. Once the worker
issue has been resolved, use adctrl to
restart the worker.

If a worker has failed, and it is determined that the step the
worker was
trying to execute may be skipped, the hidden option 8 of the
adctrl menu, “Skip Worker,” may be used to skip the
worker. It is only advisable to do this
if the step is not critical to the environment being patched.

  Oracle Aplication DBA Portal Tip:It may be necessary to
research MetaLink or open an SR to resolve issues with
failed workers. For additional information on MetaLink and
the SR process, see
The following are common worker failures that will be seen
by the Applications DBA during patching. The error
messages will be displayed by the adpatch session or in the
worker log file:
Error message: ORA-01013: user requested cancel of
current operation Resolution to error: If this error occurs,
simply use adctrl to restart the worker on the current
machine.

Error message: Patch not applied successfully, adpatch did
not cleanup its restart files (*rf9).

Resolution to error: If this error occurs, execute the
following as the
instance owner:
$cd $APPL_TOP/admin/$CONTEXT_NAME
$mv restart restart_old
$mkdir restart

After cleaning up the restart files, you may then restart the
adpatch session using adpatch.
Then, use adctrl to restart the failed worker.

Error message: No error message is displayed; rather the
worker log file states that the worker is complete, yet adctrl
indicates that the worker is still running.

Resolution to error: This patching problem occurs when the
worker is complete, but did not update patching tables
correctly to notify the adpatch session that it has finished. In
this scenario, the adpatch session is still waiting for the
finish return code from the worker. When this occurs, use
adctrl to fail the worker, then restart the worker.

  Oracle Aplication DBA Portal Tip:Any form, library, or
report that fails to generate during the patch process can be
regenerated manually after all patching and post-patching
steps have completed. If the object still fails to compile,
open an SR.
SOLUTION 1 : ADCTRL workers remain assigned

The error meant some AD patch was applied wrongly. The adpatch
code is not compatible with the adworker code. Hence the restart file
discrepancy in the worker log files. The solution as it worked out
through SR was:


1. Stop the adpatch session through ADCTRL and take copies of the
current versions of adpatch and adworker executables.
2. Relink AD executables:
A. Run %APPL_TOP%relinkenv.cmd
B. In the command window that results, change directory to %APPL_TOP% and run
apps.sh to set up all required environment variables.
. ./apps.sh
C. Run command
sh adrelink.sh force=y "ad all"
3. Recreate grants
$ cd $ORACLE_HOMEappsutilsql
$ sqlplus /nolog
SQL> connect / as sysdba
SQL> @adgrants_nt.sql APPLSYS
4. Run adpatch and resume the previous session.


SOLUTION 2 : ADCTRL workers remain assigned
You can also try to edit
"d:oracle<SID>appladmin<SID>restartadpinit.rf9" and replce 'Prompt
for mailto' with 'Apply mode Setting' in line 4. Try applying the patch
with restart=yes. if it still fails comment out line 4.
Note, Oracle Support does not support editing restart files.
Error: The FND_INSTALL_PROCESSES table does not exist.

I run adctrl to show the worker status I get the below error;

Is that a problem?How can solve this?What does that mean?

Enter your choice [1] : 1

Error: The FND_INSTALL_PROCESSES table does not exist.
This table is used for communication with the
worker processes, and if it does not exist, it
means that the workers are not running,because
the ad utility has not started them yet.

The FND_INSTALL_PROCESSES table is created at the beginning of an adpatch
run and dropped after the patch completes successfully. adctrl is a utility that
monitors and fixes patch issues. If no patch is currently running, then this is a
normal error that adctrl will return.

If the patch was applied successfully on the TEST instance (check the
patch log file and query AD_BUGS table to verify), then you can
proceed and apply it on your PROD instance. Again, if you still want
to monitor the workers status please do so while the patch is
running.
Regarding ICXDLTMP.sql, this program is used to clean out
ICX tables, and it should be regularly run to avoid huge
tables. If this program is run on a regular basis this job
should not run more than a few minutes.




Undocumented Option 8:

This will allow you to continue processing a job and kill the adworker that failed.

Back at the main adctrl menu choose option 8:

Enter your choice [1] : 8

Enter the worker number(s)/range(s) or 'all' for all workers,
or press [Return] to go back to the menu :

To select the "Skip worker" option, type the number 8 and
press Return.

This can be useful in testing a patch and you need to let the patch or job run to
completion.

ADWORKER LOGFILES for R12 EBS

How to find the log files for these workers? It is confusing to the newbie.

cd $APPL_TOP/admin/{ORACLE_SID}
adctrl interactive=n defaultsfile=$ 
TOP/admin/prod/ctrldefs.txt 
menu_option=SHOW_STATUS 


$ adctrl interactive=n defaults_file=$APPL_TOP/admin/prod/ctrldefs.txt 
logfile=adctr.log menu_option=SHOW_STATUS


ACKNOWLEDGE_QUIT Tell manager that a worker acknowledges quit

INFORM_FAILURE Tell manager that a worker failed its job

RESTART_JOB Tell worker to restart a failed job

SHOW_STATUS Show worker status

SHUTDOWN_WORKER Tell worker to quit

START_WORKER Restart a worker on the current machine 

Más contenido relacionado

Similar a Ad control

R12 d49656 gc10-apps dba 15
R12 d49656 gc10-apps dba 15R12 d49656 gc10-apps dba 15
R12 d49656 gc10-apps dba 15zeesniper
 
Error management
Error managementError management
Error managementdaniil3
 
R12 d49656 gc10-apps dba 09
R12 d49656 gc10-apps dba 09R12 d49656 gc10-apps dba 09
R12 d49656 gc10-apps dba 09zeesniper
 
maXbox Starter 43 Work with Code Metrics ISO Standard
maXbox Starter 43 Work with Code Metrics ISO StandardmaXbox Starter 43 Work with Code Metrics ISO Standard
maXbox Starter 43 Work with Code Metrics ISO StandardMax Kleiner
 
R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22zeesniper
 
C programming session 07
C programming session 07C programming session 07
C programming session 07Dushmanta Nath
 
People code events 1
People code events 1People code events 1
People code events 1Samarth Arora
 
HPC and HPGPU Cluster Tutorial
HPC and HPGPU Cluster TutorialHPC and HPGPU Cluster Tutorial
HPC and HPGPU Cluster TutorialDirk Hähnel
 
C programming session 10
C programming session 10C programming session 10
C programming session 10Vivek Singh
 
Performance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authenticationPerformance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authenticationJay Jha
 
Introduction to Redux (for Angular and React devs)
Introduction to Redux (for Angular and React devs)Introduction to Redux (for Angular and React devs)
Introduction to Redux (for Angular and React devs)Fabio Biondi
 
London SF Developers: Custom Lightning Component Error Handling
London SF Developers: Custom Lightning Component Error HandlingLondon SF Developers: Custom Lightning Component Error Handling
London SF Developers: Custom Lightning Component Error HandlingRichard Clark
 
Diving into VS 2015 Day5
Diving into VS 2015 Day5Diving into VS 2015 Day5
Diving into VS 2015 Day5Akhil Mittal
 
Building of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingBuilding of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingPVS-Studio
 

Similar a Ad control (20)

R12 d49656 gc10-apps dba 15
R12 d49656 gc10-apps dba 15R12 d49656 gc10-apps dba 15
R12 d49656 gc10-apps dba 15
 
Error management
Error managementError management
Error management
 
R12 d49656 gc10-apps dba 09
R12 d49656 gc10-apps dba 09R12 d49656 gc10-apps dba 09
R12 d49656 gc10-apps dba 09
 
Matlab 1 level_1
Matlab 1 level_1Matlab 1 level_1
Matlab 1 level_1
 
maXbox Starter 43 Work with Code Metrics ISO Standard
maXbox Starter 43 Work with Code Metrics ISO StandardmaXbox Starter 43 Work with Code Metrics ISO Standard
maXbox Starter 43 Work with Code Metrics ISO Standard
 
R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22
 
C programming session 07
C programming session 07C programming session 07
C programming session 07
 
Ppt lesson 06
Ppt lesson 06Ppt lesson 06
Ppt lesson 06
 
Ppt lesson 06
Ppt lesson 06Ppt lesson 06
Ppt lesson 06
 
Ppt lesson 06
Ppt lesson 06Ppt lesson 06
Ppt lesson 06
 
People code events 1
People code events 1People code events 1
People code events 1
 
HPC and HPGPU Cluster Tutorial
HPC and HPGPU Cluster TutorialHPC and HPGPU Cluster Tutorial
HPC and HPGPU Cluster Tutorial
 
C programming session 10
C programming session 10C programming session 10
C programming session 10
 
Matopt
MatoptMatopt
Matopt
 
Instant DBMS Homework Help
Instant DBMS Homework HelpInstant DBMS Homework Help
Instant DBMS Homework Help
 
Performance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authenticationPerformance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authentication
 
Introduction to Redux (for Angular and React devs)
Introduction to Redux (for Angular and React devs)Introduction to Redux (for Angular and React devs)
Introduction to Redux (for Angular and React devs)
 
London SF Developers: Custom Lightning Component Error Handling
London SF Developers: Custom Lightning Component Error HandlingLondon SF Developers: Custom Lightning Component Error Handling
London SF Developers: Custom Lightning Component Error Handling
 
Diving into VS 2015 Day5
Diving into VS 2015 Day5Diving into VS 2015 Day5
Diving into VS 2015 Day5
 
Building of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingBuilding of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code logging
 

Más de Deepti Singh

Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneDeepti Singh
 
File character set converter
File character set converterFile character set converter
File character set converterDeepti Singh
 
File character set converter
File character set converterFile character set converter
File character set converterDeepti Singh
 
Change oracle apps password
Change oracle apps passwordChange oracle apps password
Change oracle apps passwordDeepti Singh
 
Apps tech bootcamp_descriptions
Apps tech bootcamp_descriptionsApps tech bootcamp_descriptions
Apps tech bootcamp_descriptionsDeepti Singh
 
Appsdba interview question
Appsdba interview questionAppsdba interview question
Appsdba interview questionDeepti Singh
 
Ad job timing report
Ad job timing reportAd job timing report
Ad job timing reportDeepti Singh
 
Ad job timing report
Ad job timing reportAd job timing report
Ad job timing reportDeepti Singh
 
Ad file identification report
Ad file identification reportAd file identification report
Ad file identification reportDeepti Singh
 
Ad file identification report
Ad file identification reportAd file identification report
Ad file identification reportDeepti Singh
 
Ad configuration report
Ad configuration reportAd configuration report
Ad configuration reportDeepti Singh
 
121adpp patching procedures
121adpp patching procedures121adpp patching procedures
121adpp patching proceduresDeepti Singh
 
Ad configuration report
Ad configuration reportAd configuration report
Ad configuration reportDeepti Singh
 
121admp maintenance procedures
121admp maintenance procedures121admp maintenance procedures
121admp maintenance proceduresDeepti Singh
 

Más de Deepti Singh (19)

Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 
File character set converter
File character set converterFile character set converter
File character set converter
 
File character set converter
File character set converterFile character set converter
File character set converter
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
Change oracle apps password
Change oracle apps passwordChange oracle apps password
Change oracle apps password
 
Apps tech bootcamp_descriptions
Apps tech bootcamp_descriptionsApps tech bootcamp_descriptions
Apps tech bootcamp_descriptions
 
Appsdba interview question
Appsdba interview questionAppsdba interview question
Appsdba interview question
 
Adsplice
AdspliceAdsplice
Adsplice
 
Adpatch options
Adpatch optionsAdpatch options
Adpatch options
 
Adpatch options
Adpatch optionsAdpatch options
Adpatch options
 
Ad job timing report
Ad job timing reportAd job timing report
Ad job timing report
 
Ad job timing report
Ad job timing reportAd job timing report
Ad job timing report
 
Ad file identification report
Ad file identification reportAd file identification report
Ad file identification report
 
Ad file identification report
Ad file identification reportAd file identification report
Ad file identification report
 
Ad configuration report
Ad configuration reportAd configuration report
Ad configuration report
 
121adpp patching procedures
121adpp patching procedures121adpp patching procedures
121adpp patching procedures
 
Ad configuration report
Ad configuration reportAd configuration report
Ad configuration report
 
121admp maintenance procedures
121admp maintenance procedures121admp maintenance procedures
121admp maintenance procedures
 
11iadutil
11iadutil11iadutil
11iadutil
 

Ad control

  • 1. AD Control Manages parallel workers in AD Administration and AutoPatch.  The administrative tool used to manage patch workers is AD Control, or adctrl. Frequently workers will fail or hang, which will require the Oracle Applications DBA to interface with adctrl. AD Control menu options will vary depending upon the AD patch version applied to the instance. When logged in as the application owner on the Admin Node, execute adctrl to display the menu options shown in AD Controller Menu To execute an adctrl menu option, simply type the menu option and press Enter. If options 2–6 are chosen, either specify the number of the worker that requires action, or press Enter for the action to be executed for all workers. The “Skip Worker” menu option is a hidden adctrl menu option. If a worker needs to be skipped, start adctrl, enter 8, and then enter the worker number. Only use this option if advised by Oracle Support. Oracle Aplication DBA Portal Tip:With AD.I, adctrl may be used in noninteractive mode. Using adctrl noninteractively can expedite patch problem resolution. Resolving AD Patch Worker Failure If a worker has failed, the adpatch session will normally display a failedworker
  • 2. message. The status of the worker may also be determined using adctrl. If a worker has failed, the worker error can be obtained by viewing the worker log file. Once the worker issue has been resolved, use adctrl to restart the worker. If a worker has failed, and it is determined that the step the worker was trying to execute may be skipped, the hidden option 8 of the adctrl menu, “Skip Worker,” may be used to skip the worker. It is only advisable to do this if the step is not critical to the environment being patched. Oracle Aplication DBA Portal Tip:It may be necessary to research MetaLink or open an SR to resolve issues with failed workers. For additional information on MetaLink and the SR process, see The following are common worker failures that will be seen by the Applications DBA during patching. The error messages will be displayed by the adpatch session or in the worker log file: Error message: ORA-01013: user requested cancel of current operation Resolution to error: If this error occurs, simply use adctrl to restart the worker on the current machine. Error message: Patch not applied successfully, adpatch did not cleanup its restart files (*rf9). Resolution to error: If this error occurs, execute the following as the instance owner: $cd $APPL_TOP/admin/$CONTEXT_NAME $mv restart restart_old $mkdir restart After cleaning up the restart files, you may then restart the adpatch session using adpatch.
  • 3. Then, use adctrl to restart the failed worker. Error message: No error message is displayed; rather the worker log file states that the worker is complete, yet adctrl indicates that the worker is still running. Resolution to error: This patching problem occurs when the worker is complete, but did not update patching tables correctly to notify the adpatch session that it has finished. In this scenario, the adpatch session is still waiting for the finish return code from the worker. When this occurs, use adctrl to fail the worker, then restart the worker. Oracle Aplication DBA Portal Tip:Any form, library, or report that fails to generate during the patch process can be regenerated manually after all patching and post-patching steps have completed. If the object still fails to compile, open an SR.
  • 4. SOLUTION 1 : ADCTRL workers remain assigned The error meant some AD patch was applied wrongly. The adpatch code is not compatible with the adworker code. Hence the restart file discrepancy in the worker log files. The solution as it worked out through SR was: 1. Stop the adpatch session through ADCTRL and take copies of the current versions of adpatch and adworker executables. 2. Relink AD executables: A. Run %APPL_TOP%relinkenv.cmd B. In the command window that results, change directory to %APPL_TOP% and run apps.sh to set up all required environment variables. . ./apps.sh C. Run command sh adrelink.sh force=y "ad all" 3. Recreate grants $ cd $ORACLE_HOMEappsutilsql $ sqlplus /nolog SQL> connect / as sysdba SQL> @adgrants_nt.sql APPLSYS 4. Run adpatch and resume the previous session. SOLUTION 2 : ADCTRL workers remain assigned You can also try to edit "d:oracle<SID>appladmin<SID>restartadpinit.rf9" and replce 'Prompt for mailto' with 'Apply mode Setting' in line 4. Try applying the patch with restart=yes. if it still fails comment out line 4. Note, Oracle Support does not support editing restart files.
  • 5. Error: The FND_INSTALL_PROCESSES table does not exist. I run adctrl to show the worker status I get the below error; Is that a problem?How can solve this?What does that mean? Enter your choice [1] : 1 Error: The FND_INSTALL_PROCESSES table does not exist. This table is used for communication with the worker processes, and if it does not exist, it means that the workers are not running,because the ad utility has not started them yet. The FND_INSTALL_PROCESSES table is created at the beginning of an adpatch run and dropped after the patch completes successfully. adctrl is a utility that monitors and fixes patch issues. If no patch is currently running, then this is a normal error that adctrl will return. If the patch was applied successfully on the TEST instance (check the patch log file and query AD_BUGS table to verify), then you can proceed and apply it on your PROD instance. Again, if you still want to monitor the workers status please do so while the patch is running.
  • 6. Regarding ICXDLTMP.sql, this program is used to clean out ICX tables, and it should be regularly run to avoid huge tables. If this program is run on a regular basis this job should not run more than a few minutes. Undocumented Option 8: This will allow you to continue processing a job and kill the adworker that failed. Back at the main adctrl menu choose option 8: Enter your choice [1] : 8 Enter the worker number(s)/range(s) or 'all' for all workers, or press [Return] to go back to the menu : To select the "Skip worker" option, type the number 8 and press Return. This can be useful in testing a patch and you need to let the patch or job run to completion. ADWORKER LOGFILES for R12 EBS How to find the log files for these workers? It is confusing to the newbie. cd $APPL_TOP/admin/{ORACLE_SID}
  • 7. adctrl interactive=n defaultsfile=$  TOP/admin/prod/ctrldefs.txt  menu_option=SHOW_STATUS  $ adctrl interactive=n defaults_file=$APPL_TOP/admin/prod/ctrldefs.txt logfile=adctr.log menu_option=SHOW_STATUS ACKNOWLEDGE_QUIT Tell manager that a worker acknowledges quit INFORM_FAILURE Tell manager that a worker failed its job RESTART_JOB Tell worker to restart a failed job SHOW_STATUS Show worker status SHUTDOWN_WORKER Tell worker to quit START_WORKER Restart a worker on the current machine