Professional Documents
Culture Documents
$ cd /orahome/db
$ cd ~/work
$ cp -ip TST_tst-oracledb01.xml /orahome/db/tech_st/11.2.0/appsutil
$ cd /orahome/db/tech_st/11.2.0/appsutil/clone/bin
The rman process needs more than 24GB in /oraarch. To overcome this issue use the
work around by creating the softlink in /oradata
$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/xvdb 24G 44M 24G 1% /oraarch
$ mkdir -p /oradata/db/apps_st/redo_data/data
$ cd /oraarch/db/apps_st
$ mv -i data data.orig
$ ln -s /oradata/db/apps_st/redo_data/data
$ ls -trl
SQL> exit
$ rman AUXILIARY /
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
database opened
Finished Duplicate Db at 19-AUG-17
RMAN> exit
$ exit
# exit
Creat spfile
$ cd $ORACLE_HOME/appsutil/clone/bin
Excute AUTOCONFIG
------------------
$ cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
$ adautocfg.sh
--------------------------------------------------------------
SQL> update wf_notifications
set mail_status = 'SENT'
where mail_status != 'SENT';
--------------------------------------------------------------
SQL> create table ar.hz_contact_points_bkup
as
select * from ar.hz_contact_points;
Table created.
--------------------------------------------------------------
SQL> update ar.hz_contact_points
set email_address = 'postclone@example.com'
where contact_point_type = 'EMAIL';
--------------------------------------------------------------
SQL> UPDATE APPLSYS.FND_PRINTER_TL FPT
SET FPT.PRINTER_NAME = 'NPC3_'||FPT.PRINTER_NAME
where upper(printer_name) <> 'NOPRINT';
13 rows updated.
--------------------------------------------------------------
SQL> UPDATE APPLSYS.FND_PRINTER FP
SET FP.PRINTER_NAME = 'NPC3_'||FP.PRINTER_NAME
where upper(printer_name) <> 'NOPRINT';
13 rows updated.
--------------------------------------------------------------
SQL> update fnd_concurrent_requests
set hold_flag = 'Y'
WHERE phase_code = 'P'
AND status_code in ('Q','I')
and hold_flag = 'N';
SQL> commit;
**************************
*** On the APPS Server ***
**************************
$ cd /orahome/apps
/orahome/apps/oraInventory in /etc/oraInst.loc
If the
/orahome/apps/oraInventory does not exist create it. If the directory exists from a
previous clone, then clean it.
$ cd /orahome/apps/fs2
$ rm -Rf FMW_Home inst
Version 12.2
Running:
/orahome/apps/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp
/orahome/apps/fs1/EBSapps/comn/clone/jlib/java:/orahome/apps/fs1/EBSapps/comn/clone
/jlib/xmlparserv2.jar:/orahome/apps/fs1/EBSapps/comn/clone/jlib/ojdbc5.jar:/orahome
/apps/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/orahome/apps/fs1/EBSapps/c
omn/clone/jlib/ojmisc.jar:/orahome/apps/fs1/EBSapps/comn/clone/jlib/java:/orahome/a
pps/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e
/orahome/apps/fs1/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml -validate
-pairsfile /tmp/adpairsfile_5281.lst -stage /orahome/apps/fs1/EBSapps/comn/clone
2> /tmp/adcfgclone_5281.err; echo $? > /tmp/adcfgclone_5281.res
Do you want the target system to have the same port values as the source system
(y/n) [y] ? : n
1. /usr/tmp/TST
2. /usr/tmp
3. /orahome/db/tech_st/11.2.0/appsutil/outbound/TST_tst-oracledb01
Choose a value which will be set as APPLPTMP value on the target node [1] : 1
execute preclone
$ cd /orahome/apps/fs2/EBSapps/comn/clone/bin
Provide the values required for creation of the new APPL_TOP Context file.
1. /usr/tmp/TST
2. /usr/tmp
3. /orahome/db/tech_st/11.2.0/appsutil/outbound/TST_tst-oracledb01
Choose a value which will be set as APPLPTMP value on the target node [1] : 1
--------------------------------------------------------------
SQL> select profile_option_value
from apps.FND_PROFILE_OPTION_VALUES
where profile_option_id = 125;
PROFILE_OPTION_VALUE
--------------------------------------------------------------
TST
--------------------------------------------------------------
SQL> select distinct b.profile_option_id,a.user_profile_option_name "OPTION",
b.profile_option_value||decode(b.level_id,
10001,' at Site',
10002,' at App '||d.application_name,
10003,' at Resp '||e.responsibility_name,
10004,' at User '||f.user_name,
' Not Set'
) "Value"
from apps.fnd_profile_options_vl a,
apps.fnd_profile_option_values b,
apps.fnd_application_vl d,
apps.fnd_responsibility_vl e,
apps.fnd_user f
where a.profile_option_id = b.profile_option_id
and b.level_value=d.application_id(+)
and b.level_value=e.responsibility_id(+)
and b.level_value=f.user_id(+)
and ( upper(b.profile_option_value) like '%PRD%'
or upper(b.profile_option_value) like '%APP01%');
PROFILE_OPTION_ID
-----------------
OPTION
--------------------------------------------------------------------------------
Value
--------------------------------------------------------------------------------
9825
Applications Help Web Base URL
http://app01.ind1.com:8000/OA_HTML/ Not Set