Monday, 4 January 2010

Run forms 10g on a client pc whitout OAS

1. Start ocj4 c:\oracle_home_dev_suite\j2ee\devsuite\startinst.bat

2. Edit file c:\oracle_home_dev_suite\forms\server\default.env and search for FORMS_PATH and there add your forms, plls and menu paths.
FORMS_PATH=C:\oracle\DevSuite\forms;w:\Desarrollo10g

3. If you use jar files for your application you must copy them to c:\oracle_home_dev_suite\forms\java, and also add it to the file c:\oracle_home_dev_suite\forms\server\formsweb.cfg, like this:

archive_jini=frmall_jinit.jar,ModCursor.jar,HyperLink.jar,icons.jar

4. To see your gif icons in your application edit the file C:\oracle_home_dev_suite\forms\server\forms.conf and add another alias to your icons directory, for example:
AliasMatch ^/forms/java/icons/(..*) "C:\oracle\DevSuite/forms/java/icons/$1"

Edit the file C:\oracle_home_dev_suite\forms\java\oracle\forms\registry\Registry.dat and where said default.icons.iconpath write:
default.icons.iconpath=/forms/java/icons/ (your icons directory)
default.icons.iconextension=gif


5. If you use a configuration for your application add it to c:\oracle_home_dev_suite\forms\server\formsweb.cfg, for example

[xxxpi]
baseHTMLJInitiator=basejpi.htm
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
jpi_codebase=https://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=1,4,2,4
jpi_mimetype=application/x-java-applet;version=1.4.2
jpi_download_page=https://java.sun.com/j2se/1.5.0/download.html
pageTitle=XXX
form=form_start_xxx.fmx
width=980
splashScreen=no
background=no
lookAndFeel=Oracle
colorScheme=blue
logo=no
archive_jini=frmall_jinit.jar,ModCursor.jar,HyperLink.jar,share.jar
archive=frmall.jar,ModCursor.jar,HyperLink.jar,laf_1012.jar,share.jar
otherparams=useSDI=yes
height=750
envFile=default_prod.env


6. To run on web your forms write on your explorer:
http://localhost:8890/forms/frmservlet?form=test_form.fmx&userid=pepe/pepito@orcl&otherparams=useSDI=yes&lookAndFeel=oracle&colorScheme=blue

The port is in the file c:\oracle_home_dev_suite\install\portlist and search for Oracle Developer Suite HTTP port =


7. On forms 10g on edit menu – preferences – ejecution set url to http://localhost:8890/forms/frmservlet (check the port)

No comments:

Post a Comment