Sie sind auf Seite 1von 9

1.difference bwtween autoconfig and cfg cloning?

There is lot of difference between Autoconfig & Rapid Clone. Earlier dba's used to use
Autoconfig to clone Oracle Apps 11i Instance and still in background Rapid Clone
executes Autoconfig .

what's is Autoconfig ?
Autoconfig is utility to configure Oracle Applications 11i using a file based configuration
repository also called as context file or XML file.

So basic difference between Autoconfig & Rapid clone is these are two utilities one for
configuring Oracle Applications 11i & second one to clone Apps 11i Instance using first Utility .

2.what happen when adpreclone is run?


1) When you run adpreclone.pl, it (essentially) does an "alter
database backup controlfile to trace" and stores the information from
that in a file within ${ORACLE_HOME}/appsutil. This represents all of
the datafiles in the database at that particular time.

2) You then take your database backup for the clone.

3) When you run adcfgclone.pl on the dbTier, it uses the information


from #1 above to try to generate a new controlfile.

(or)
When you run this commnad adpreclone.pl dbTier . This will run in two steps Techstack
and database.

Techstack:
It will create following directories in the ORACLE_HOME/appsutil/clone
Jlib, db, data where “Jlib” relates to libraries “db” will contain the techstack information,
“data” will contain the information related to datafiles and required for cloning.
Creates driver files at ORACLE_HOME/appsutil/driver/instconf.drv

Converts inventory from binary to xml, the xml file is located at


$ORACLE_HOME/appsutil/clone/context/db/Sid_context.xml

Prepare database for cloning:


This includes creating datbase control file script and datafile location information file at
$ORACLE_HOME/appsutil/template
adcrdbclone.sql, dbfinfo.lst
Generates database creation driver file at ORACLE_HOME/appsutil/clone/data/driver
data.drv

Copy JDBC Libraries at ORACLE_HOME/appsutil/clone/jlib/classes12.jar and appsoui

When Running adpreclone appsTier

This will create stage directory at $COMMON_TOP/clone. This also run in two steps.

Techstack:
Creates template files for
Oracle_iAS_Home/appsutil/template
Oracle_806_Home/appsutil/template

Creates Techstack driver files for


IAS_ORACLE_HOME/appsutil/driver/instconf.drv
806_ORACLE_HOME/appsutil/driver/instconf.drv

APPL_TOP preparation:
-It will create application top driver file$COMMON_TOP/clone/appl/driver/appl.drv
-Copy JDBC libraries$COMMON_TOP/clone/jlib/classes111.zip

Now Shutdown all the services of Application and database for Copy the file System to
target location

Configuring the target system


Once it is done . Run as below adcfclone.pl for apps Tier and dbTier.

On database side:
cd $ORACLE_HOME/appsutils/clone/binperl adcfgclone.pl dbTier pwd=apps
This will use the templates and driver files those were created while running
adpreclone.pl on source system and has been copied to target system.

Following scripts are run by adcfgclone.pl dbTier for configuring techstack

adchkutl.sh — This will check the system for ld, ar, cc, and make versions.
adclonectx.pl — This will clone the context file. This will ceate a new context file as per
the details of this instance.
runInstallConfigDriver — located in $Oracle_Home/appsutil/driver/instconf.drv
Relinking $Oracle_Home/appsutil/install/adlnkoh.sh — This will relink ORACLE_HOME
For data on database side, following scripts are run
Driver file $Oracle_Home/appsutil/clone/context/data/driver/data.drv
Create database adcrdb.zip
Autoconfig is run
Control file creation adcrdbclone.sql

On Application Side:
COMMON_TOP/clone/bin/perl adcfgclone.pl appsTier pwd=apps
Following scripts are run by adcfgclone.pl
Creates context file for target adclonectx.pl

Run driver files


$ORACLE_HOME/appsutil/driver/instconf.drv
$IAS_ORACLE_HOME/appsutil/driver/instconf.drv

Relinking of Oracle
Home$ORACLE_HOME/bin/adlnk806.sh$IAS_ORACLE_HOME/bin/adlnkiAS.sh
At the end it will run the driver file $COMMON_TOP/clone/appl/driver/appl.drv and then
runs autoconfig.

3.how to use distributed AD during PATCHING?


Distributed AD is a parallel processing feature that can reduce downtime by efficiently
utilizing all the available resources on a shared application file system. AD
Administration and AutoPatch run on the primary node and direct workers running on
that node and other nodes in the system. The AD Controller utility controls and monitors
the actions of the workers that you specify. For complete information, see Distributing
Processing Tasks in Oracle Applications Maintenance Procedures (11i and R12) and
Oracle Applications Patching Procedures (R12).

