You are on page 1of 11

Build a new R12 environment

Provision Servers
See “Non_prod_filesystem_layout.xls”, “CX” and “NFS” tabs to get
 DB Server Name
 DB Server Filesystem layout
 Application Server Filesystem layout

See “Environment Plan v2.xls” to get


 Port pool

Update Apex
http://dba.diebold.com
Click on “DBAPW”
In the “Site Map” section on the right, click on “Add an Env”. Choose project = COE and enter the new
environment name in lower case
Click on “DBAPW”
In the “Site Map” section on the right, click on “Ebiz Hardware”
Click “Create” and enter all information about new environment
Add the following passwords for each environment
 alloracle
 apps
 <SID>mgr
 <SID>ora
 sysadmin
 system

Set environment for <SID>ora and <SID>mgr


For <SID>ora user
vi .profile
export HOSTNAME=`hostname`
export PS1='[$LOGNAME@$HOSTNAME:$PWD]
[${ORACLE_SID}${TWO_TASK}]-->'
export EXTENDED_HISTORY=ON
export EXINT="set ll=20000000"
alias sql='sqlplus "/ as sysdba"'
AIXTHREAD_SCOPE=S; export AIXTHREAD_SCOPE
export LDR_CNTRL=DATAPSIZE=64K@TEXTPSIZE=64K@STATSPACK=64K
. /mnt/ora<SID>/<SID>db/product/11.2.0.3/<SID>_`hostname -s`.env
alias <SID>='. /mnt/ora<SID>/<SID>db/product/11.2.0.3/<SID>_`hostname -s`.env'
For <SID>mgr
vi .bash_profile
export PATH
export HOSTNAME=`hostname -s`
export PS1='[$LOGNAME@$HOSTNAME:$PWD]
[${TWO_TASK}]-->'

. /mnt/ora<SID>/<SID>apps/apps/apps_st/appl/APPS<SID>_`hostname -s`.env

Setup inventory
For <SID>ora
vi /etc/oraInst.loc
inst_group=oinstall
inventory_loc=/mnt/ora<SID>/<SID>db/oraInventory

For <SID>mgr
vi /etc/oraInst.loc
inst_group=oinstall
inventory_loc=/home/<SID>mgr/oraInventory

Clone Oracle Home


Source will typically be gold or the current “event” environment like CRP(n), SIT, etc
There is no need to clone the Oracle Home unless the source or target has changed.
On the target:
mkdir -p /mnt/ora<SID>/<SID>db/product/11.2.0.3

On the source:
cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
perl adpreclone.pl dbTier
cd $ORACLE_HOME
rsync -rptlq -e ssh --progress --force *<target Unix user>@ <target
hostname>:/mnt/ora<SID>/<SID>db/product/11.2.0.3/

On the target:
mkdir ~/bin
cd ~/bin
ln -s /usr/bin/gcc linkxlC

export ORACLE_SID=<SID>
export ORACLE_HOME=/mnt/ora${ORACLE_SID}/${ORACLE_SID}db/product/11.2.0.3
export PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/lib/site_perl/5.10.0
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$ORACLE_HOME/OPatch:$PATH
cd $ORACLE_HOME/appsutil/clone/bin
perl adcfgclone.pl dbTechStack

Clone the Oracle Database


Use rman duplicate of active database.
Terminology within the rman duplicate commands:
Target – The production database or database you are going to clone from.
Auxiliary – The new database that you will clone to.

Pre steps on source


1. Create password file
2. Add tns entry for target. Test with tnsping
3. Spfile must be used

Pre steps on target


1. Create password file with same password as source
2. Add tns entry for source. Test with tnsping
3. Spfile must be used
*.db_file_name_convert='Source SID','Target SID'
*.log_file_name_convert='Source SID','Target SID'
4. startup nomount

