Webutil Configuration: 1, Downloading Files

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

WebUtil Configuration

The article is divided into four main sections as following:


1. Downloading the required files.
2. Files to be copied at specific locations.
3. Data entries to be put into specific files.
4. Signing two jar files to give them the ability to access operating system resources.
5. Installing webutil_db package at the database.

1st, Downloading Files


Downloading WebUtil
ƒ Included with Oracle Developer Suite 10g if you'd chosen the Full Install option.
ƒ Download as separate zip file from Oracle Technology Network. webutil_106.zip
Downloading JACOB
Download as separate zip file from Oracle Technology Network. jacob_18.zip

2nd, Copying Files


1. Copy the contents of webutil_106 directory into Oracle_DevHome\forms or Oracle_DevHome\forms90
directory.
2. From Jacob_18 folder,
ƒ Copy the jacob.dll file into Oracle_DevHome\forms\WebUtil directory
ƒ Copy the jacob.jar file into Oracle_DevHome\forms\java directory

3rd, Data Entries


1. Create and Define a Single Virtual Directory
ƒ For Oracle Developer Suite:
1. Open the j2ee\DevSuite\application-deployments\forms\formsweb\orion-
web.xml under the Oracle Developer Suite Oracle Home
2. Add the following line to the file
<virtual-directory virtual-path="/webutil" real-
path="$ORACLE_HOME/forms/webutil" />
ƒ For Oracle Application Server
1. Open forms\server\forms.conf file
2. Add the following line to the file
AliasMatch ^/forms/webutil/(..*) $ORACLE_HOME/forms/webutil/$1"

2. formsweb.cfg
WebUtilArchive=frmwebutil.jar,jacob.jar
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
WebUtilLogging=off
WebUtilLoggingDetail=Normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilMaxTransferSize=16384
WebUtilTrustInternal=TRUE
archive_jini=frmall_jinit.jar
archive=frmall.jar
lookAndFeel=oracle
envFile=default.env

1
3. default.env
ƒ FORMS_PATH must include the directory where a copy of webutil.pll exists
ƒ You can either explicitly add the webutil\forms directory to this path
FORMS_PATH=ORACLE_HOME\forms;ORACLE_HOME\webutil\forms
ƒ Or you can copy the webutil.pll file to an existing directory that is mapped into the FORMS_PATH
or the ORACLE_PATH
FORMS_PATH=ORACLE_HOME\forms
ƒ WEBUTIL_CONFIG=ORACLE_HOME\forms\server\webutil.cfg
ƒ CLASSPATH=\ORACLE_HOME\forms\java\frmwebutil.jar;c:\ids9i\jdk\jre\lib\r
t.jar
ƒ PATH=ORACLE_HOME\jdk\jre\bin\client

4. webutil.cfg
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
transfer.appsrv.read.1=c:\
transfer.appsrv.write.1=c:\
Means that only the allowed server drive to read and write files is the C drive.

4th, Jar Signing


Used Tools:
ƒ sign_webutil.bat at forms\WebUtil directory
ƒ jarsigner at ORACLE_HOME\jdk\bin
ƒ keytool at ORACLE_HOME\jdk\bin

Steps:
1. Since the batch file uses the jarsigner.exe and keytool.exe utilities, when running the batch file, the two utilities
must be accessible. To ensure that, do one of the following:
ƒ Check that the ORACLE_HOME\jdk\bin –where the utilities reside- path is at the PATH entry of the
"Environment Variables" and it's entered before the any java specific path.
ƒ Copy sign_webutil.bat file into the same directory where the utilities -jarsigner.exe and keytool.exe- reside,
ORACLE_HOME\jdk\bin.
2. Open the Command Prompt, cmd, and change the current path to the one where the sign_webutil.bat file
reside, either to ORACLE_HOME\jdk\bin directory or to ORACLE_HOME\forms\webutil
directory according to step one.
3. Issue sign_webutil.bat ORACLE_HOME\forms\java\frmwebutil.jar
4. Issue sign_webutil.bat ORACLE_HOME\forms\webutil\jacob.jar

2
5th, Installing webutil_db package
1. Run the create_webutil_db.sql script file located at the downloaded webutil_106.zip file, then either:
ƒ Start Æ Run Æ sqlplus <user>/<password>@db <create_webutil_db.sql path>
ƒ Connect using <user>/<password> then
@create_webutil_db.sql path
2. Create a Synonym for the created package
create public synonym webutil_db for <user>. webutil_db
3. Check that the package and the synonym were successfully installed
ƒ Connect as sys/<password> as sysdba
ƒ Select owner, object_type from dda_objects where object_name='webutil_db'
ƒ You should get something like that:
OWNER OBJECT_TYPE
-------------------------- --------------------------------
PUBLIC SYNONYM
<USER> PACKAGE
<USER> PACKAGE BODY

You might also like