WebUtil Configuration
To configure WebUtil we have to configure a data source with the target database (in this case the target database is not the database we used for the RCU configuration)
Step 1 - Add the correct tns entries of the target database into the tnsnames.ora file of your app server.
[oracle@testserver-k ~]$ vi $ORACLE_HOME network/admin/tnsnames.ora
<tns-alias> =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <ip-of-target>)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = <service-name-of-target-database>)
)
)
[oracle@testserver-k ~]$ tnsping <tns-alias>
Step 2 - Connect to the weblogic console to configure a jdbc data source.
http://<ip-address>:7001/console
Navigate to: Services > Data Sources
Select Lock & Edit and create a new Generic Data Source
You can select the necessary components that you need the data source to be configured to.
Save and Activate Changes
Step 3 - As the weblogic user run the 'setWLSEnv.sh' script.
[weblogic@testserver-k ~]$ cd /u01/app/oracle/product/12.2.1/wlserver/server/bin
[weblogic@testserver-k bin]$ source setWLSEnv.sh
Step 4 - Test whether you can connect to the target database from the app server.
[oracle@testserver-k ~]$ . oraenv
ORACLE_SID = [oracle] ? <rcu-db>
[oracle@testserver-k ~]$ sqlplus <user>/<password>@<target-db-ip>:1521/<target-db-SID>
Step 5 - Execute the create_webutil_db.sql script
SQL> @/u01/app/oracle/product/12.2.1/forms/create_webutil_db.sql
Step 6 - Download the Jacob file from the following link and transfer it to a location inside your server.
[weblogic@testserver-k SOFTWARES]$ unzip jacob-1.21.zip
Step 7 - Copy the files to the respective locations as follows
[weblogic@testserver-k softwares]$ cp -r jacob-1.21/jacob-1.21-x64.dll /u01/app/oracle/product/12.2.1/forms/webutil/win64/
[weblogic@testserver-k softwares]$ cp -r jacob-1.21/jacob-1.21-x86.dll /u01/app/oracle/product/12.2.1/forms/webutil/win32/
[weblogic@testserver-k softwares]$ cp -r jacob-1.21/jacob.jar /u01/app/oracle/product/12.2.1/forms/java/
Step 8 - Take a backup of the 'sign_webutil.sh' file
[weblogic@testserver-k ~]$ cd /u01/app/oracle/config/domains/frsdomain/config/fmwconfig/components/FORMS/instances/forms1/bin
[weblogic@testserver-k bin]$ cp sign_webutil.sh sign_webutil.sh_ORG
Step 9 - Append the following values into the 'sign_webutil.sh' file.
KEYSTORE_PASSWORD=<weblogic-password>
JAR_KEY_PASSWORD=<weblogic-password>
Step 10 - Sign the jacob.jar file
[weblogic@testserver-k bin]$ ./sign_webutil.sh /u01/app/oracle/product/12.2.1/forms/java/jacob-1.21/jacob.jar
/u01/app/oracle/product/12.2.1/wlserver/../jdk/bin/keytool: No such file or directory
/u01/app/oracle/product/12.2.1/wlserver/../jdk/bin/jarsigner: No such file or directory
)
To verify whether the signing was successful:
[weblogic@appsvruat bin]$ jarsigner -verify -verbose /U02/app/oracle/product/12.2.1/forms/java/jacob-1.21/jacob.jar
Step 11 - Edit the 'extensions.jnlp' file
[weblogic@testserver-k bin]$ cd /u01/app/oracle/product/12.2.1.3/forms/java/
[weblogic@testserver-k java]$ vi extensions.jnlp
FROM:
<!-- <jar href="jacob.jar"/> -->
TO:
<jar href="jacob.jar"/>
Step 12 - Add the following values below the webutil configuration in your formsweb.cfg file if they are not present.
[weblogic@testserver-k ~]$ cd /u01/app/oracle/config/domains/frsdomain/config/fmwconfig/servers/WLS_FORMS/applications/formsapp_12.2.1/config/
[weblogic@testserver-k config]$ vi formsweb.cfg
[webutil]
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=on
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
archive=frmall.jar
baseHTML=webutilbase.htm
baseHTMLjpi=webutiljpi.htm
You have successfully conifgured WebUtil!
Follow the below guide to create a reports server:
Configuring a Reports Server in Oracle WebLogic Forms & Reports 12.2.1
Comments
Post a Comment