RMAN Duplicate
Perform the steps below on the active database or the source
export run_date=`date +%d_%b_%Y_%H_%M`
rman log active_duplication_${run_date}.log
connect target sys/<sys password>
connect auxiliary sys/<sys password>@<New SID>
duplicate target database to <New SID> from active database;

On the new Database Server


sqlplus apps/<apps password>
exec fnd_conc_clone.setup_clean;
cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
./adautocfg.sh
<Enter source apps passwd>

Copy the E-Business Software (APPL_TOP, TECH_STACK and XXDBD_TOP


etc)
Steps on Source Application Server:
cd $INST_TOP/admin/scripts
perl adpreclone.pl appsTier

cd /mnt/ora${TWO_TASK}/${TWO_TASK}apps
rsync -rptlq -e ssh --progress --force --log-file=/tmp/rsync_apps_20121009.log apps/ <new Unix
user>@<new app Server>:/mnt/ora<SID>/<SID>apps/apps/

Clone the E-Business Software (APPL_TOP, etc) for a new env


cd /mnt/orapch12/pch12apps/apps/apps_st/comn/clone/bin
perl adcfgclone.pl appsTier
Target System Hostname (virtual or normal) [usncv501] :
Target System Domain Name : diebold.com
Target System Database SID : <new SID>
Target System Database Server Node [usncv501] : <New DB Server>
Target System Database Domain Name [diebold.com] :
Target System Base Directory : /mnt/ora<SID>/<SID>apps
Target System Tools ORACLE_HOME Directory [/mnt/orapch12/pch12apps/apps/tech_st/10.1.2] :
Target System Web ORACLE_HOME Directory [/mnt/orapch12/pch12apps/apps/tech_st/10.1.3] :
Target System APPL_TOP Directory [/mnt/orapch12/pch12apps/apps/apps_st/appl] :
Target System COMMON_TOP Directory [/mnt/orapch12/pch12apps/apps/apps_st/comn] :
Target System Instance Home Directory [/mnt/orapch12/pch12apps/inst] :
/mnt/ora<SID>/<SID>local/inst
Target System Root Service [enabled] :
Target System Web Entry Point Services [enabled] :
Target System Web Application Services [enabled] :
Target System Batch Processing Services [enabled] :
Target System Other Services [disabled] :
Do you want to preserve the Display [usncx219:0.0] (y/n) : n
Target System Display [usncv501:0.0] :

Clone the E-Business Software (APPL_TOP, etc) for existing env


cd /mnt/oraconv12/conv12apps/apps/apps_st/comn/clone/bin
perl adcfgclone.pl appsTier
/mnt/oraconv12/conv12local/inst/apps/conv12_usncx219/appl/admin/conv12_usncx219.xml

Change Passwords
Alter user system identified by <new system password>;
FNDCPASS apps/<old apps passwd> 0 Y system/<system password> SYSTEM APPLSYS <new apps
password>
FNDCPASS apps/<apps passwd> 0 Y system/<system password> ALLORACLE <new alloracle password>
FNDCPASS apps/<apps passwd> 0 Y system/<system password> USER SYSADMIN <new sysadmin
password>
FNDCPASS apps/<apps passwd> 0 Y system/<system password> USER TIDALORA <new sysadmin
password>
Post Clone Steps

Post Step 1:
On the Database Server
sqlplus apps/<apps password>
exec fnd_conc_clone.setup_clean;
cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
./adautocfg.sh

Post Step 2:
On each App Server if they are having a shared file system:
vi $CONTEXT_FILE
Change
s_applcsf = /mnt/orapch12/pch12share
s_applptmp = /mnt/orapch12/pch12share/applptmp
Run autoconfig
cd $ADMIN_SCRIPTS_HOME
./adautocfg.sh

Post Step 3:

Copy the custom file from backup location to the below locations:
cd $HOME/clone/backup/envfiles
cp custom<sid>.env $APPL_TOP/custom<sid>_<servername>.env
Make sure that you are copying it in the same way as it is referenced in the Apps Env file.

