You are on page 1of 4

It is merely time consuming task to create same setup data on each instance separately.

Hence to migrate setup data from 1 instance to other (Eg. From DEV to PROD), ldt & lct files are used.

LDT (Data Loader Files): These files are Used to upload & download setup data on different instances.
LCT (Data Configuration Files): These files are used to create LDT Files. There are difference lct files for different sets of data.

Eg: Request Set- afcpreqg.lct, Concurrent Program- afcpprog.lct, Value Set- afffload.lct etc.

** Now lets take a simple example where you want to migrate concurrent program from Development (DEV) instance to Production (PROD).

Steps:

Login into Unix Development server using putty and run below command:

pbrun /bin/su - applmgr

Change the directory using following Command where you can store your LDT files:

cd $AEXP_TOP/patch/115/import/US/ ----(where CUST_TOP is your custom top on server)

Run the following command by supplying the parameters given in {} as per your need (dont use brackets in commands, these are just to show you).

FNDLOAD {userid/password@connect_string} O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct {file_name.ldt} PROGRAM


APPLICATION_SHORT_NAME="{your_application_short_name}" CONCURRENT_PROGRAM_NAME="{your_concurrent_name}"

The above command will generate ldt file in your custom top directory ($CUST_TOP/ patch/115/import/US/ )

Copy the LDT file from Development Server to your local desktop

Login to Unix Production Server or (ask DBAs to do this step) and copy the LDT files from local desktop to Production Server on following path:

$AEXP_TOP/ patch/115/import/US/ {file_name.ldt}

Finally Run the following command by supplying all parameters in {} to upload concurrent program definition on production application server.

$ FNDLOAD {userid/password@connect_string} 0 Y UPLOAD $FND_TOP/patch/115/import/afcpprog.lct


$CUST_TOP/patch/115/import/US/{file_name}.ldt

Note:

1) All above FNDLOAD commands are single line commands.


2) Use CUSTOM_MODE=FORCE UPLOAD_MODE=REPLACE after upload command if you want to reflect new changes.
2) All above steps will remain exactly same for all kind of setup data (Eg: Value Set, CP, Request group, DFFetc) except the name of LCT file (.lct). LCT
file will be different for every different component because the setup data is different.

Below are the commands:

1. Lookups

FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/aflvmlu.lct XX_CUSTOM_LKP.ldt FND_LOOKUP_TYPE


APPLICATION_SHORT_NAME="AEXP" LOOKUP_TYPE="XX_LOOKUP_TYPE"

FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/aflvmlu.lct XX_CUSTOM_LKP.ldt UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE

2. Concurrent Program -

FNDLOAD apps/MUMBA1 O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct AEXPGBTEssbaseMGMClearScenario_CP.ldt PROGRAM


APPLICATION_SHORT_NAME="AEXP" CONCURRENT_PROGRAM_NAME="AEXPGBT Essbase MGM Clear Scenario"

FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afcpprog.lct XX_CUSTOM_CP.ldt - WARNING=YES UPLOAD_MODE=REPLACE


CUSTOM_MODE=FORCE

3. Attach Concurrent Program to request group

FNDLOAD apps/xxxx 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpreqg.lct <Filename>.ldt REQUEST_GROUP


REQUEST_GROUP_NAME="<Request Group Name>" APPLICATION_SHORT_NAME="<Application Short Name>" REQUEST_GROUP_UNIT
UNIT_TYPE="P" UNIT_APP="<Application of the Concurrent Program>" UNIT_NAME="<Concurrent Program Short Name>"

FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpreqg.lct test_request_group.ldt REQUEST_GROUP REQUEST_GROUP_UNIT


UNIT_TYPE="P" UNIT_APP="AEXP" UNIT_NAME="TEST_REQUEST_GROUP" REQUEST_GROUP_NAME="AEXP C&R Seg Custom Processes"
APPLICATION_SHORT_NAME="AEXP"

FNDLOAD <apps>/<PASSWORD>@<DBNAME> 0 Y UPLOAD $FND_TOP/patch/115/import/afcpreqg.lct <LDT_FILE_NAME> REQUEST_GROUP


REQUEST_GROUP_NAME=<" "> APPLICATION_SHORT_NAME=<" "> REQUEST_GROUP_UNIT UNIT_NAME=<" ">

4. Profile -

FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct XX_CUSTOM_PRF.ldt PROFILE PROFILE_NAME="XX_PROFILE_NAME"


APPLICATION_SHORT_NAME="AEXP"

$FND_TOP/bin/FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afscprof.lct XX_CUSTOM_PRF.ldt - WARNING=YES


UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE
5. Request Set and Link

FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcprset.lct XX_CUSTOM_RS.ldt REQ_SET


REQUEST_SET_NAME='REQUEST_SET_NAME'

FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afcprset.lct XX_CUSTOM_RS.ldt UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE

6. FND Message

FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afmdmsg.lct XX_CUSTOM_MESG.ldt FND_NEW_MESSAGES


