Oracle9i Forms Developer and Forms Services Migrating Forms Applications from Forms6i Release 2 (9.0.2) Part Number A92183-01 |
|
Oracle9i Forms provides a tool that updates obsolete usage in your PL/SQL code in order to migrate your Forms6i applications to Oracle9i Forms. The tool issues warnings when it cannot make the required changes automatically.
This chapter contains the following sections:
Go to http://otn.oracle.com for the latest version of the tool.
The Oracle9i Forms Migration Assistant does the following for all Forms module types (including object libraries and PL/SQL libraries):
The Oracle9i Forms Migration Assistant replaces built-ins and issues warnings about built-ins that exist within code comments.
You run the Oracle9i Forms Migration Assistant in batch mode. You can re-enter the utility as needed to run the migration process on a Forms application more than once.
By editing the converter.properties file, you can set options before you start the batch migration. By editing the search_replace.properties file you can specify the strings that the Oracle9i Forms Migration Assistant will search for and replace, and edit the warnings that are issued when an obsolete built-ins is encountered.
The tool creates a log file so that you can navigate to problem areas in the application and make modifications manually.
To change migration options, edit the converter.properties file in a text editor.
You can set the following migration options:
The search_replace.properties file contains the strings that the Oracle9i Forms Migration Assistant will search for and replace. It also contains a list of obsolete built-ins that will generate warnings.
You can edit this file to add your own search-and-replace strings, as follows:
SearchString|ReplaceString
Do not delete the last two commands in the search_replace.properties file. See the release notes for more information.
The warnings for built-ins have the following syntax:
<class>.Message=<WarningMessage> <class>.Warning1=<BuiltIn1> <class>.Warning2=<BuiltIn2> <class>.Warning3=<BuiltIn3> etc.
For example, for the class obsoleteMenuParam, the warnings are coded as follows:
obsoleteMenuParam.Message=Menu Parameters are no longer supported, the parameter and usage of %s should be replaced using a Forms parameter or global variable. obsoleteMenuParam.Warning1=MENU_PARAMETER obsoleteMenuParam.Warning2=QUERY_PARAMETER obsoleteMenuParam.Warning3=TERMINATE
<class>
is a group of built-ins that have a common warning. <WarningMessage>
can contain one variable string (%s
).
When the Oracle9i Forms Migration Assistant finds a built-in for which a warning should be issued, it logs the warning and replaces the variable string (%s
) with the built-in name.
Classes that have already been created in the search_replace.properties file are:
You can add more built-in warnings to an existing class, or create new classes and warnings:
Do not delete the last two commands in the search_replace.properties file. See the release notes for more information.
It is recommended that you first migrate common modules that other modules depend on.
Note:For Solaris, an xterm display is required to run the Oracle9i Forms Migration Assistant.Note: :
The forms90\rp2rro.pll file should be in the FORMS90_PATH in order to convert Run_Product to Run_Report_Object.
To start the Oracle9i Forms Migration Assistant on Windows, type
ifplsqlconv90 module=<modulename> userid=<userid> log=<log>
To start the Oracle9i Forms Migration Assistant on Solaris, type
f90plsqlconv module=<modulename> userid=<userid> log=<log>
Parameter | Description |
---|---|
modulename (required) |
Specifies the module to migrate. The modulename parameter can take only one value. See Migrating Multiple Files if you want to migrate more than one file at a time. |
userid (optional) |
Specifies a database connect string (for example, scott/tiger@db). If not specified, default values from the converter.properties file are used. If the syntax of the userid is incorrect, database connection information is taken from the converter.properties file. |
log (optional) |
Specifies the log file to which the migration results are written. If not specified, the default values from the converter.properties file are used. |
Information about the progress of the migration process is displayed on the screen. It is also saved to the log file that you specify in the converter.properties file. (To change migration options, see Editing the converter.properties File.)
Check the log file for information about required migration steps that the tool did not modify. Manually make these changes to your application.
On Windows NT, create a batch file (for example upgrade.bat) that contains the following:
for %%file in (%1) do call ifplsqlconv90 module=%%file
Then run the batch file as follows:
upgrade *.fmb
or
upgrade foo*.mmb
On Solaris, create a shell script (for example upgrade.sh) that contains the following:
for file in $* do f90plsqlconv.sh module=$file done
Then run the shell script as follows:
upgrade.sh *.fmb
or
upgrade.sh foo*.mmb
|
![]() Copyright © , 2002 Oracle Corporation. All Rights Reserved. |
|