Post Step 4:

Copy the default.env file from the backup directory to $INST_TOP/ora/10.1.2/forms/server


cd $INST_TOP/ora/10.1.2/forms/server
Make sure that the default.env has all the custom entries present in it under this directory.
Relogin in a session to source all the environment now.

Post Step 5:

Make sure that the XXDBD top (i.e. XXDBDGR12_TOP in COE) has been copied from source instance.

Post Step 6:

Make sure that the $XXDBD_INTERFACE is pointing to correct directory.


The $XXDBD_INTERFACE should point to /mnt/ora<sid>/<sid>share/interface
Post Step 7:

In order for the Workflow View Diagram to work, please set the profile option "Server Timezone" to the
timezone of Database server at site level.
You can check the Timezone of the Database Server through date command.

Post Step 8:

Please perform the following step to make sure that the required members of the COE team can view
others workflow notifications:

Login to the target instance using sysadmin -> Click on System Administrator responsibility -> Click on
Workflow -> Administrator Workflow -> Administration
In the Workflow System Administrator box, please add Workflow Administrator Web (new)
responsibility.

Now make sure that Srinivas Buddhi and any other COE team member who requires to view others
notification have this responsibility assigned to them.

Post Step 9:

Please follow the attached document to configure workflow in the target instance. The email account to
be used for configuring each target instance is mentioned in the respective instance details in APEX.

http://techhub.diebold.com/teams/IT_Ops/oralin/Shared%20Documents/Application%20support
%20folders/COE%20-%20R12%20Financials/Workflow_Setup_COE_New.docx

Post Step 10:

In case if the target instance is a CRP instance and if the users require external tier setup to be
configured for iProcurement, please follow the attached document:

http://techhub.diebold.com/teams/IT_Ops/oralin/Shared%20Documents/Application%20support
%20folders/COE%20-%20R12%20Financials/Diebold%20int12_isupplier_configuration(1).doc

Post Step 11:


Please recreate the dba_directories and make sure that all the dba_directories are pointing to the target
instance.

Post Step 12:

Inorder for the mails to not flow out to the users, below is the proposed changes to be made in all
cloned instances in COE environment.

All highlighted values should be made null.

Please make the below highlighted items to NULL.

Files:

cd $XDO_TOP/resource

mv xdodelivery.cfg xdodelivery.cfg_nomail

Profiles:

IBY: XML Publisher Delivery Manager Configuration File $XDO_TOP/resource/xdodelivery.cfg

IEX: SMTP Host mailgate.diebold.com

XXDBD_SEND_MAIL_SMTP_HOST mailgate.diebold.com

Post Step 13:

To recreate the soft links in the custom tops for the Concurrent Host Programs to run, we need to
execute the below script.

/mnt/oracle_stage_NAS/COE/ fix_custom_top_links.sh

Execute the above script on the Concurrent Nodes of the Target application server. It is a generic script
and can be used on any target instance.

Post Step 14:


For the Oracle e-Commerce Gateway setup,
Please make sure that the following profile options are set properly to the value of $APPLPTMP location.

ECE: Inbound File Path


ECE: Output File Path

Also the $APPLPTMP location should be added to the utl_file directory.

Post Step 15:

Please update the following profile options to point them to the Target Application Server:

Profile Options
select profile_option_value, replace(profile_option_value,'old sid','new sid')
from apps.fnd_profile_option_values where profile_option_value like '%int12%';

update apps.fnd_profile_option_values
set profile_option_value = replace(profile_option_value,'old sid','new sid')
where profile_option_value like '%int12%';

Use the above profile option update for : Server name, Port number and instance name

Post Step 16:

Update the Temporary Directory for XML Publisher:

select VALUE from XDO.XDO_CONFIG_VALUES WHERE upper(PROPERTY_CODE)='SYSTEM_TEMP_DIR'