APPLICATION_SHORT_NAME="AEXP" MESSAGE_NAME="MESSAGE_NAME%"

FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afmdmsg.lct XX_CUSTOM_MESG.ldt UPLOAD_MODE=REPLACE


CUSTOM_MODE=FORCE

7. Forms

$FND_TOP/bin/FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct XX_CUSTOM_FRM.ldt FORM


FORM_NAME="FORM_NAME"

$FND_TOP/bin/FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afsload.lct XX_CUSTOM_FRM.ldt - WARNING=YES


UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE

8. Form Function

FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct XX_CUSTOM_FUNC.ldt FUNCTION


FUNCTION_NAME="FORM_FUNCTION_NAME"

$FND_TOP/bin/FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afsload.lct XX_CUSTOM_FUNC.ldt - WARNING=YES


UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE

8.

FNDLOAD apps/apps 0 Y DOWNLOAD $ALR_TOP/patch/115/import/alr.lct XX_CUSTOM_ALR.ldt ALR_ALERTS APPLICATION_SHORT_NAME=AEXP


ALERT_NAME="XX - Alert Name"

FNDLOAD apps/apps 0 Y UPLOAD $ALR_TOP/patch/115/import/alr.lct XX_CUSTOM_ALR.ldt CUSTOM_MODE=FORCE

9. Value Set

$FND_TOP/bin/FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct XX_CUSTOM_VS.ldt VALUE_SET


FLEX_VALUE_SET_NAME="XX Value Set Name"
$FND_TOP/bin/FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afffload.lct XX_CUSTOM_VS.ldt - WARNING=YES
UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE

9. Data Definition and Associated Template -

FNDLOAD apps/$CLIENT_APPS_PWD O Y DOWNLOAD $XDO_TOP/patch/115/import/xdotmpl.lct XX_CUSTOM_DD.ldt XDO_DS_DEFINITIONS


APPLICATION_SHORT_NAME='AEXP' DATA_SOURCE_CODE='XX_SOURCE_CODE' TMPL_APP_SHORT_NAME='AEXP'
TEMPLATE_CODE='XX_SOURCE_CODE'

FNDLOAD apps/$CLIENT_APPS_PWD O Y UPLOAD $XDO_TOP/patch/115/import/xdotmpl.lct XX_CUSTOM_DD.ldt

11. Data Template

java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION


'(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX_HOST_NAME)(PORT=XX_PORT_NUMBER))(CONNECT_DATA=(SERVICE_NAME=XX_SERVIC
E_NAME)))' -LOB_TYPE DATA_TEMPLATE -LOB_CODE XX_TEMPLATE -APPS_SHORT_NAME AEXP -LANGUAGE en -lct_FILE
$XDO_TOP/patch/115/import/xdotmpl.lct -LOG_FILE $LOG_FILE_NAME

java oracle.apps.xdo.oa.util.XDOLoader UPLOAD -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION


'(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX_HOST_NAME)(PORT=XX_PORT_NUMBER))(CONNECT_DATA=(SERVICE_NAME=XX_SERVIC
E_NAME)))' -LOB_TYPE DATA_TEMPLATE -LOB_CODE XX_TEMPLATE -XDO_FILE_TYPE XML -FILE_NAME $DATA_FILE_PATH/$DATA_FILE_NAME.xml -
APPS_SHORT_NAME AEXP -NLS_LANG en -TERRITORY US -LOG_FILE $LOG_FILE_NAME

12. RTF Template

java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION


'(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX_HOST_NAME)(PORT=XX_PORT_NUMBER))(CONNECT_DATA=(SERVICE_NAME=XX_SERVIC
E_NAME)))' -LOB_TYPE TEMPLATE -LOB_CODE XX_TEMPLATE -APPS_SHORT_NAME AEXP -LANGUAGE en -TERRITORY US -lct_FILE
$XDO_TOP/patch/115/import/xdotmpl.lct -LOG_FILE $LOG_FILE_NAME

java oracle.apps.xdo.oa.util.XDOLoader UPLOAD -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION


'(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX_HOST_NAME)(PORT=XX_PORT_NUMBER))(CONNECT_DATA=(SERVICE_NAME=SERVICE_N
AME)))' -LOB_TYPE TEMPLATE -LOB_CODE XX_TEMPLATE -XDO_FILE_TYPE RTF -FILE_NAME $RTF_FILE_PATH/$RTF_FILE_NAME.rtf -
APPS_SHORT_NAME AEXP -NLS_LANG en -TERRITORY US -LOG_FILE $LOG_FILE_NAME

13. Attach cp to request group

FNDLOAD apps/xxxx 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpreqg.lct <Filename>.ldt REQUEST_GROUP REQUEST_GROUP_NAME="<Request Group


Name>" APPLICATION_SHORT_NAME="<Application Short Name>" REQUEST_GROUP_UNIT UNIT_TYPE="P" UNIT_APP="<Application of the Concurrent
Program>" UNIT_NAME="<Concurrent Program Short Name>"

You might also like