Vous êtes sur la page 1sur 48

Scribd Upload a Document

Top of Form

Search Boo

Search Documents

Bottom of Form

Explore

Documents

Books - Fiction Books - Non-fiction Health & Medicine Brochures/Catalogs Government Docs How-To Guides/Manuals Magazines/Newspapers Recipes/Menus School Work + all categories Featured Recent

People

Authors Students Researchers Publishers Government & Nonprofits Businesses Musicians

Artists & Designers Teachers + all categories Most Followed Popular Sign Up | Log In

1
First Page Previous Page Next Page
1

/ 38
Sections not available Zoom Out Zoom In Fullscreen Exit Fullscreen Select View Mode

View Mode SlideshowScroll


Top of Form

Search w it
Bottom of Form

Readcast Add a Comment Embed & Share

Reading should be social! Post a message on your social networks to let others know what you're reading. Select the sites below and start sharing.

Readcast this Document

Top of Form

7f648bd135e29d

Login to Add a Comment

Submit

4gen
Bottom of Form

Share & Embed


Add to Collections

Download this Document for Free


Auto-hide: on

AIM TECHNICAL DESIGN Oracle Applications FNDLOAD Unix Scripts


Team: Technology Creation Date: 2 July 2009 Created By: Brendan Furey (BrendanPF@Yahoo.com) Last Updated:

6 April 2010 Control:


31921461.doc

Version: 1.3

Document Control
Change Record
Date Author Version Change Reference

01-Jul2009 BP Furey 1.0 Initial 01-Nov2009 BP Furey 1.1 Added XML Templates and XML RTF file sections (upload only) 03-Dec2009 BP Furey 1.2 Extended the XML sections, adding data template, and XDO download, and example outputs 06-Apr2010 BP Furey 1.3 Added in Request Sets (used recently on 11.5.6 and earlier on 11.5.9)

Contents
Document Control.............................................................................. i Change Record .......................................................................... . . . . i Introduction.................................................................................. . . . . 4 Functional Considerations..................................................... . . . . . . . . . . . . . . 4 Data Integrity ........................................................ . . . . . . . . . . . . . . . . . . . . . . 4

Values Columns

Unknown

at

Download

Time................................................ . 5

Who Forcing

..............................................................................

Updates........................................................................... 5 Technical Overview............................................................................ 5 Generic Download Specification .......................................... . . . . . . . . . . . . 5 Generic Upload Specification.......................................................... 7 Unix Script List............................................................................. 8 Value Sets......................................................................... . . . . . . . . . . . . . . . 9 Notes.......................................................................................... Download.................................................................................... Upload...................................................................................... 10 Concurrent Programs....................................................................... 11 Notes........................................................................................11 Download..................................................................................11 Upload...................................................................................... 12 Request Sets .............................................................................. . . . . .15 Notes........................................................................................15 Download..................................................................................15 Upload...................................................................................... 16 Profile Values.................................................................................. 19 Notes........................................................................................19 Download..................................................................................19 Upload...................................................................................... 20 Responsibilities ............................................................................. . . . 21 Notes........................................................................................21 Download..................................................................................21 Upload...................................................................................... 22 Users.............................................................................................24 Notes........................................................................................24 Download..................................................................................24 Upload...................................................................................... 25 Descriptive Flexfields................................... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26ii
Document Control

9 9

Notes........................................................................................26 Download..................................................................................26 Upload...................................................................................... 28 Lookups......................................................................................... 29 Notes........................................................................................29 Download..................................................................................29 Upload...................................................................................... 30 XML Data Definition......................................................................... 31 Notes........................................................................................31 Upload...................................................................................... 31 XML Template Files ....................................................... . . . . . . . . . . . . . . . . . . . 33 Notes........................................................................................33 Download..................................................................................33 Upload...................................................................................... 35 References...................................................................................... 38
iii Document Control

Introduction
FNDLOAD is an Oracle Unix utility that allows for the transfer of a wide range of Oracle Foundation (FND) data from one instance to another. It works by downloading the data in the source instance into a text file (theLDT file) that can then be uploaded into target instances. It is usually used to migrate small numbers of entities such as value sets or concurrent programs from development through test instances and into production. It can also be used when there is a requirement to transfer large batches of records such as responsibilities and user assignments, which may arise for example when new operating units are added. Its use in such cases is described in REF-2, while we are concerned here with the former case. Using Unix scripts to call the FNDLOAD utility allows for enforcement of standards, as discussed in the functional considerations section below, and also enables streamlining of the processes for release-toproduction. This document discusses functional considerations when using FNDLOAD, provides generic specifications for scripts, and provides the Unix code for a set of scripts that I have written and used over a number of years. Version 1.0 was restricted to those recently used on an Oracle Applications 11.5.10 instance, and with v1.1 I have added Release 12 upload scripts for XML Templates and RTF files. V1.3 adds request sets tested on R11.5.6 and 11.5.9 earlier.

