8i | 9i | 10g | 11g | 12c | 13c | 18c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Articles » 12c » Here

Forms and Reports Services 12c (12.2.1) : Create a New Domain

This article presents a brief overview of creating a new domain for a Forms and Reports Services 12c deployment.

Related articles.

Assumptions

This article assumes the following.

In this case, I'm using a virtual machine called "ol7.localdomain" for this installation. Any references to this and the database server holding the associated repository will have to be substituted accordingly.

Create Domain

The images were originally captured from a 12.2.1.0 installation. The process is similar for 12.2.1.2, but there are some extra screens. If you know what you are doing feel free to make adjustments. If not, just click "Next" on the additional screens.

Launch the Configuration Wizard with the following command.

$ $ORACLE_HOME/oracle_common/common/bin/config.sh

Accept the "Create a new domain" option, enter the domain name at the end of the "Domain Location", then click the "Next" button. In this case my domain was called "frsdomain", so the path I used was "/u01/app/oracle/config/domains/frsdomain".

Configuration Type

Select the required product templates and click the "Next" button. In this case, we need the following, which will bring some dependencies with them.

Templates

Enter the application location and click the "Next" button. I used "/u01/app/oracle/config/applications/frsdomain".

Application Location

Enter the administrator credentials and click the "Next" button.

Administrator Account

Enter the domain mode and JDK details, then click the "Next" button.

Domain Mode and JDK

Enter the repository database connection details and click the "Get RCU Configuration" button. If the connection is successful, click the "Next" button.

Database Configuration Type

If you used the same password for all schemas, click the "Next" button. If not, fill in the correct passwords first.

JDBC Component Schema

If all the connection tests were successful, click the "Next" button.

JDBC Component Schema Test

Select the ("Managed Servers, Clusters and Coherence" or "Topology") and "System Components" options, then click the "Next" button.

Advanced Configuration

Enter the details for one or more managed servers, then click the "Next" button.

Managed Servers

Assuming you don't need any custom settings, accept the default cluster settings by clicking the "Next" button.

Clusters

Assuming you don't need any adjustments, accept the default managed server to cluster assignments by clicking the "Next" button.

Assign Servers to Clusters

Accept the default coherence configuration by clicking the "Next" button.

Coherence Clusters

If you are building a multi-node cluster, put the references to all the node managers here. If you are building a single node cluster, like I am, accept the defaults by clicking the "Next" button.

Machines

Map the managed servers to the node managers (machines) that control them. If you are building a single node cluster, like I am, accept the defaults by clicking the "Next" button.

Assign Servers to Machines

Click the "+ Add" button to add the OHS component (ohs1), then click the "Next" button.

System Components

Accept the default settings for the OHS Server component by clicking the "Next" button.

OHS Server

Map the system components to the managed server that controls them. Click the "Next" button.

System Components to Machines

If you are happy with the configuration summary screen, click the "Create" button.

Configuration Summary

Once the domain is created, click the "Next" button.

Configuration Progress

Make a note of the Admin Server URL and click the "Finish" button.

Configuration Success

Additional Configuration

boot.properties File

If you chose the "Production Mode" options for the domain, you will need to create a "boot.properties" file for the scripts referred to later to work without credentials. Adjust the DOMAIN_HOME and credentials appropriately.

export DOMAIN_HOME=$ORACLE_BASE/config/domains/frsdomain
mkdir -p $DOMAIN_HOME/servers/AdminServer/security
echo "username=weblogic" > $DOMAIN_HOME/servers/AdminServer/security/boot.properties
echo "password=Password1" >> $DOMAIN_HOME/servers/AdminServer/security/boot.properties
mkdir -p $DOMAIN_HOME/servers/WLS_FORMS/security
cp $DOMAIN_HOME/servers/AdminServer/security/boot.properties $DOMAIN_HOME/servers/WLS_FORMS/security/boot.properties
mkdir -p $DOMAIN_HOME/servers/WLS_REPORTS/security
cp $DOMAIN_HOME/servers/AdminServer/security/boot.properties $DOMAIN_HOME/servers/WLS_REPORTS/security/boot.properties

The "$ORACLE_BASE/config/domains/frsdomain" directory now contains a script that can be used to start the server. Remember to use the "&" if you want access to the command line to be returned.

$ $DOMAIN_HOME/startWebLogic.sh &

Once the server is started you can access the administrator console using the "http://hostname:port/console" URL. Log in using the username and password provided in the previous step.

Console

Reset Node Manager Username/Password

If you've not configured the node manager credentials during the domain creation, the following steps show you how to do it once the AdminServer has been started.

The node manager password has now been reset.