UPDATE XDO.XDO_CONFIG_VALUES SET VALUE = '/mnt/ora<SID>/<SID>share/applptmp' WHERE


upper(PROPERTY_CODE)='SYSTEM_TEMP_DIR';

Update the following profiles at site level

 IBY: XML Publisher Delivery Manager Configuration File


/mnt/ora<sid>/<sid>apps/apps/apps_st/appl/xdo/12.0.0/resource/xdodelivery.cfg
 IEX: SMTP From <sid>mgr@diebold.com
 IEX: SMTP Host Null
 ECE: Output File Path /mnt/ora<sid>/<sid>share/applptmp

 POR : CA Certificate File Name


/mnt/ora<sid>/<sid>apps/apps/tech_st/10.1.2/sysman/config/b64InternetCertificate.txt (needs
backed up)

 Change site name to the target instance.


 Change the entries in xdodelivery.cfg if required
 Set RRA Profile to YES.
 drop database links which are not required

Post Step 17:

1.  Query for the profile : "FND: Migrated To JRAD"


2. Set the value to "Yes" at the application "Payables"
3. Bounce OC4J ($INST_TOP/admin/scripts/adoacorectl.sh stop|start)  

Post Step 18:

Please follow the below links to complete all the Post Refresh checklist:

http://techhub.diebold.com/teams/IT_Ops/oralin/Shared%20Documents/Application%20support
%20folders/COE%20-%20R12%20Financials/DBD%20Post%20Instance%20Refresh%20Activity%20Log
%20V1%202.xlsx

http://techhub.diebold.com/teams/IT_Blueprint/Projects/ORACLECOE/DNAFINSCM/WIP%20SDLC/
03%20Construction/RICE/POST%20CLONE%20ACTIVITIES/post_clone_activity_dba_v1.2.xlsx

Post Step 19:

Start the MWA server on the Application/Web Node. The port number for the instances can be obtained
from either CONTEXT_FILE or from the below link:

http://dba.diebold.com/apex/f?p=102:60:4353107474567806 :::::

Post Step 20:

Update email addresses as mentioned in the attached email and as below:

Before starting the WF Mailer in any TEST INSTANCE, please ask functional tester to put his email
address for testing.

UPDATE fnd_user
SET email_address=NULL
WHERE email_address IS NOT NULL
UPDATE wf_local_roles
SET email_address=NULL
WHERE email_address IS NOT NULL

UPDATE per_all_people_f
SET email_address=NULL
WHERE email_address IS NOT NULL

UPDATE hz_parties
SET email_address=NULL
WHERE email_address IS NOT NULL

UPDATE  po.po_vendor_sites_all
SET attribute3 = NULL,
    attribute4 = NULL
WHERE  attribute3 IS NOT NULL
    OR attribute4 IS NOT NULL

UPDATE apps.ap_supplier_sites_all
SET EMAIL_ADDRESS = NULL
WHERE email_address IS NOT NULL

Post Step 21:

Please ensure that the following profile option is set to actual webserver and port instead of Virtual URL
for the workflow components to work:

WF: Workflow Mailer Framework Web Agent

Post Step 22:

Please clean up APPLPTMP, APPLTMP and APPLCSF folders before starting up the services.

Post Step 23:

Make sure that the database is in no archive mode (if it is not INT13).

Post Step 24:


Configure Vertex for the cloned instance by following the steps in the attached document.

Post Step 25:

delete  from mrp_ap_apps_instances_all where instance_code = 'DNA';

Post Step 25:

If the cloned instance is other than INT13 or UAT12: (Not required in INT13 and UAT12 clones from
PROD12)
Create below users and assign the below responsibilities to these users.

tauschn
daubenm
riderd
thurmab
fryarf
walkerk
fankhaw
karoles
knappr
erzenm

Assign below responsibilities to above users:


Service Contracts Manager
Oracle Installed Base Admin
Oracle Installed Base Agent User
Receivables Manager
Trading Community Manager

You might also like