form conversion step

21
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 box Click Start button Username: oracle Password: oracle

Upload: dsyaza

Post on 16-Nov-2014

938 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Form Conversion Step

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

Page 2: Form Conversion Step

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

Page 3: Form Conversion Step

Select Drive and Folder and click Finish button

Z: drive was successfully mapped

Page 4: Form Conversion Step

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.

Page 5: Form Conversion Step

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

Page 6: Form Conversion Step

Click Add Module(s) Button

Select *.fmb files to compile .fmb

Page 7: Form Conversion Step

Click Next button

Change log name

Page 8: Form Conversion Step

Give name for log file

Click Next button

Page 9: Form Conversion Step

Click Finish button

Give database connection and click OK button

Click Continue button

Page 10: Form Conversion Step

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

Page 11: Form Conversion Step

$ . /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

Page 12: Form Conversion Step

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

Page 13: Form Conversion Step

Object Navigator screen will appear

Open file that need to be modified

Page 14: Form Conversion Step

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

Page 15: Form Conversion Step

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 :

Page 16: Form Conversion Step

$ 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

Page 17: Form Conversion Step

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

Page 18: Form Conversion Step

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