Vous êtes sur la page 1sur 33

FNDLOAD

Date : 15-Jul-2013 Presenter : Prasath Rajaram

Agenda

Going to understand about the FNDLOAD concept.

What is FNDLOAD?

FNDLOAD is an Oracle utility for the transfer of a wide range of Oracle Foundation (FND) data from one instance to another instance.

What it will do?

We can create the concurrent program that move the Oracle Application Data between data and text file responsibility.

OR this can be define as FNDLOAD can download data from an application entity an editable text file, which can be uploaded to another database.

How it works?
Conversion between database format and text file format is specified by a configuration file. Oracle does provide confirmation file and it is important to just pass the configuration file name and then just call the loader and leave everything .

Data base (DEV)

LOADER

Loader Date (ldt)

LOADER

Data Base (PROD)

Loader Config (lct)

Loader Config (lct)

What can be done?


There are extensive list which can be done through FNDLOAD. Concurrent Programs, Executables Request Groups, Request Sets Profile Options Key and Descriptive Flexfields Menus and Responsibilities Forms and Form Functions Lookup Types User Responsibilities Printer Definitions Etc.

Advantages

Downloaded data is stored in a text file, version administration is possible There is nothing to worry to go to purchase because Investment is Zero. No learning curve, this is relief for developer/db. Fully supported and recommended by Oracle Capture the migrations in a file and use it during installations, clones etc.. Pin-point when something happened and where (database) easily Your AOL data migration process is now simplified and streamlined. UPLOAD_MODE=REPLACE only for menus. No validation against migrating database/instance sensitive data

Syntax
FNDLOAD apps/appspwd 0 Y mode configfile datafile entity [parameter1..] As you can see, some info is needed.- First you will need to know the Apps password. The mode is either DOWNLOAD or UPLOAD. The configfile is the file that Fndload needs to download on upload data. The data file is the output file, in which the downloaded data is written The entity is the entity you want to download. Parameters van is passed to download a certain Alert

Modes of operation
This is important because it would drive the whole flow, and it always be two mode .. Upload and Download Example of download: FNDLOADapps/pwd 0 Y DOWNLOAD ${FND_TOP}/patch/115/import/afcpprog.lct myfile.ldt PROGRAM CONCURRENT_PROGRAM_NAME= concurrent_program_short_name APPLICATION_SHORT_NAME=<application_short_name> Example of Upload FNDLOAD apps/pwd 0 Y UPLOAD ${FND_TOP}/patch/115/import/afcpprog.lct myfile.ldt CUSTOM_MODE=FORCE undocumented parameter

What is FNDLOAD Load Options


Application level OR single entity level download (Example) Download all the profile options of Inventory or just the INV: Default Primary UOM Entire OR Partial upload of a data file (Example) Upload the entire myfile.ldt or just a single enity indicated by - and mode UPLOAD or UPLOAD_PARTIAL Entity name required for UPLOAD_PARTIAL mode Custom mode force update To override Oracle's upload algorithm and update the custom AOL data regardless, use CUSTOM_MODE= FORCE UPLOAD_MODE= REPLACE (only for menus) Support for NLS uploads NLS data uploads for translated columns are supported, use UPLOAD_MODE= NLS

Where is config file located?


Configuration files with extension .lct On Unix - all the configuration files are in $FND_TOP/patch/115/import directory On Unix , Oracle also places the original configuration files in $FND_TOP/admin/import directory Data files with extension .ldt

FNDLOAD File structure


The config files (.lct) are delivered and maintained by Oracle It has entity definitions, parent-child relationships and user input parameters identified by :NAME Downloading a parent automatically downloads all children (Example) Concurrent Program download

Take a NOTE FNDLOAD File Structure


The data files (.ldt) have both entity definition and the data It also shows the version and the location of the config file (.lct) that was used Without the config file, data file is useless Without the data file, config file is meaningless

Remember regarding FNDLOAD Files


Key files: .lct and .ldt You must run the FNDLOADas apps user not as applsys or any other, otherwise you will receive Ora-6550 Both are easily readable, editable and portable DO NOT MODIFY Oracle .lct files Use your favorite editor to manipulate only the .ldt files but be cautious about data type, length, delimiter placements etc.

Sample Scripts
Printer Styles FNDLOAD apps/<> 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcppinf.lct XML_PRINTER.ldt FND_PRINTER_INFORMATION PRINTER_TYPE=XML_PT PRINTER_STYLE=XML_MAIL FNDLOAD apps/<> 0 Y UPLOAD $FND_TOP/patch/115/import/afcppinf.lct

XML_PRINTER.ldt

Sample Scripts
Alerts FNDLOAD apps/<> 0 Y DOWNLOAD $ALR_TOP/patch/115/import/alr.lct fuel_alr.ldt ALR_ALERTS APPLICATION_SHORT_NAME=XXCUST ALERT_NAME=Fuel alert FNDLOAD apps/<> 0 Y UPLOAD $ALR_TOP/patch/115/import/alr.lct fuel_alr.ldt

Sample Scripts
Message FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afmdmsg.lct File_name.ldt FND_NEW_MESSAGES APPLICATION_SHORT_NAME=" Application Short Name " MESSAGE_NAME=Message_name" FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afmdmsg.lct File_name.ldt UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE

Sample Scripts
Lookups FNDLOAD apps/apps O Y DOWNLOAD FND_TOP/patch/115/import/aflvmlu.lct File_name.ldt FND_LOOKUP_TYPE APPLICATION_SHORT_NAME=Application Short Name" LOOKUP_TYPE=Look Type Name" FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/aflvmlu.lct File_name.ldt UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE

Sample Scripts
Concurrent Programs FNDLOAD apps/msc321 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct XX_MSCAPXT7F99.ldt PROGRAM APPLICATION_SHORT_NAME="MSCAP" CONCURRENT_PROGRAM_NAME="MSCAPXT7F99" FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afcpprog.lct XXCUST_CP.ldt UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE

Sample Scripts
Descriptive Flexfield FNDLOAD apps/appspwd115 O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt DESC_FLEX APPLICATION_SHORT_NAME="prod" DESCRIPTIVE_FLEXFIELD_NAME="desc flex name FNDLOAD apps/appspwd115 O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt

Sample Scripts
Key Flexfield Structures FNDLOAD apps/apps@seed115 O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt KEY_FLEX APPLICATION_SHORT_NAME="prod" ID_FLEX_CODE="key flex code FNDLOAD apps/appspwd115 O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt ----------------------------------------------------------------------------------------------FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt KEY_FLEX P_LEVEL=COL_ALL:FQL_ALL:SQL_ALL:STR_ONE:WFP_ALL:SHA_ALL:CVR_AL L:SEG_ALL APPLICATION_SHORT_NAME=FND ID_FLEX_CODE=key flex code P_STRUCTURE_CODE=structure name

Sample Scripts
Profile Options

FNDLOAD apps/password O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct your_output_dir/your_name.ldt PROFILE PROFILE_NAME=profile_option_short_name [APPLICATION_SHORT_NAME=app]


FNDLOAD apps/password O Y UPLOAD $FND_TOP/patch/115/import/afscprof.lct your_output_dir/your_name.ldt

Sample Scripts
Request Group

FNDLOAD apps/password 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpreqg.lct your_output_dir/your_name.ldt REQUEST_GROUP REQUEST_GROUP_CODE=YOURREQUESTGROUPCODE


FNDLOAD apps/password 0 Y UPLOAD $FND_TOP/patch/115/import/afcpreqg.lct your_output_dir/your_name.ldt

Sample Scripts
Request Set

FNDLOAD apps/password 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcprset.lct your_output_dir/your_name.ldt REQ_SET REQUEST_SET_NAME=REQUEST_SET_NAME


FNDLOAD apps/password 0 Y UPLOAD $FND_TOP/patch/115/import/afcprset.lct your_output_dir/your_name.ldt

Sample Scripts
Responsibility FNDLOAD apps/password 0 Y DOWNLOAD $FND_TOP/patch/115/import/afscursp.lct your_output_dir/your_name.ldt FND_RESPONSIBILITY RESP_KEY=RESPONSIBILITY_KEY_VALUE FNDLOAD apps/password 0 Y UPLOAD $FND_TOP/patch/115/import/afscursp.lct your_output_dir/your_name.ldt

Sample Scripts
Value Set FNDLOAD apps/msc321 0 Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct XX_MSC_SL_Account2.ldt VALUE_SET FLEX_VALUE_SET_NAME="MSC_SL_Account"
$FND_TOP/bin/FNDLOAD apps/msc321 0 Y UPLOAD $FND_TOP/patch/115/import/afffload.lct XX_MSC_SL_Account2.ldt

Sample Scripts
User Record FNDLOAD apps/password 0 Y DOWNLOAD $FND_TOP/patch/115/import/afscursp.lct your_output_dir/your_name.ldt FND_USER USER_NAME=USERNAME_TO_PROCESS

FNDLOAD apps/password 0 Y UPLOAD $FND_TOP/patch/115/import/afscursp.lct your_output_dir/your_name.ldt

Sample Scripts
Menus

FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct File_Name.ldt MENU MENU_NAME=Menu_Name"


FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afsload.lct File_Name.ldt

Sample Scripts
Functions FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct File_Name.ldt FUNCTION FUNC_APP_SHORT_NAME=Application_short_name' FUNCTION_NAME=Functiona_name' FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afsload.lct File_Name.ldt

Sample Scripts
Form

FNDLOAD apps/<> O Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct XXFRMNAME.ldt FORM APPLICATION_SHORT_NAME=XXCUST FORM_NAME=XXFRMNAME


FNDLOAD apps/<> O Y UPLOAD $FND_TOP/patch/115/import/afsload.lct XXFRMNAME.ldt

Sample Scripts
Form Personalization
FNDLOAD apps/appspwd 0 Y DOWNLOAD $FND_TOP/patch/115/import/affrmcus.lct FILE_NAME.ldt FND_FORM_CUSTOM_RULES form_name=FORM_NAME

Download -for all personalizations< /FONT>


FNDLOAD <userid>/<password> 0 Y DOWNLOAD $FND_TOP/patch/115/import/affrmcus.lct <filename.ldt> FND_FORM_CUSTOM_RULES function_name=<function name>< /FONT FNDLOAD apps/appspwd 0 Y UPLOAD $FND_TOP/patch/115/import/affrmcus.lct XX_OEXOEORD.ldt

For single form:


FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/affrmcus.lct xxapperiod.lct FND_FORM_CUSTOM_RULES form_name=APXSUMPS
FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/affrmcus.lct xxapperiod.lct

List of configuration files


afattach.lct : Load attachments setup data afcpprog.lct : Concurrent Program Definitions afcppstl.lct: : Concurrent Program Printer Styles afcpreqg.lct : Concurrent Request Groups afcprset.lct : Concurrent Request Sets afffload.lct : Flexfields (KFF, DFF, value sets, value sets data) aflvmlu.lct : Lookup types and codes afscprof.lct : Profiles and Profile Values afscursp.lct : Security data (users, responsibilities, etc) afsload.lct : Menu / Function Security DataLookup Type

Thanks

Vous aimerez peut-être aussi