You are on page 1of 15

Oracle 10g Forms & Reports Configuration

Manual
First u install only oracle Development suit oracle cd 1 , 2
After installing

1. Start ocj4.
2. =====================================
ICONS SETTINGS
3. =====================================

DEV_SUITE\forms\java\oracle\forms\registry\registry.dat

default.icons.iconpath=file:///C:\\icons (Not applicable for Application Server)

To show icons at design time go my computer properties go to tab advance and


add environment variable at system variables

UI_ICON=C:\icons (Applicable for DEV_SUITE Only)


UI_ICON_EXTENSION =gif (case sensitive) (Applicable for DEV_SUITE Only)

Make an entry in

DEV_SUITE\forms\server\forms.conf

# Virtual path for ICONS (used to show icons in a form)


AliasMatch ^/forms/icons/(..*) "C:\icons/$1"

Open Command Prompt


Set path=DEV_SUITE\jdk\bin;
command for jar file at dos prompt
go to c:\icons\
give this command to create jar icons file.
jar –cvf icons.jar *.gif
where icons is name of folder
=====================================

=====================================
LOV SETTINGS
=====================================
DEV_SUITE\forms\java\oracle\forms\registry\registry.dat
app.ui.lovButtons=true.
=====================================

=====================================
FORMS PATH SETTINGS
=====================================

(This is the most critical setting which will tell from where the forms will run)

4. Forms Path:
DEV_SUITE\forms\server\default.env
FORMS_PATH=DEV_SUITE\forms; D:\MyFolder;
Add new virtual form path other than dev_Suite/App_Server form path
Example
D:\MyFolder; (Note: The directory must be shared on Network)

Append this line


FORMS_REJECT_GO_DISABLED_ITEM=FALSE

After this

FORMS_RESTRICT_ENTER_QUERY=TRUE

=====================================

=====================================
FORMS CONFIGURATION
=====================================

Width and Height of explorer window which contains form ( Set these parameters
according to your standards)

DEV_SUITE\forms\server\formsweb.cfg

Form Size Setting


# Forms applet parameter
width=300
# Forms applet parameter
height=3501

Hide oracle window in form (Not Applicable for Application Server)


#Otherparams
usesdi=yes
Hide window tool bar at explorer.
# Forms applet parameter
separateFrame=true

Default Form Runtime Location (Applicable For Application Server)

# Forms runtime argument: which form module to run


form=login.fmx

# Forms runtime argument: database connection details


userid=olplog/olplog@olpsys2

Icon Settings (To get icons from jar files) (Applicable for Application Server)
# Forms applet parameter
imageBase=codebase

To close the Window of explorer (Applicable for Application Server)

Close.html text
<html>
<head>
<script language="javascript">
function closeit()
{
win = top;
win.opener = top;
win.close ();
}
</script>
</head>
<body onload="closeit()">
close window
</body>
</html>

To close explorer window put the close.html file into this location
DEV_SUITE\tools\web\html
Then at form level create a post-form trigger and edit the trigger with this command
Web.Show_Document('/forms/html/close.html','_self');
Changing Key Function
==================
DEV_SUITE\forms\fmrweb.res

9 : 0 : "Tab" : 1 : "Next Field"


9 : 1 : "Shift+Tab" : 2 : "Previous Field"
# 116 : 0 : "F5" : 3 : "Clear Field"
38 : 0 : "Up" : 6 : "Up"
40 : 0 : "Down" : 7 : "Down"
33 : 0 : "PageUp" : 12 : "Scroll Up"
34 : 0 : "PageDown" : 13 : "Scroll Down"
69 : 2 : "Ctrl+E" : 22 : "Edit"
10 : 0 : "Return" : 27 : "Return"
120 : 0 : "F9" : 29 : "List of Values"
115 : 0 : "F4" : 32 : "Exit"
75 : 2 : "Ctrl+K" : 35 : "Show Keys"
121 : 0 : "F10" : 36 : "Commit"
118 : 1 : "Shift+F7" : 61 : "Next Primary Key"
# 117 : 0 : "F6" : 62 : "Clear Record"
117 : 0 : "F6" : 74 : "Clear Record"
# 119 : 0 : "F8" : 74 : "Clear Form"
38 : 2 : "Ctrl+Up" : 63 : "Delete Record"
117 : 1 : "Shift+F6" : 64 : "Duplicate Record"
40 : 2 : "Ctrl+Down" : 65 : "Insert Record"
119 : 1 : "Shift+F8" : 66 : "Next Set of Records"
1005 : 0 : "Down" : 67 : "Next Record"
1004 : 0 : "Up" : 68 : "Previous Record"
# 118 : 0 : "F7" : 69 : "Clear Block"
66 : 2 : "Ctrl+B" : 70 : "Block Menu"
34 : 1 : "Shift+PageDown" : 71 : "Next Block"
33 : 1 : "Shift+PageUp" : 72 : "Previous Block"
# 116 : 1 : "Shift+F5" : 73 : "Duplicate Field"
# 116 : 1 : "Shift+F5" : 74 : "Clear Form"
118 : 0 : "F7" : 76 : "Enter Query"
# 122 : 2 : "Ctrl+F11" : 77 : "Execute Query"
119 : 0 : "F8" : 77 : "Execute Query"
112 : 1 : "Shift+F1" : 78 : "Display Error"
ORACLE 10G R2 AS & DEV_SUITE (10.1.2.0.2
OR 10.1.2.3)
Follow this documentation only if you have AS / DEV_SUITE If you have another version of AS /
DEV_SUITE backup each of the file referenced in this document before applying any modification.

