The first part, installing Weblogic on RHEL / Oracle Linux 6 and configuring it Oracle Forms 12.2 is quite drawn out.
Tim H. has some very good articles that are very useful, click on the “here” links below for Tim’s most excellent blogs regarding Weblogic installs, and configs specifically for Oracle forms, the Oracle documentation is a bit too generic. Note: installing Weblogic 12.2 without a domain is the first and a prerequisite step.
Note: I only installed forms related software, not reports – so this blog is about using Oracle Forms 12.2 on Linux – with an option to use Forms Builder from Windows.
Generally, the high level process to setup 12.2 to run Oracle Forms is:
For those not familiar, building Oracle forms is done with Forms Builder, then deploying the Oracle Forms 12.2 you build is done with Weblogic/Fusion Infrastructure stack.
So the steps would be something like…
Install the WebLogic 12.2 application server – no domain creation in this step is necessary if your goal is running a form or report here.
Install Forms and Reports, it is also referred to as Fusion Infrastructure 12.2 (to create Weblogic domain(s) specifically for forms and or reports etc.) again Tim’s docs here.
Additional note: Forms install will offer two options – standalone forms builder and Forms and Reports Deployment, just pick the latter “Forms and Reports Deployment” and both a standalone forms builder and the deployment stack will be installed.
My preference is to build the forms from Windows 7 or 10 Pro and copy the .fmb to the deployment / Linux environment, just because that is normally the approach that I have taken over the years. If you choose this option, install the forms builder environment on Windows – you’ll have to copy the forms .fmb (source) to the deployment env. and then compile the .fmb in the deployment environment in to an .fmx (executable version). Using this approach is quite common in the industry.
Run RCU – this utility creates schemas to support security etc. for the installation here.
Configure your forms and or reports managed server (I just did forms) on Linux here.
setup a tnsnames.ora file in TNS_ADMIN
Configure formsweb.cfg with an application section for your form:
I added the following apps section to formsweb.cfg:
pageTitle=jobs from formsweb.cfg
Copy your form (.fmb) to the path in default.env in the same path as formsweb.cfg. This is my path:
Compile your form with frmcmp.sh – hint: find $DOMAIN_HOME -name frmcmp.sh or here is one of my compilations:
# copy the form from the VM share to:
# now cd into the directory where the form is to the .fmx gets created there as well
$FR_INST/bin/frmcmp module=JOBS_MULTI.fmb module_type=form userid=jobs/jobs@pdb2
Restart ohs1 (Apache I believe), and WLS_FORMS WebLogic managed server – once you have configured formsweb.cfg and moved your form in and compiled it.
So why do you need Webstart? You don’t necessarily but, it is an easy way to run a form without dealing with the restrictions of today’s secure browsers. Oracle Forms used to be run from a browser plug-in, and as you may know, many browsers no longer support plug-ins. Webstart creates a file with extension .jnlp that runs the form from a Oracle supplied java application forms servlet frmservlet.jnlp. Using the syntax below, Oracle prompts you to store the .jnlp file any where you want and then after saving simply double clicking on the .jnlp file will run the form. Note: java has to be installed as a prerequisite to using Webstart. I have jdk 1.8 installed and configured prior to using the URL below.
Here are the Linux based environment variables I used in this blog:
# User specific environment and startup programs