Sunday 25 May 2014

Post Clone Steps In Oracle Applications

Post Clone Steps In Oracle Applications

The cloning process has traditionally been a manual process performed by DBAs. This process involves copying over the database files – preferably using RMAN DB duplicate, the tech stack, and the application tier to the non-production servers, converting them to DEV or TEST, and then performing a number of post clone steps such as disabling workflow emails from going to end users, scrambling financial information, updating the clone date and the instance name within the apps heading, editing the custom top, changing passwords, and others.  Depending upon the size and configuration the cloning process can take from 12 hours to 48 hours on average.

The number of post clone steps can get to be quite numerous and even with the best of documented procedures; one or two steps can easily be missed.

Note:-  the following is a list of steps in one particular cloning environment, It may vary based on environment.


1. Once the cloned database is renamed, add all the temp datafiles to the TEMP tablespace.

2. All key passwords need to be updated from their production values to the appropriate values for the DEV environment. (ie: sys,system, sysadmin,apps)

3. Custom database directories need to be re-created with the correct paths for the DEV server.

4. Specific Profile options need to be re-defined – like the apps heading naming the instance and the date stamp of the clone.

5. End-dating specific users so that only the desired developers have access to the instance.

6. Removing/scrambling specific private HR data.

7. Nulling out specific email addresses to prevent workflow from emailing end-users from the DEV instance.

8. Putting a hold on all regularly scheduled production concurrent requests in the DEV instance.

9. Updating all profile option values, swapping out the prod instance name for the DEV instance name. Additional updates for the server names also run.

10. Updates for all custom environment code paths and settings.


11. Updates for any and all printer setting changes.

Retrieve complete INST_TOP in Oracle Applications when lost

When complete INST_TOP is lost in Oracle Applications R12 we can retrieve it using below steps.


As context file also resides in INST_TOP first we have to regenerate Context file using adclonectx.pl under $COMMON_TOP/clone/bin.

1)First create necessary directory structure  for context file

$ mkdir -p /u01/applmgr/inst/Context_Name/appl/admin

2)Move your directory to $COMMON_TOP/clone/bin


$ cd $COMMON_TOP/clone/bin

3)Run adclonectx.pl script to regenerate contextfile

$ perl adclonectx.pl retrieve

Respond to Prompts as required

4)Check your Context file.

5)Now run adconfig.pl under $AD_TOP/bin

$ cd $AD_TOP/bin
$ perl adconfig.pl contextfile <Full path of contextfile>

6)Check whether all files are created under INST_TOP.



Note:- When we run adclonectx.pl script which resides under $AD_TOP/bin, this script may through an error "Please ensure that Classpath is set properly"

Monday 19 May 2014

Differences between EXP,IMP and EXPDP,IMPDP

Differences between EXP,IMP and EXPDP,IMPDP

1)Impdp/Expdp has self-tuning utilities. Tuning parameters that were used in original Export and Import, such as BUFFER and RECORDLENGTH, are neither required nor supported by Data Pump Export and Import.

2)Data Pump represent metadata in the dump file set as XML documents rather than as DDL commands.
3)Impdp/Expdp use parallel execution rather than a single stream of execution, for improved performance.

4)In Data Pump expdp full=y and then impdp schemas=prod is same as of expdp schemas=prod and then impdp full=y where in original export/import does not always exhibit this behavior.

5)Expdp/Impdp access files on the server rather than on the client.

6)Expdp/Impdp operate on a group of files called a dump file set rather than on a single sequential dump file.

7)Sequential media, such as tapes and pipes, are not supported in oracle data pump.But in original export/import we could directly compress the dump by using pipes.

8)The Data Pump method for moving data between different database versions is different than the method used by original Export/Import.

9)When you are importing data into an existing table using either APPEND or TRUNCATE, if any row violates an active constraint, the load is discontinued and no data is loaded. This is different from original Import, which logs any rows that are in violation and continues with the load.

10)Expdp/Impdp consume more undo tablespace than original Export and Import.

11)If a table has compression enabled, Data Pump Import attempts to compress the data being loaded. Whereas, the original Import utility loaded data in such a way that if a even table had compression enabled, the data was not compressed upon import.

12)Data Pump supports character set conversion for both direct path and external tables. Most of the restrictions that exist for character set conversions in the original Import utility do not apply to Data Pump. The one case in which character set conversions are not supported under the Data Pump is when using transportable tablespaces.


13)There is no option to merge extents when you re-create tables. In original Import, this was provided by the COMPRESS parameter. Instead, extents are reallocated according to storage parameters for the target table.Di

Friday 9 May 2014

Integrating Oracle E Business Suite with Oracle Access manager(OAM) and Oracle Identity Management(OID)

Integrating Oracle E Business Suite with Oracle Access manager(OAM) and Oracle Identity Management(OID)


Requirements:- 2 local machines

Machine 1:-ebs.learnapps.com                                                 Machine 2:-fmw.learnapps.com


Steps to Integrate EBS with OAM and OID(Only high Level Steps are Given)

1)Install Oracle E Business Suite R12.1.3 in one machine(Here in our case  ebs.learnapps.com)

Note:-Before Installing perform all prerequisite tasks specific to linux bit version. For example setting kernel parameters, installing required rpms...

2)Install Oracle Database Software in another machine (Here in our case fmw.learnapps.com) and Create Database using DBCA.
Here I used database name as OIDDB.

Note:-Before Installing perform all prerequisite tasks specific to linux bit version. For example setting kernel parameters, installing required rpms...

3)Create Listener for OIDDB database and name listener as OIDDB.

4)Download latest RCU(Repository Creation Utility) and copy it to server 2(fmw.learnapps.com) 
Here I have downloaded Oracle Fusion Middleware 11g RCU which comes via patch 16471709.

5)Unzip RCU patch and Invoke RCU and load required schemas to OIDDB database (fmw.learnapps.com)
While selecting schemas make sure you have only selected ODS schema. Dont select any other schema.

6)Create one user in server 2 and Install Weblogic Server in server2(fmw.learnapps.com)

7)Install OID software in server 2(fmw.learnapps.com) 

8)Configure OID software to run OID on managed server.

9)Integrate OID software with EBS using following syntax.
$FND_TOP/bin/txkrun.pl -script=SetSSOReg -registerinstance=yes
Execute this  command in server1(ebs.learnapps.com)

10)Create one more user in server 2 and Install Weblogic Server in server2(fmw.learnapps.com)

11)Install OAM software in server 2(fmw.learnapps.com) 

12)Configure OAM software to run OAM on managed server.


Not yet completed......