Note: DEV_SUITE is used as an alias for your real Oracle 10g installation directory
Feel free to copy this note to a text editor, and do a global find/replace on
DEV_SUITE with your actual value (no trailing slash). Then it is easy to
copy/paste actual commands to be executed from the note copy.

DEV_SUITE is used as an alias for your real Oracle 10g Developer Suite installation directory.
---------------------------------------------------------------------------------------------------------------------
-
PRE-REQUISITE FOR APPLICATION SERVER (Usually Webutil is not installed with ORACLE
10G Application Server)

1- Copy webutil folder from DEV_SUITE/Forms to APP_SERVER/Forms

2- Copy frmwebutil.jar, forms_ie.js, forms_base_ie.js file from DEV_SUITE/Forms/Java


To APP_SERVER/Forms/Java folder

3- Copy webutil.cfg, WebutilBase.htm, webutiljini.htm, webutiljpi.htm files from


DEV_SUITE/Forms/Server folder to APP_SERVER/Forms/Server

4- Copy webutil.olb,Webutil.pll,webutil.plx files from DEV_SUITE/Forms folder to


APP_SERVER/Forms

If you don’t find some of these files from DEV_SUITE installation directory or don’t have
DEV_SUITE installed these files can also be found under this document root directory
Webutil Configuration
How to get up and running with WebUtil included with Oracle Developer Suite 10.1.2.0.2 on a
win32 platform, I also tested it on Linux and it works well (after of course taking care of the
differences in PATH format)

Solution
Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
here are steps to get a small test form running
Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.

1) Copy jacob.jar to DEV_SUITE\forms\java\


2) Copy jacob.dll to DEV_SUITE\forms\webutil\

3) Sign frmwebutil.jar and jacob.jar


Open a DOS command prompt.
Add DEV_SUITE \jdk\bin to the PATH:
set PATH=DEV_SUITE \jdk\bin
Sign the files, and check the output for success:
DEV_SUITE\forms\webutil\sign_webutil DEV_SUITE\forms\java\frmwebutil.jar
DEV_SUITE\forms\webutil\sign_webutil DEV_SUITE\forms\java\jacob.jar

4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
you may skip this step. Otherwise,
Create a schema to hold the WebUtil stored code, and privileges needed to
connect and create a stored package. Schema name "WEBUTIL" is recommended
for no reason other than consistency over the user base.
Open DEV_SUITE\forms\create_webutil_db.sql in a text editor, and delete or comment
out the EXIT statement, to be able to see whether the objects were created witout
errors.

Start SQL*Plus as SYSTEM, and issue:


CREATE USER webutil IDENTIFIED BY a
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
/
GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
/

CONNECT webutil/webutil@rcci
@DEV_SUITE \forms\create_webutil_db.sql
-- Inspect SQL*Plus output for errors, and then
CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
/

Reconnect as SYSTEM, and issue:


grant execute on webutil_db to public;

5) Modify DEV_SUITE \forms\server\default.env, and append


DEV_SUITE\jdk\jre\lib\rt.jar; DEV_SUITE\forms\java\jacob.jar;
to the CLASSPATH entry.

(If this entry not exists then add this)

WEBUTIL_CONFIG=/forms/server/webutil.cfg

6) Modify DEV_SUITE \forms\j2ee\orion-web.xml, and append

<virtual-directory virtual-path="/webutil"
real-path="DEV_SUITE/forms/webutil" />

7) WebUtil needs a single virtual directory to be defined in order to operate. This virtual
directory is used to locate various operating system-specific files that WebUtil may need to
download.
DEV_SUITE/forms/server/forms.conf

Add the following line to the file

# Virtual path for webutil

AliasMatch ^/forms/webutil/(..*) DEV_SUITE /forms/webutil/$1"