Functional Considerations
This section discusses the functional behaviour required when using FNDLOAD within a release to production process. This determines the processing within our scripts.

Data Integrity
FNDLOAD allows for the download of individual entity instances or groups of entity instances. For example, all responsibilities couild be downloaded within a specified application. However, this creates a serious risk of uploading bad data from development into production. For this reason, we download only specified individual entity instances that are assumed to have been fully tested. Where necessary, these can then be combined into one file (or a small number of files) for installation convenience. A second risk factor arises from the fact that FNDLOAD downloads referenced entity instances as well as the named entity instance. For example, downloading a concurrent program results in all value sets referenced also being downloaded into the LDT file. Since referenced entities may not be part of the relevant development project, they may have been separately modified. In general, only what has been modified as part of the development, and hence tested, should be uploaded. For this reason, we postprocess each downloaded LDT file to remove referenced entities (but not the references to them of course).
4 References

Values Unknown at Download Time


Certain values downloaded may not be appropriate for uploading. For example, effective start dates should not be earlier than the installation date, for auditing reasons; also values that are sequencegenerated references and are new need to be different in production from development. Who columns are another case, as discussed in the next section. For these values, we substitute placeholders via our download scripts, and replace them with the correct values in the upload scripts.

Who Columns
Who columns are standard Oracle columns used to store the users who created and last updated the record, with the datetimes. FNDLOAD normally uploads the update values from the source system, and the same values for the creation columns for new records. We believe this is inappropriate for systemgenerated updates (for auditing reasons), and so we substitute SYSADMIN for the user, and use a placeholder for the update/creation date for processing as discussed in the previous section.

Forcing Updates
FNDLOAD uses an algorithm to determine whether an entity instance that exists on the target system should be overwritten or not, depending on such things as the update user and datetime on each side. As long as the data integrity measures outlined above have been taken, it is appropriate to pass the parameter CUSTOM_MODE=FORCE, which causes the updates to happen disregarding the usual algorithm.

Technical Overview
The upload and download scripts are specified generically here. For specific details, see the actual scripts, and note that some of them may vary slightly from the specifications. Note also that testing of the scripts took place on Oracle Applications release 11.5.10. Naturally, any proposed use must be tested in the users own environment.

Generic Download Specification

Input Parameters

Name Description Notes Apps PasswordPassword of apps Oracle user Entity Key Value 1 Entity key value, field 1 Double-quote if spaces Entity Key Value 2 Entity key value, field 2 Sometimes required
5 References

FNDLOAD Parameters
Po s Name Value Notes 1 User/Password apps/[Apps Password] 2 0 3 Y 4 Upload/Downlo ad? DOWNLOAD 5 Control File $FND_TOP/patch/115/import/ [LCT File].lct 6 LDT File [Entity_Key_Value_1]_[Entity Suffix].ldt For keys with spaces, the spaces are translated into underscores. A 2-letter suffix is used as a naming convention. If necessary, we may combine two key values for the prefix 7 Entity Code [Entity Code] Sometimes secondary entity code also required 8 Entity Key 1 [Entity Key Name 1]=[Entity Key Value 1] 9 Entity Key 2 [Entity Key Name 21]=[Entity Key Value 2] Sometimes required Next two are for profiles only, and only if at responsibility level. I have only tested profiles at site and responsibility level 10 Profile Level LEV=RESPONSIBILITY 11Profile Level Value LEV_NAME=[Responsibility Key]

Processing

The processing steps for all scripts (in principle!) are outlined below.

Validate parameters

Set LCT and LDT file names


Check existence of LCT files Check Oracle connection and password


Download using FNDLOAD to temporary LDT file Remove all referenced entity blocks from the temporary LDT file and copy to the output LDT file

List the referenced entities that were removed

Search LDT file and report on success or failure, writing out the number of records downloaded, with any additional data relevant to the entity The upload processing allows for the presence of a placeholder for current date, ph_sysdate. This can be set manually or programmatically as desired, for start dates and update dates. The owner of the records can be set manually to SYSADMIN if desired.
6 References

Generic Upload Specification

Input Parameters
Name Description Notes Apps PasswordPassword of apps Oracle user File Name 1 File name 1 File Name 2 File name 2 For concurrent programs only the name of a generic request groups LDT file may be passed

