Setting Up Oracle Forms Record and Playback

Configure Oracle Forms to record and replay keystrokes and mouse clicks for your Oracle Apps version.

Oracle Forms supports a record and playback feature, available in every version of Oracle Forms. When you run Oracle Forms in record mode, it records every keystroke and mouse click and writes everything to a file you specify. When you want to repeat the recorded activity on another system, run Oracle Forms in playback mode, specifying that file, and the forms will do whatever is specified in it.

For example, if you enter a purchase order in an order entry system while in record mode, and you want to re-enter this purchase order in another system, just play back that file on the other system and the purchase order is loaded into it.

The steps below show how to enable the record and playback feature in Oracle Forms, depending on your Oracle Apps release.

Oracle Apps Release R12

1Edit the ICX:Forms Launcher Profile

Login as Sysadmin and navigate to Profiles > System, then select the profile ICX:Forms Launcher and the username for whom you want to turn on recording, and click "Find". You'll see this profile setting at Site Level, Responsibility Level, Application Level, and User Level. The Site Level Profile option already contains a value used to launch forms. To turn on recording at the user level, copy this value from the Site Level Profile option to the User Level profile option and append the "record=" option at the end, as shown below.

If Forms Server is running in Unix:

Before Edit:

http://host.domainname:port/forms/frmservlet

After Edit:

http://host.domainname:port/forms/frmservlet?record=myrecord.fdl%20play=dummy.fdl

This will make Forms record all the keystrokes in the file myrecord.fdl in the default location $INST_TOP/logs/ora/[FORMS Version Number]/forms. For example, if the mount point of APPS_TIER is /u02/applmgr, the recorded files will be located at:

/u02/applmgr/PROD/inst/apps/PROD_[hostname]/logs/ora/10.1.2/forms

In Oracle EBS R12.2.3 / R12.2.4 the files will be located at:

/u02/applmgr/VIS/fs1/inst/apps/VIS_[hostname]/logs/ora/10.1.2/forms

Note: In R12 you have to specify the play=dummy.fdl option, otherwise Oracle Forms will not record any data.

Important Note: Edit the profile setting at Site Level, Application Level, or User Level depending on which level you want to enable recording. We recommend turning on recording at the user level for the user who will be running the load.

It is recommended that you create special user accounts for recording and playback, for example:

SAMRECORD — for recording purpose
SAMPLAY — for playback purpose

Then edit the ICX:Forms Launcher profile option with "record=" at the SAMRECORD user level and "play=" at the SAMPLAY user level, instead of setting the record and playback option at site level.

For Playback, Edit the Profile Option as Below

Oracle Forms can record and playback at the same time. This is good for knowing how much data Oracle Forms has processed while playing the file. Always use different filenames for recording and playback — otherwise Oracle Forms will overwrite the play file and the load will get stuck.

For Record and Playback in Unix

http://host.domain:port/forms/frmservlet?record=recplay.fdl%20play=play.fdl

In the above, Oracle will record in the file recplay.fdl and the file it will play is play.fdl.

2Create dummy.fdl File (R12 only — not required in 11.5.9 / 11.5.10)

Go to the $INST_TOP/logs/ora/[FORMS Version Number]/forms directory and open a new file dummy.fdl in any text editor, and write the following line:

WINDOW FNDSCSGN SIGNON_WINDOW ACTIVATE 1

For example, if the mount point of APPS_TIER is /u02/applmgr:

$ cd /u02/applmgr/PROD/inst/apps/PROD_[hostname]/logs/ora/10.1.2/forms$ vi dummy.fdl

Write the following line and save the file:

WINDOW FNDSCSGN SIGNON_WINDOW ACTIVATE 1

In Oracle EBS R12.2.3 / R12.2.4 the dummy.fdl should be located here (assuming /u02/applmgr is the mount point):

/u02/applmgr/VIS/fs1/inst/apps/VIS_[hostname]/logs/ora/10.1.2/forms

That's it — now Oracle Forms will record all keystrokes and mouse clicks whenever you log in to a user account for whom you specified the record= option in the profile setting.

A detailed step by step guide for enabling Forms Record and Playback in R12 is also available here.

Oracle Apps Release 11.5.9 / 11.5.10

1Edit the Forms Configuration File

To enable Forms for recording, you have to make changes to the Forms Configuration file appsweb.cfg, located in the $OA_HTML/bin directory. Make a backup of the file before editing it.

Open the Forms Configuration file (appsweb.cfg) and enter the following code at the end of the file in the Customizations section, as shown below:

[playback]code=oracle.forms.engine.MainRT;# ********************;# End customizations;# ********************

If $OA_HTML/bin/appsweb_{$ORACLE_SID}_{$HOSTNAME}.cfg also exists, edit this file too and make the same changes as in appsweb.cfg. It's always better to make a backup before editing.

After making the changes, save the file.

2Edit the ICX:Forms Launcher Profile

Login as sysadmin and navigate to Profiles > System, then select the profile ICX:Forms Launcher and the username for whom you want to turn on recording, and click OK. You'll see this profile setting at Site Level, Responsibility Level, Application Level, and User Level. The Site Level Profile option already contains a value used to launch forms. To turn on recording at the user level, copy this value from Site Level to User Level and append "record=" at the end, as shown below.