8) Modify DEV_SUITE \forms\server\formsweb.cfg insde [default] add :


(Note these line should be in this order to run webutil properly)

[webutil
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
#baseHTMLjinitiator=webutiljini.htm (UnMark this to use JINITIATOR instead of JRE)
baseHTMLjinitiator=webutiljpi.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
archive_jini=frmall_jinit.jar,icons.jar (For Jinitiator)
archive=frmall.jar,icons.jar (For JRE)
lookAndFeel=oracle

9) DEV_SUITE\forms\server\webutil.cfg

transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE

10) Start the OC4J instance

11) Start Forms Builder and connect to a schema in the RDBMS used in step (4).

12) Copy frmWebUtil.fmb to DEV_SUITE \forms\ folder from this documents directory open it
in the form builder then
Connect to webutil schema then webutil/webutil@connectstring
Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K). If any runtime error
occurs re-attach webutil.pll library then
Compile-All (Shift-Control-K).

Note: For Oracle Application Server, on all platforms, you must regenerate webutil.pll before using it; otherwise
you’ll encounter error
ORA-06508 when running a form with the attached library. To recompile, use the following command:

frmcmp module=ORACLE_HOME\forms\webutil.pll
userid=<webutil/webutil@dbconnect> module_type=library compile_all=yes

13) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if


the "Application Server URL" is empty.
Then append "?config=webutil" at the end, so you end up with a URL of the form
http://server:port/forms/frmservlet?config=webutil

14) Run your form.


If you want to use JRE instead of JINITIATOR follow these steps;

DEV_SUITE\forms\server\formsweb.cfg

Change this line


baseHTMLjinitiator=webutiljini.htm
to this
baseHTMLjinitiator=webutiljpi.htm

One more thing you cannot use webutil functions/procedure in pre-form and when-new-form-instance.
Because library/java beans need to loaded before using. It can be accomplished by running timer until
the bean loaded and calling the functions/procedure when timer expired.

To run Orix Aplication from Intranet allow popup from intranet site.

Following are the steps

In Internet Exporer
Open Tools>Popup-Blocker>Popup-Blocker Settings
Add entries
http://192.168.0.xx
http://192.168.0.xx
Troubleshooting After ORACLE 10g Patch 3 On
DEV_SUITE& AS
Subject: Webutil Fails After The Installation Of Forms 10.1.2.3 Into
Oracle AS : java.lang.NoSuchMethodError at
oracle.forms.webutil.common.VBeanCommon.init

OR

Application Server response very slow on client side or webutil


is not loading properly

Doc ID: 561273.1 Type: PROBLEM


Modified Date : 15-JUL-2008 Status: PUBLISHED

In this Document
Symptoms
Cause
Solution
References

Applies to:

Oracle Forms - Version: 10.1.2.3.0


This problem can occur on any platform.

Symptoms

After installing Forms version 10.1.2.3 into Oracle AS , the following error occurs when using
webutil

Error
java.lang.NoSuchMethodError
at oracle.forms.webutil.common.VBeanCommon.init(VBeanCommon.java:255)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Cause

frmwebutil.jar was not updated to 10.1.2.3 like in a Oracle developersuite installation.

Solution

1. Ensure that you're using the frmwebutil.jar with modification date 24th January 2008, 04:46
AM which is the 10.1.2.3 version and which has been compiled against the 10.1.2.3 frmall.jar by
Oracle

For the exact steps see also

To Get FRMWEBUTIL.JAR From IAS/IDS Patchset 10.1.2.x Kit for the exact steps to perform
are as follows:

Subject: How To Get FRMWEBUTIL.JAR From IAS/IDS Patchset


10.1.2.x Kit
Doc ID: 421930.1 Type: HOWTO
Modified Date : 17-DEC-2008 Status: PUBLISHED

In this Document
Goal
Solution
References

Applies to:

Oracle Forms - Version: 10.1.2.2.0 to 10.1.2.3.0


Information in this document applies to any platform.

Goal
This document explains how to obtain FRMWEBUTIL.JAR file from the IAS/IDS Patchset kit
(10.1.2.x). This file is needed when you upgrade the IAS from 10.1.2.0.2 to 10.1.2.2/3 to fix the
Webutil issues described in the
Note 403568.1 - Webutil Fails To Show The Filechooser or Other Functions of Webutil Demo
After Applying 10.1.2.x on OAS

Patches applied to WebUtil are delivered as part of a complete iDS release. They can be obtained
from the latest iDS install. IDS 10.1.2 is released only for Windows, Linux and Solaris only on
these platforms 10.1.2.x will contain the new webutil.jar version.
http://www.oracle.com/technology/products/forms/htdocs/webutil/WebUtilFAQ.htm
http://www.oracle.com/technology/software/products/ids/index.html

