White Paper Data Load Performance
White Paper Data Load Performance
Executive Overview
Forms Playback is an undocumented feature of Oracle Applications that can be used to speed up data entry of large amounts of data by up to 10 times that of conventional methods. It is an invaluable tool during the time of implementations, conversions or routine data maintenance activities. Its many benefits include: 10 times faster than Data Loader Greater accuracy and reliability Ability to run in the background while working on other windows Recording a log of all actions for review Option to run in "silent" mode which is even faster Cost-effective no additional licensing costs or programming efforts
This innovative solution of using Forms Playback ended up saving thousands of hours of Business effort at a US Fortune-50 retailer. It was appreciated by Business and IT Management alike as an innovative solution to a ubiquitous problem.
Page 2 of 9
TABLE OF CONTENTS
EXECUTIVE OVERVIEW ............................................................................................................ 2 PURPOSE OF THE DOCUMENT ................................................................................................ 4 WHY FORMS PLAYBACK?......................................................................................................... 4 BACKGROUND .............................................................................................................................. 4 OVERVIEW..................................................................................................................................... 5 SETUP .............................................................................................................................................. 6 USAGE EXPLAINED WITH AN EXAMPLE ............................................................................. 7 CONCLUSION ................................................................................................................................ 9
Background
Oracle Forms can record all the events in a forms session to a text file, which can then be replayed by the forms software at a later date. By editing the file produced in the manner described here, Oracle Forms will replay your data and make your changes or data loads for you. Before this functionality can be used Forms software must be enabled to run in this mode. We achieved this by editing the URL which starts Oracle Forms. Furthermore, one URL will be required for recording and another for playback. We involvement our DBA team for this step and it is fully described in the Setup section. Before recording the Oracle Forms session we planned exactly what we were going to do. Since our recording would be replayed many times over, any mistakes would also be replicated for each row of playback later. Once our load was built it had to be tested. This involved copying the file produced by Data Load to a location accessible to our Forms software and running Oracle Forms using the playback parameter. This is explained with the help of an example.
Page 4 of 9
Overview
The following is an overview of the steps we followed in a typical Forms Recording and Playback session: 1. We performed the Forms Playback setup as described in the Setup section which follows. 2. We recorded a load using the recording URL obtained from step 1. For ease of editing, we made sure that we performed similar updates and recorded exactly two of these, thus helping us to locate the fields that stayed the same from those that changed. 3. We copied the load file recoded in step 2 from the Forms server to our PC. 4. We opened the file in a text-editor and identified the header (the portion that appears just once at the very start), the repeating rows or body (the actual data entry) and the footer at the bottom (optional and used to close the window). 5. We replaced and added to the body the actual data that needs to be loaded. 6. We saved our changes and copied the file back to the server, ensuring the file was named and located as detailed in the Setup section. 7. We started the playback by loading the playback URL in the browser.
All the above steps are also explained with the help of an example, where we used Excel to automatically update 1,000 GL accounts.
Page 5 of 9
Setup
1. We open an Oracle Apps session, right-clicked on a blank space in the loading window and selected Properties to copy the Address (URL):
2. We broke the URL of the Oracle window into 4 components as shown below. The URL:
http://appfin1dev1.server.com:11160/dev60cgi/f60cgi?colorScheme=BLUE&lang=US&env=NLS_LANG='AMERICAN_AM ERICA.UTF8'+FORMS60_USER_DATE_FORMAT='DD-MONRRRR'+FORMS60_USER_DATETIME_FORMAT='DD-MONRRRR%20HH24%3AMI%3ASS'+NLS_DATE_LANGUAGE='AMERICAN'+NLS_SORT='BINARY'&form_params= +config='FIN1DEV1'+icx_ticket='.876170282'+resp='SQLGL%2FABSN_GL_SUPER_USER'+secgrp='STANDAR D'&encoding=UTF-8
3) 4)
2) For Playback:
&record=/tmp/dataload/reclog.fld%20play=/tmp/dataload/record_file.fld&code=oracle.forms.engine.Mai nRT
2) For Playback:
http://appfin1dev1.server.com:11160/dev60cgi/f60cgi?colorScheme=BLUE&lang=US&env=NLS_LANG='AMERI CAN_AMERICA.UTF8'+FORMS60_USER_DATE_FORMAT='DD-MONRRRR'+FORMS60_USER_DATETIME_FORMAT='DD-MONRRRR%20HH24%3AMI%3ASS'+NLS_DATE_LANGUAGE='AMERICAN'+NLS_SORT='BINARY'&enc oding=UTF8&record=/tmp/dataload/reclog.fld%20play=/tmp/dataload/record_file.fld&code=oracle.forms.en gine.MainRT
b. From the dialog box that came up, we chose Open With > Choose Program c. From the list that came up, we selected WordPad and checked the box Always use this program to open these files.
Page 7 of 9
2. We left this file open. This file would hold the macro commands for the Forms playback functionality. We changed the username, password and responsibility to the appropriate values in lines numbered 2, 4 and 6 and scrolled to the very end. 3. We opened the worksheet CCID_update.xls:
a. This is a template for updating 1,000 CCIDs at a time. We entered complete code combination strings (1,000 different valid values) in column C of the worksheet. b. We pressed Alt + Shift + Ctrl + F9 to recalculate the formulas in column A of the worksheet. c. Now column A holds the values for the macro. We copied the entire contents of column A. d. We pasted this at the bottom of the file ccid_update.fld. e. Pasting the values from Excel resulted in all the cells being wrapped in quotes. These are not needed and were deleted by doing a replace all to replace the quotes with a blank value. We made sure that the quotes around the responsibility ("GL Super User") under Line # 6 do not get deleted. f. We saved this as a text file named record_file.fld. 4. We asked DBA s to upload the file to the forms server (taking care to upload in ASCII). 5. These files were executed by loading the special URLs described in the Setup section. 6. The log for the session was recorded in the reclog.fld file. Similarly, this method can be used wherever repetitive date entry tasks need to be automated.
Page 8 of 9
Conclusion
Comparison of Standard Data Load and Forms Playback: Disabling 100 CCID s took 58 60 seconds in Standard Data Load:
Disabling 100 CCID s took 12-15 seconds using Forms Playback i.e. it was 4-5 times faster than using Data Loader. The results improve even further with larger loads. To summarize, forms playback has the following benefits: Greater speed: Since the playback files are on the forms-server there is no latency in sending the data Greater accuracy and reliability: Since Oracle Forms runs the data load instead of a separate tool, it is never out of sync. Cost-effective: It does not require additional licensing or programming efforts since the capability comes in-built with Oracle Applications Ability to run in the background while working on other windows unlike conventional Data Load Recording a log of all actions for audit or support purposes Option to run in silent mode which is faster or normal mode which shows the actions as they happen
Page 9 of 9