FNDLOAD Parameters
Po s Name Value Notes 1 User/Password apps/[Apps Password] 2 0 3

Y 4 Upload/Downlo ad? UPLOAD 5 Control File $FND_TOP/patch/115/import/ [LCT File].lct 6 LDT File [File name] 7 Mode CUSTOM_MODE=FORCE Upload regardless of ownership or dates 8 Dash Upload all in file

Processing

The processing steps for all scripts (in principle!) are outlined below. Validate parameters Set LCT and LDT file names Check existence of LCT files

Check Oracle connection and password Search LDT file for presence of referenced entity blocks, and issue warning if found

Replace ph_sysdate placeholders in input file with todays date, to create the actual LDT file

Upload using FNDLOAD

Case: concurrent program, where a generic request groups LDT file is passed: o Obtain name of program (there must be only one) from the input file into local variable o Replace REPNAME placeholders in input generic request groups LDT file with program to make actual request groups LDT file
7 References

Upload request group assignments using FNDLOAD

End Case Obtain list of entity keys from the input file into local variable List the entity records uploaded, with any relevant details, passing to SQL the local variable as a lexical parameter (SQL session) o For concurrent programs, the request group assignments are listed too

Unix Script List


Description Notes Value Set Recommended not to include value sets in concurrent program files Concurrent Program For one-at-a-time use only. Request group assignments can also be processed in the upload Request Set For one-at-a-time use only. Request group assignments can also be processed in the upload, and stage links are included Profile Value (Responsibility/Site)

Could be extended for user and application level Responsibility User Descriptive Flexfield Lookup The download applies to either one DFF, or all, or all within an application, and the upload can process multiple lookups. XML Data Definition Migration of XML Data Definitions, and the LDT files include the associated Layout Templates XML Template File Uses Oracle's XDOLoader Java utility to load the file into a BLOB column
8 References

Oracle Applications FNDLOAD Unix Scripts


Download this Document for FreePrintMobileCollectionsReport Document Report this document? Please tell us reason(s) for reporting this document
Top of Form

7f648bd135e29d doc

Spam or junk Porn adult content Hateful or offensive If you are the copyright owner of this document and want to report it, please follow these directions to submit a copyright infringement notice. Report Cancel
Bottom of Form

This is a private document.

Info and Rating


Reads: 376 Uploaded: 05/19/2010 Category: How-To Guides/Manuals

Rated:
0 5 false false 0

Copyright: Attribution Non-commercial oracle database oracle database (fewer) Follow

Paulo Henrique G ...

Share & Embed Related Documents


PreviousNext 1.

p.

p.

p.

2.

p.

p.

p. 3.

p.

p.

p. 4.

p.

p.

p. 5.

p.

p.

p. 6.

p.

p.

More from this user


PreviousNext 1.

5 p.

38 p.

7 p. 2.

6 p.

20 p.

3 p. 3.

32 p.

7 p.

4 p. 4.

14 p.

3 p.

30 p. 5.

4 p.

4 p.

492 p. 6.

3 p.

Add a Comment
Top of Form

7f648bd135e29d

Submit Characters: 400


document_comme 4gen
Bottom of Form

Print this document High Quality


Open the downloaded document, and select print from the file menu (PDF reader required). Download and Print

Sign up
Use your Facebook login and see what your friends are reading and sharing. Other login options Login with Facebook
Top of Form

http://w w w .scrib

http://w w w .scrib
Bottom of Form

Signup
I don't have a Facebook account
Top of Form

7f648bd135e29d default

email address (required) create username (required) password (required) Send me the Scribd Newsletter, and occasional account related communications. Sign Up Privacy policy You will receive email notifications regarding your account activity. You can manage these notifications in your account settings. We promise to respect your privacy.
Bottom of Form

Why Sign up?


Discover and connect with people of similar interests. Publish your documents quickly and easily. Share your reading interests on Scribd and social sites.

Already have a Scribd account?


Top of Form

7f648bd135e29d

email address or username password Log In Trouble logging in?


Bottom of Form

Login Successful
Now bringing you back...

Back to Login

Reset your password


Please enter your email address below to reset your password. We will send you an email with instructions on how to continue.
Top of Form

7f648bd135e29d

Email address: You need to provide a login for this account as well. Login: Submit
Bottom of Form

Upload a Document
Search Boo

Top of Form

Search Documents
Bottom of Form

Follow Us! scribd.com/scribd twitter.com/scribd facebook.com/scribd About Press Blog Partners Scribd 101 Web Stuff Scribd Store Support FAQ Developers / API Jobs

Terms Copyright Privacy