Solution

0. Download patch 10.1.2.2 (Patch 4960210) or 10.1.2.3 (Patch 5983622) and install it.

Current signature for frmwebuil.jar from 10.1.2.3 patch expires on January 2009. You can get a
new frmwebuil.jar that is signed with a new certificate that is valid beyond January 2009 from
Patch 7384879 . Please pay attention to the version you download 10.1.2.2 or 10.1.2.3. Once you
get the patch and unzip it, you can skip to step 8 .

1. Unzip the patchfile to a folder (we will call this folder Patch1012x for example).

2. Open a shell or a CMD window on your IAS server.

3. Ensure that the ORACLE_HOME environment variable is correctly pointing to your IAS
10.1.2 instance.
You can check this with the command :

On Linux/Unix:
echo $ORACLE_HOME

On Windows:
echo %ORACLE_HOME%

4. Add in the PATH environment variable the path to jdk\bin from your IAS installation:
For Linux/Unix:
export PATH=$PATH:$ORACLE_HOME/jdk/bin

For Windows:
export PATH=%PATH%;%ORACLE_HOME\jdk\bin

5. Go to folder
Patch1012x/Disk1/stage/Patches/oracle.developer.forms.builder/10.1.2.2.0/1/DataFiles/ (for
Linux/Unix)
OR
Patch1012x\Disk1\stage\Patches\oracle.developer.forms.builder\10.1.2.2.0\1\DataFiles\ (for
Windows)

OR

Patch1012x/Disk1/stage/Patches/oracle.developer.forms.builder/10.1.2.3.0/1/DataFiles/ (for
Linux/Unix)
OR
Patch1012x\Disk1\stage\Patches\oracle.developer.forms.builder\10.1.2.3.0\1\DataFiles\ (for
Windows)

6. Here you would have a file webutil.jar containing a file frmwebutil.jar (Linux/Unix) or a file
webutil.2.2.jar containing a file frmwebutil.jar0 (Windows) .

To check if the file is the right one run the following command and you should see the files in
the archive and the size of frmwebutil.jar (Linux/Unix) or frmwebutil.jar0 (Windows):

Linux/Unix:

jar tvf webutil.jar

will show:

282640 Mon Oct 09 22:45:58 EEST 2006 frmwebutil.jar (in 10.1.2.2)

Windows:

jar tfv webutil.2.2.jar

will show:

282645 Thu Oct 12 07:01:44 EEST 2006 frmwebutil.jar0 (in 10.1.2.2)

7. Extract the file from the JAR archive:

Linux/Unix:

jar xf webutil.jar forms/java/frmwebutil.jar

Windows:

jar xf webutil.2.2.jar frmwebutil.jar0


This should create a file frmwebutil.jar (Linux/Unix) or frmwebutil.jar0 (Windows) in the folder:
Patch1012x/Disk1/stage/Patches/oracle.developer.forms.builder/10.1.2.2.0/1/DataFiles/

OR

Patch1012x/Disk1/stage/Patches/oracle.developer.forms.builder/10.1.2.3.0/1/DataFiles/

8. Make a backup of frmwebutil.jar from the IAS 10.1.2.x installation.


The frmwebutil.jar is located in ORACLE_HOME/forms/java.

For Linux/Unix:
mv $ORACLE_HOME/forms/java/frmwebutil.jar $ORACLE_HOME/forms/java/frmwebutil.jar.old

For Windows:
ren %ORACLE_HOME%\forms\java\frmwebutil.jar %ORACLE_HOME%\forms\java\frmwebutil.jar.ol
d

9. Copy and rename the file that you extracted to ORACLE_HOME/forms/java.

For Linux/Unix:
mv frmwebutil.jar $ORACLE_HOME/forms/java/frmwebutil.jar

For Windows:
ren frmwebutil.jar0 %ORACLE_HOME%\forms\java\frmwebutil.jar

Attention

1.) Patchset 10.1.2.2 includes Webutil version 10.1.2.2 and patchset 10.1.2.3 includes Webutil
version 10.1.2.3

2.) For platforms where no Formsbuilder exists (e.g HP and AIX), you have to download
separately Linux/Windows/Sun Solaris patch and extract the same to get new frmwebutil.jar.

References

Note 403568.1 - Webutil Fails To Show The Filechooser or Other Functions of Webutil Demo
After Applying 10.1.2.x patchset on OAS

If u still found problems regarding webutil configuration follow the web_util.pdf document.
If you find any problem regarding this document feel free to contact me….

You might also like