If you only have a single node manager on the server, this only needs to be done once per server. If you are using domain-specific node managers, you will need to do this for every new domain.

Web Tier

Since OPMN is no longer used, starting the HTTP Server must be done using WLST or the Enterprise Manager console. The process for starting it using EM is shown below.

If you have any problems starting the OHS, it's likely that the NodeManager is not running. Make sure this is started and try again.

The HTTP Server must be started once, for the directories associated with "ohs1" instance to be created. The web tier is not configured by default, so you will need to do the following.

Edit the "$ORACLE_HOME/forms/templates/config/forms.conf" file to contain the following.

  <Location /forms>
      SetHandler weblogic-handler
      WebLogicHost ol7.localdomain
      WebLogicPort 9001
  </Location>

Edit the "$ORACLE_HOME/reports/conf/reports_ohs.conf" file to contain the following.

  <Location /reports>
      SetHandler weblogic-handler
      WebLogicHost ol7.localdomain
      WebLogicPort 9002
  </Location>

Copy the config files to the "moduleconf" directory under the "ohs1" instance.

cp $ORACLE_HOME/forms/templates/config/forms.conf $OHS_INST/moduleconf
cp $ORACLE_HOME/reports/conf/reports_ohs.conf $OHS_INST/moduleconf

You shouldn't need to make any changes to the "$OHS_INST/httpd.conf" file.

Restart the HTTP Server, as described above, for the configuration changes to take effect.

To start the HTTP Server from the command line, issue the following command and type the node manager password when prompted.

$DOMAIN_HOME/bin/startComponent.sh ohs1 storeUserConfig

Subsequent stop and start calls can be made without the extra parameter and without specifying any node manager password.

# Start HTTP Server.
$DOMAIN_HOME/bin/startComponent.sh ohs1

# Stop HTTP Server.
$DOMAIN_HOME/bin/stopComponent.sh ohs1

You will see this used in the following section.

Startup Shutdown

The following scripts are useful. They assume the following.

To start up the whole WebLogic and FRS stack, issue the following commands.

# Adjust paths and domain name to suit your installation.
export ORACLE_BASE=/u01/app/oracle
export MW_HOME=$ORACLE_BASE/product/12.2.1
export WLS_HOME=$MW_HOME/wlserver
export WL_HOME=$WLS_HOME
export DOMAIN_HOME=$ORACLE_BASE/config/domains/frsdomain
export OHS_INST=$DOMAIN_HOME/config/fmwconfig/components/OHS/instances/ohs1

# Start NodeManager
nohup $DOMAIN_HOME/bin/startNodeManager.sh > /dev/null 2>&1 &

# Start WebLogic Domain
nohup $DOMAIN_HOME/bin/startWebLogic.sh > /dev/null 2>&1 &

sleep 60

# Start the managed Servers
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_FORMS > /dev/null 2>&1 &
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_REPORTS > /dev/null 2>&1 &

# Start the web tier.
$DOMAIN_HOME/bin/startComponent.sh ohs1

To stop the whole WebLogic and FRS stack, issue the following commands.

# Adjust paths and domain name to suit your installation.
export ORACLE_BASE=/u01/app/oracle
export MW_HOME=$ORACLE_BASE/product/12.2.1
export WLS_HOME=$MW_HOME/wlserver
export WL_HOME=$WLS_HOME
export DOMAIN_HOME=$ORACLE_BASE/config/domains/frsdomain
export OHS_INST=$DOMAIN_HOME/config/fmwconfig/components/OHS/instances/ohs1

# Stop the web tier.
$DOMAIN_HOME/bin/stopComponent.sh ohs1

# Stop the managed Servers
$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_FORMS
$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_REPORTS

# Stop WebLogic Domain
$DOMAIN_HOME/bin/stopWebLogic.sh

# Stop NodeManager
$DOMAIN_HOME/bin/stopNodeManager.sh

Important URLs

The basic URLs of importance are shown below. Ports may vary between installations.

Before you can start using Forms and Reports Services you will need to do some environment configuration, which is discussed here.

Web Start

Oracle Forms can easily be run using Java Web Start, freeing you from issues with browser compatibility. For this to work, you need a Java 8 JRE installed on the PC. To run using Web Start for the first time, simply issue the URL in the following form.

http://hostname:9001/forms/frmservlet?config=webstart
http://hostname:7777/forms/frmservlet?config=webstart

Depending on your browser, the Web Start version of the URL will either just run, or will ask you to save a ".jnlp" file on your computer. Once saved, you can double click on the file and it will launch Forms directly from the PC as a Web Start application, without using a browser.

For more information see:

Hope this helps. Regards Tim...

Back to the Top.