Copyright 2011 Scribd Inc. Language: English Choose the language in which you want to experience Scribd: English Espaol Portugus (Brasil)

Top of Form E-mail or User ID

Password

Go

Stay on Current Page

Keep me signed in Help? Recover Password Sign in using your account with

Return to this page Haven't registered yet? Register now Bottom of Form Top of Form

FEATURED: Cloud Computing in a Mainframe Environment

Search Too

My Home Topics People Companies Jobs

White Paper Library Home Activity Groups Oracle Application Server Oracle Applications Oracle Forms Contests Members Toolbox for IT Topics Oracle Oracle Applications Groups Ask a Question Oracle Applications Your premier resource for objective technical discussion and peer-topeer support on Oracle Applications. Home | Invite Peers | More Oracle Groups Migrating FSG Reports using 0 FNDLOAD Please Sign-in or Register to vote Reply from JC102157 | posted Jan 16, 2008 | Replies (9) Hello ritts1976, I guess I cannot attach files so here is the contents of the file: FNDLOAD_PROCEDURE.txt: The program afcpprog.lct is used for download/upload data of a Concurrent Program.

e.g For Download: $FND_TOP/bin/FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog. lct <ldt_result_file> PROGRAM CONCURRENT_PROGRAM_NAME=<your_program_name& gt; APPLICATION_SHORT_NAME=<your_appln_shortnam e> For Upload: $FND_TOP/bin/FNDLOAD APPS/APPS 0 Y UPLOAD $FND_TOP/patch/115/import/afcpprog. lct <ldt_result_file> How to download different seed data types? Solution The Generic Loader (FNDLOAD) is a concurrent program that can transfer Oracle Application entity data between database and text file.The loader reads a configuration file to determine which entity to access. 1 - Printer Styles FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcppstl.lct file_name.ldt STYLE PRINTER_STYLE_NAME="printer style name" 2 - Lookups FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/aflvmlu.lct file_name.ldt FND_LOOKUP_TYPE APPLICATION_SHORT_NAME="FND" LOOKUP_TYPE="lookup name" 3 - Descriptive Flexfield with all of specific Contexts FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt DESC_FLEX P_LEVEL='COL_ALL:REF_ALL:CTX_ONE:SEG_ALL' APPLICATION_SHORT_NAME="FND" DESCRIPTIVE_FLEXFIELD_NAME="desc flex name" P_CONTEXT_CODE="context name" Examples: Note <274528.1> - Note How To Download Single Context Using FNDLOAD For Descriptive Flexfield. Note <256573.1> - How To Download/Upload Descriptive Flexfield With Name $SRS$. 4 - Key Flexfield Structures

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_A LL:SHA_ALL:CVR_ALL:SEG_ALL ' APPLICATION_SHORT_NAME="FND" ID_FLEX_CODE="key flex code" P_STRUCTURE_CODE="structure name" 5 - Concurrent Programs FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct file_name.ldt PROGRAM APPLICATION_SHORT_NAME="FND" CONCURRENT_PROGRAM_NAME="concurrent name" 6 - Value Sets FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt VALUE_SET FLEX_VALUE_SET_NAME="value set name" 7 - Value Sets with values FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt VALUE_SET_VALUE FLEX_VALUE_SET_NAME="value set name" 8 - Profile Options FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct file_name.ldt PROFILE PROFILE_NAME="profile option" APPLICATION_SHORT_NAME="FND" 8 - Request Groups FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcpreqg.lct file_name.ldt REQUEST_GROUP REQUEST_GROUP_NAME="request group" APPLICATION_SHORT_NAME="FND" 10 - Request Sets FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcprset.lct file_name.ldt REQ_SET APPLICATION_SHORT_NAME="FND" REQUEST_SET_NAME="request set" Examples: Note <247126.1> - How To Download Request Set Definition From One Instance And Upload On Another Instance 11 - Responsibilities FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afscursp.lct file_name.ldt FND_RESPONSIBILITY RESP_KEY="responsibility" 12 - Menus

FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct file_name.ldt MENU MENU_NAME="menu_name" : Oracle Application System Administrator's Guide Appendix C has detail description on the usage of loaders. References Note 287417.1 - Parameters Of Different Configuration Files To Download And Upload Seed Data Types. Keywords 'FNDLOAD' CUST.drv: #$Header$ # # CUST.drv # # Driver file for patch installation CUSTOM_PATCH # # # NOTE: fields are separated by TAB characters # # Popular White Papers DB2 9.7 a Technical Overview More White papers 9 Replies Sign in or register for free to see all the answers on a single page Hi Has anyone moved FSG Reports from one instance to... Asked by ritts1976 | Jan 16, 2008 Hello ritts1976, I have attach the tools for using FNDLOAD... Reply from JC102157 | Jan 16, 2008 Hello ritts1976, I guess I cannot... -- current message Reply from JC102157 | Jan 16, 2008