(OR)
1. How do you Apply a application patch? -> Using adpatch 2. Complete Usage of
adpatch? 1. download the patch in three ways.
a) Using OAM-Open Internet Exploreer->Select Oracle Application Manager-> Navigate
to Patch Wizard -> Select Download Patches -> Give the patch number(more than one
patch give patch numbers separated by comma-> Select option download only->Select
langauge and Platform-> Give date and time-> submit ok Note: Before doing this Your
oracle apps should be configured with metalink credentials and proxy settings

b) If your unix system is configured with metalink then goto your applmgr account and
issue following command
1.ftp updates.oracle.com
2.Give metalink username and password
3.After connecting, cd patch number
4. ls -ltr
5. get patchnumber.zip(select compatiable to OS)
c) Third way is connect to metalink.oracle.com.

1. After logging into metalink with your username and password


2. Goto Quickfind->Select patch numer-> Give patch number->Patch will be displayed-
>Select os type->Select download
3. ftp this patch to your unix environment
2. Apply the patch?

1. unzip downloaded patch using unzip


eg: unzip p6241811_11i_GENERIC.zip
2. Patch directory will be unzip with patch number.
3. Goto that directory read readme.txt completely.
4. Make sure that Middle tier should be down, Oracle apps is in maintainance mode and
database and listener is UP
5. Note down invalid objects count before patching
6. Goto patch Directory and type adpatch
7. It will ask you some inputs from you like, is this your appl_top,common_top, logfile
name,sytem pwd, apps pwd, patch directory location, u driver name etc. Provide
everything
2. During Patch What needs to be done?

1. Goto $APPL_TOP/admin/SID/log
2. tail -f patchnumber.log(Monitor this file in another session)
3. tail -f patchnumber.lgi(Monitor this file in another session)
4. TOP comand in another session for CPU Usage
3. Adcontroller during patching?

1. During patching if worker fails, restart failed worker using adctrl(You wil find the option
when u enter into adctrl)
2. If again worker fails, Goto $APPL_TOP/admin/SID/log/workernumber.log
3. Check for the error, fix it restart the worker using adctrl
4. If you the issue was not fixed, If oracle recommends if it can e ignorable, skip the
worker using adctrl with hidden option 8 and give the worker number
4. Log files during patching?
1. patchnumber.log ($APPL_TOP/admin/SID/LOG/patchnumber.log)
2. patchnumber.lgi($APPL_TOP/admin/SID/LOG/patchnumber.lgi)
3. adworker.log($APPL_TOP/admin/SID/LOG/adworker001.log)
4. l.req($APPL_TOP/admin/SID/LOG/l1248097.req)
5. adrelink.log($APPL_TOP/admin/SID/LOG/adrelink.log)
6. adrelink.lsv($APPL_TOP/admin/SID/LOG/adrelink.lsv)
7.autoconfig.log($APPL_TOP/admin/SID/LOG/autoconfig_3307.log)
5. useful tables for patching?

1. ad_applied_patches->T know patches applied


2. ad_bugs->ugs info
3. fnd_installed_processes
4. ad_deferred_jobs
5. fnd_product_installations(patch level)
6. To know patch Info?

