FORMS CONVERSION FROM ORACLE 6I TO ORACLE 10G
Use the following steps to convert Oracle Forms 6i to Oracle Forms 10g. STEP 1: OPEN VIRTUAL BOX
Open Linux virtual boxClick Start button
Username: oraclePassword: oracle
STEP 2: CREATE LOCAL LINUX DIRECTORY
Open terminalMake new directory $ mkdir dbp_training$ mkdir suzana
STEP 3: MAP NETWORK DRIVE
Open windows exploreSelect Tools →Map Network Drive
Select Drive and Folder and click Finish button
Z: drive was successfully mapped
STEP 4: COPY FILE
Open FileZillaInsert host, username, password, port and click QuickConnect button
Copy file forms which need to be converted from Z drive to directory that we created in step 2. Use drag and drop facility.
STEP 5: CONVERT LIBRARYPlease refer STEP 7 for details
$ frmplsqlconv.sh mode=wizard Select *.pll files to compile .pll and change log=converter_pll.log
STEP 6: CONVERT MENUPlease refer STEP 7 for details
$ frmplsqlconv.sh mode=wizard Select *.mmb files to compile .mmb and change log=converter_mmb.log
STEP 7: CONVERT FORM
Using the same terminal that we make directory on STEP 2
$ frmplsqlconv.sh mode=wizard
The forms Migration Assistant screen will appear
Click Add Module(s) Button
Select *.fmb files to compile .fmb
Click Next button
Change log name
Give name for log file
Click Next button
Click Finish button
Give database connection and click OK button
Click Continue button
Log file will be created
STEP 8: COMPILE LIBRARYPlease refer STEP 10 for details
Compile *.pll files using batch file - compilelibrary.sh
$ more compilelibrary.sh# COMPILE LIBRARYfor i in `ls *.pll` do echo Compile Library $i ... frmcmp_batch.sh userid=username/password@dasar batch=yes module=$i module_type=LIBRARY compile_all=yes window_state=minimize done
$ . /compilelibrary.sh
STEP 9: COMPILE MENUPlease refer STEP 10 for details
Compile *.mmb files using batch file - compilemenu.sh
$ more compilemenu.sh# COMPILE MENUfor i in `ls *.mmb` do echo Compile Menu $i ... frmcmp_batch.sh userid=username/password@dasar batch=yes module=$i module_type=MENU compile_all=yes window_state=minimize done
$ . /compilemenu.shSTEP 10: COMPILE FORM
Compile *.fmb files using batch file - compileform.sh
$ more compileform.sh
# COMPILE FORMfor i in `ls *.fmb` do echo Compile Form $i ... frmcmp_batch.sh userid=username/password@dasar batch=yes module=$i module_type=FORM compile_all=yes window_state=minimize done
$ . /compileform.sh
STEP 11: CHECK ERROR
Check log file. If error – modify using form builder compile again until no errors.
STEP 12: COMPILE USING FORMBUILDER
Open Oracle Form Builder to modify and compile library, menu and form
$ cd OraHome_1/bin$ frmbld.sh
Object Navigator screen will appear
Open file that need to be modified
Select Program → Compile ModuleIf there are bugs/error of the library, menu and form, please fix it. Then Compile again until no errors
STEP 13: CREATE NEW DIRECTORY AT SERVER
Open terminalConnect to Oracle Application Server$ ssh 10.1.103.125
In dbp_training directory, create your new directory$ cd dbp_training$ mkdir suzana
STEP 14: TRANSFER FILE TO SERVER
On localhost terminalGo to directory that contain the file need to be transferred$ cd dbp_training/suzana
Copy all file library, menu and form to the directory that we create on STEP 13$ scp *.fmb *.fmx *.pll *.plx *.mmb *.mmx
[email protected]:/home/oracle/dbp_training/suzana
Insert password and press Enter
STEP 15: CONFIGURATION FILE
Modify form configuration files in application server$ ssh 10.1.103.125
$ cd $ORACLE_HOME/forms/server
$ vi default.env add appl_directory into forms_path separate by :
$ vi formsweb.cfg create new configuration for application to be access by
Press <i> to edit the file
Press <esc>, then type :wq! to save the changes, or :q! to exit the file without saving
STEP 16: STOP AND START APPLICATION SERVER
When default.env file is modified, application server need to be stop and start again
check application server status$ opmnctl status
stop application server$ opmnctl stopall
start application server $ opmnctl startall
STEP 17: DOWNLOAD PLUG-IN (J2SE Runtime Environment 5.0 Update 12)
To run the application on the browser, Java plug-in need to be downloaded
Use the following url to download java plug-inhttp://appl01.dbp.gov.my:7777/forms/jinitiator/jre-1_5_0_12-windows-i586-p.exe#Version=1,5,0,12
STEP 18: TEST APPLICATION
check your application. Using the following url http://appl01.dbp.gov.my:7777/forms/frmservlet?config=latihan-suzana
STEP 19: ALTERNATIVE WAY TO CALL THE APPLICATION
If we don’t create a configuration for application to be access by in formsweb.cfg, then use the following url to call the application
http://appl1.dbp.gov.my:7777/forms/frmservlet?form=mainlalu&userid=latihan/latihan@dasar&width=800
STEP 20: COPY TO SECOND SERVER
Repeat STEP 13 to STEP 16 for Oracle Application Server: 10.1.103.126
STEP 21: ACCESS APPLICATION THROUGH LOAD BALANCE
After we make our application available on both application server i.e.; appl01: 10.1.103.125appl02: 10.1.103.126
Then we can access the application through load balance, using the following url
http://smpbd.dbp.gov.my:7777/forms/frmservlet?config=latihan-suzana