If Forms Server is running in Unix:

Before Edit:

http://host.domainname:port/dev60cgi/f60cgi

After Edit:

http://host.domainname:port/dev60cgi/f60cgi?record=myrecord.fdl

If Forms Server is running in Windows:

Before Edit:

http://host.domainname:port/dev60cgi/ifcgi60.exe

After Edit:

http://host.domain:port/dev60cgi/ifcgi60.exe?record=myrecord.fdl

This will make Forms record all keystrokes in the file myrecord.fdl in the default location {$8.0.6_HOME}/forms60/log directory in Unix, and $8.0.6_HOME/forms60/bin in Windows.

If you don't see the recorded file in that location, also check $COMMON_TOP/admin/log/[Context_Name] — Oracle sometimes creates recorded files there.

If you're having problems recording, please check the Frequently Asked Questions section for troubleshooting.

Important Note: Edit the profile setting at Site Level, Application Level, or User Level depending on which level you want to enable recording. We recommend turning on recording at the user level for the user who will be running the load.

We recommend creating special user accounts for recording and playback, for example:

SAMRECORD — for recording purpose
SAMPLAY — for playback purpose

Then edit the ICX:Forms Launcher profile option with "record=" at the SAMRECORD user level and "play=" at the SAMPLAY user level, instead of setting the record and playback option at site level.

For Playback, Edit the Profile Option as Below

Oracle Forms can record and playback at the same time. Always use different filenames for recording and playback — otherwise Oracle Forms will overwrite the play file and the load will get stuck.

For Record and Playback in Unix

http://host.domain:port/dev60cgi/f60cgi?record=rec.fdl%20play=myplay.fdl

For Record and Playback in Windows

http://host.domain:port/dev60cgi/ifcgi60.exe?record=rec.fdl%20play=myplay.fdl

In the above, Oracle will record in the file rec.fdl and the file it will play is myplay.fdl.

That's it — now Oracle Forms will record all keystrokes and mouse clicks whenever you log in to a user account for whom you mentioned the record= option in the profile setting.

Note: In Oracle Apps Rel 11.5.10.2 you must specify the record option along with the play option for playing a file — otherwise no playback will occur.

Oracle Apps Release 11.5.1 to 11.5.8

Edit the ICX:Forms Launcher Profile setting. Login as sysadmin and navigate to Profiles > System, then select the profile ICX:Forms Launcher and the username for whom you want to turn on recording, and click OK.

You'll see this profile setting at Site Level, Responsibility Level, Application Level, and User Level. The Site Level Profile option already contains a value used to launch forms. To turn on recording at the user level, copy this value from Site Level to User Level and append the "record=" option at the end, as shown below.

If Forms Server is running in Unix:

Before Edit:

http://host.domainname:port/dev60cgi/f60cgi

After Edit:

http://host.domainname:port/dev60cgi/f60cgi?record=myrecord.fdl

If Forms Server is running in Windows:

Before Edit:

http://host.domainname:port/dev60cgi/ifcgi60.exe

After Edit:

http://host.domain:port/dev60cgi/ifcgi60.exe?record=myrecord.fdl

This will make Forms record all keystrokes in the file myrecord.fdl in the default location {$8.0.6_HOME}/forms60/log directory in Unix, and $8.0.6_HOME/forms60/bin in Windows.

Important Note: Edit the profile setting at Site Level, Application Level, or User Level depending on which level you want to enable recording. We recommend turning on recording at the user level for the user who will be running the load.

We recommend creating special user accounts for recording and playback, for example:

SAMRECORD — for recording purpose
SAMPLAY — for playback purpose

For Playback, Edit the Profile Option as Below

Oracle Forms can record and playback at the same time. Always use different filenames for recording and playback — otherwise Oracle Forms will overwrite the play file and the load will get stuck.

For Record and Playback in Unix

http://host.domain:port/dev60cgi/f60cgi?record=rec.fdl%20play=myplay.fdl&code=oracle.forms.engine.MainRT

For Record and Playback in Windows

http://host.domain:port/dev60cgi/ifcgi60.exe?record=rec.fdl%20play=myplay.fdl&code=oracle.forms.engine.MainRT

In the above, Oracle will record in the file rec.fdl and the file it will play is myplay.fdl.

That's it — now Oracle Forms will record all keystrokes and mouse clicks whenever you log in to a user account for whom you mentioned the record= option in the profile setting.

Note: If you can directly open forms without going through sign-on pages, you can type the record and play file in the address itself, for example:

In Unix:

http://host.domain:port/dev60cgi/f60cgi?record=rec.fdl%20play=myplay.fdl

In Windows:

http://host.domain:port/dev60cgi/ifcgi60.exe?record=rec.fdl%20play=myplay.fdl

From Oracle Apps Ver. 11.5.10, by default you cannot directly open forms without going through sign-on pages. Oracle has done this for added security. If you want to open forms directly, follow these steps:

  1. Open the Application Context File $APPL_TOP/admin/<SID>_<hostname>.xml
  2. Change the context variable s_appserverid_authentication from SECURE to OFF
  3. Run AutoConfig