1. You can know whether particular patch is applied or not using ad_applied_patches or
ad_bugs
2. Using OAM->Patch wizard-> Give patch numer
3. To know mini pack patchest level, family pack patchest level and patch numbers by
executing script called patchsets.sh(It has to be downloaded from metalink
7. Reduce patch time?

1. using defaults file


2. Different adpatch options you can get these options by typing adpatch
help=y(noautoconfig,nocompiledb,hotpatch,novalidate,nocompilejsp,nocopyportion,nod
atabaseportion,nogenerateportion etc)
3. By merging patches into single file
4. Distributed AD if your appl_top is shared
5. Staged APPL_TOP while in production env
8. Usage of Admerging?

1. You can merge number of patches into single patch


2. create two directories like eg: merge_source and merged_dest
3. Copy all patches directories to merge_source
4. admrgpch -s merge_source -d merged_dest -logfile logfile.log
5. merged patch will be generated into merged_dest directory and driver name wil be
u_merged.drv
8. Usage of Adsplice?

1. Download splice patch, and unzip it


2. Read the readme.txt perfect
3. As per read me, copy following three files to $APPL_TOP/admin
izuprod.txt
izuterr.txt
newprods.txt
4. open newprods.txt using vi and modify the file by giving correct tablespace names
available in your environment
5. run adsplice in appl_top/admin directory

4.locations of concurrent requests logfile?


If you try to start CM using adcmctl.sh or adstrtall.sh script & you encounter problem in
starting CM then check for log files. All information related to why Concurrent Manager
not coming up is recorder in log file at $APPLCSF/$APPLLOG with default name as
$SID_$DD ( where DD is date on which you started Concurrent Manager ). This
Concurrent Manager naming convention will be listed in file adcmctl.sh file (Concurrent
Manager startup file). If $APPLCSF is not set then you can look for this file in
$FND_TOP$APPLLOG

5.how to restore autoconfig?


Restoring the previous configuration

Now we run OAM AutoConfig to restore the Applications Context.

Step 1 :Log on to the Oracle Application Manager (OAM) & click site map.You will be
able to log on but some services will be down.
Step 2: Click AutoConfig from the list of System Configuration features in the
Administration tab.
Step 3 : Click the Show History button for the application tier context file to access the
Context File History page.
Step 4 :Click the Show Differences from Current Configuration button to see the
recently updated parameters & Select Restore Previous Value for the Web Port and
Discoverer Port parameters.
Step 5 :Save & respond the tabs. Log out of OAM.
Step 6 :Shut down all services:
$ cd $COMMON_TOP/admin/scripts/<context_name>
$ adstpall.sh APPS/<APPS password>
Step 7 :Run the AutoConfig script, adautocfg.sh & Respond to the prompts.
Step 8 : View the log file and check for any errors.
Step 9 : Restart all services:
$ $COMMON_TOP/admin/scripts/<context_name>/adstrtal.sh APPS/<APPS password>
Step 10 :Log on to the Oracle Application Manager (OAM)
If the status of some services appears to be down, click the Refresh icon to update the
status.

6.how to apply database patch in opatch?


What is the OPatch?
The OPatch is the Oracle Interim Patching Tool. You need to install the "OPatch" utility.
OPatch is used for patching
Oracle software. If you have an older version of opatch it is strongly recommended to
back it up.
The OPatch tool is Oracle's only supported method of installing Interim patches.

How can I install the OPatch utility?


To install this patch simply extract the most uptodate OPatch zip file. Unzip it the file
directly under the ORACLE_HOME. Then check the version by typing "opatch version"
command.

How to run the OPatch utility?


OPatch tool works with Perl. You need to have JDK to be in your Oracle Home.

How to invoke the OPatch process?


Go to the patch directory that you want to apply the patch.
For example:
# cd 5225799
# opatch apply -the run the opatch too

7.different file system of R12?


http://www.scribd.com/doc/14099384/Difference-Between-11i-and-12i-V1

8. how to configure workflow notification mailler?

If you configure through Mailer configuration wizard through OAM, Autoconfig overwrites its configuration.
Because By default Autoconfig Context file contains smtp server name as Application Tier Hostname/Concurrent
Manager Node Hostname. When you run autoconfig, it overwrites the smtp server hostname what you have
configured through OAM with the value in Autoconfig Context File. I feel the following is the simple procedure to
follow, which worked for me.(1) Take backup of existing Autoconfig Context Filelogin as APPLMGR User

$cd $APPL_TOP/admin

$cp <SID>_<hostname>.xml <SID>_<hostname>.xml.orig

(2) Edit the Autoconfig Context file with SMTP server name
$vi <SID>_<hostname>.xml

search for smtp and give smtp server details

s_smtphost ==> SMTP Server Host Name

s_smtpdomainname ==> SMTP Server Domain Name

Note: Above Same procedure can also be done by editing above context variables

in OAM > Site Map > System Configuration> Applications Autoconfig Context File

(3) Run the autoconfig

$cd $COMMON_TOP/admin/scripts/<SID>_<hostname>

$sh adautocfg.sh

(4) Bounce the Apache Service

$cd $COMMON_TOP/admin/scripts/<SID>_<hostname>

$sh adapcctl.sh stop apps/<apps password>

$sh adapcctl.sh start apps/<apps passwod>

(4) Start the following workflow Concurrent Managers

If the following Concurrent Managers are not activated or started before, activate and srart them

(a) Workflow Agent Listener Service

This is the seeded Workflow Notification Mailer Service component belongs to a container named Workflow Agent
Listener Service

(b) Workflow Mailer Service

This is also seeded agent listener service component required for Workflow Mailer Processing

The above Services can be started using

(1) Using OAM > Site MAP > Wofkflow > Home > Service Components

or

(2) Using System Administrator Responsibility > Concurrent > Manager > Administer
That’s the procedure I did it and configured successfully workflow Notification Mailer.

Reference:

(1) Oracle Workflow Adminstrator’s Guide

http://download.oracle.com/docs/cd/B25284_01/current/acrobat/115wfag.pdf

(2) Oracle Workflow User’s Guide

http://download.oracle.com/docs/cd/B25284_01/current/acrobat/115wfug.pdf

(3) Note:313954.1 Autoconfig Overwriting The SMTP Server Name For The Java M

Das könnte Ihnen auch gefallen