Hi, You can use the standard functionality available in... Reply from Mukundan L | Jan 16, 2008 Are there any special requirements for running the FSG... Reply from Doug Garlin | Jan 17, 2008 i agree; i have used this standard program and it works... Reply from AIMConsult_LS | Jan 17, 2008 Hi, This is extremely useful if you are trying your FSG... Reply from Mukundan L | Jan 20, 2008 Hi, Is there any specific setup beside creating the database... Reply from KN | Jan 23, 2009 Message Name: RG_FLEX_ASSIGNMENTS Error: Structure Id's... Reply from Arul Kumar | Oct 29, 2009 you can migrate fsg reports using program also. For the... Reply from Kishan | Oct 29, 2009 Post your Response Show formatting options Loading formatting options... Ignore this text box. It is used to detect spammers. If you fill out this field, your

message will rejected.

Your e-mai

Submit

Watch this Thread Submitting... Help the community by answering these other questions: How to push data into ASO_QUOTE_HEADERS_ALL and

ASO_QUOTE_LINES_ALL? Difference between GL_JE_LINES_V and drilled down amount total In Oracle Purchasing can you copy documents (Agreements, Req Templlatess) across OUs? Please Sign In to Continue Username : Password: Keep me signed in
Sign In

1833622

technical-function 1833622

Migrating FSG Re

oracle-apps-l

http%3a%2f%2fo Reply

White Papers and Webcasts Oracle Database 11g Product Family Using Oracle In-Memory Database Cache to Accelerate the ... High Availability with Oracle Database 11g Release 2 More White Papers Previous Thread | < Previous Message | Next Message > | Next Thread 1833622

No thanks

Suggested Links

NetApp Cloud Solutions Build a Private Cloud to Fit Your Needs w/ NetApp. See How Today! www.netapp.com/cloud Leaders in IT Efficiency Use 50% Less Storage, Guaranteed w/NetApp. Calculate Your Savings Now! www.NetApp.com Software Developer Jobs at Microsoft Smart, Creative & Passionate People. Join Our Talent Community & Apply For Jobs. Microsoft-Careers.com IPv6 Migration Tips Avoid Deployment Issues & Challenges. Download Our Free Whitepaper to Learn How. www.Infoblox.com Buy a Link Now Register for free to view all 9 answers on a single page. Already a member? Sign in

Related Migrating FSG Reports using FNDLOAD Regarding FNDLOAD, Can we download a descriptive flexfield Structure along with all the value sets in it.

FNDLOAD problem - Not downloading values

Group Leaders Helpful Poster Sandeep Gandhi Independent Techno-Functional Consultant Top Contributor

Subrahmanyeswara Rao Voleti Oracle Financials Consultant Achievement Earner

Jayaprakash Redrouthu View All Leaders Toolbox.com for iPhone Solve problems on the go. Learn More...

Download Now Toolbox for IT My Home Topics People Companies Jobs White Paper Library Store Collaboration Tools Discussion Groups Blogs Wiki Follow Toolbox.com Toolbox for IT on Twitter Toolbox.com on Twitter Toolbox.com on Facebook Topics on Toolbox for IT Data Center Data Center Development C Languages Java Visual Basic Web Design & Development Enterprise Applications CRM ERP Infor PeopleSoft SAP SCM Siebel Enterprise Architecture & EAI Enterprise Architecture & EAI Information Management Business Intelligence Database Data Warehouse Knowledge Management Oracle IT Management & Strategy Emerging Technology & Trends IT Management & Strategy Project & Portfolio Management Cloud Computing Cloud Computing Networking & Infrastructure Hardware Mobile & Wireless Networking Telephony Operating Systems Linux UNIX Windows

Security Security Storage Storage Toolbox.com About News Privacy Terms of Use Work at Toolbox.com Advertise Contact us Provide Feedback Help Topics Technical Support Other Communities Toolbox for HR Toolbox for Finance Copyright 1998-2011 Toolbox.com, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not affiliated with or endorsed by any company listed at this site. Toolbox.com is a subsidiary of the Corporate Executive Board.

New to Toolbox? New to Toolbox? New to Toolbox? 0 New to Toolbox.com? The Toolbox.com community helps you solve workplace problems. Get started today - solve your problems and stay current. Join Now Ask A Question Join
Q965vT1t7ecdkF

/w EPDw ULLTExM

Bottom of Form

Vous aimerez peut-être aussi