Install and configure Oracle Forms and Reports for high availability on OEL
This blog shows you how to install and configure Oracle® Forms and Reports version 12.2.1.3.0 on Oracle Enterprise Linux (OEL) version 7.2 server to ensure high availability.
The following diagram illustrates a high-availability model:
![](https://docs.rackspace.com/blog/install-and-configure-Forms-and-Reports-for-high-availability-on-OEL/Picture1.png)
To use this high-availability model, you need to perform the following tasks, which this blog covers in detail:
- Prepare to install WebLogic® Server version 12.2.1.3 on the application nodes (node1 and node2).
- Install JDK® 1.8.
- Install WebLogic Server 12.2.1.3.
- Create database schemas by using the Repository Creation Utility (RCU).
- Install Oracle Forms and Reports on node1 and node2.
- Create and configure the Forms and Reports domain on node1.
- Conduct post-installation tasks on node1.
- Use WebLogic
pack
andunpack
commands to join node2 to the clustered domain on node1. - Conduct post-installation tasks on node2.
- Configure Forms and Reports to use the HTTP server.
Prepare to install WebLogic Server
To prepare the operating system (OS) for the Weblogic Server installation, refer to the following documents. Ensure that the OS versions and required settings are complete on both the application nodes (node1 and node2).
For the certification matrix, see this Oracle reference document.
For Linux® requirements like OS packages, kernal settings, and memory settings, see these reference documents and ensure that you apply the patches to both nodes.
Install JDK 1.8
Use these steps to install JDK 1.8:
Download the Java Development Kit (JDK) from the Oracle Technology Network Portal.
Execute the following commands to unzip jdk-8u181-linux-x64.tar.gz, which you downloaded:
Set JAVA_HOME to point to JAVA directory by using the following commands:
Install WebLogic Server
To install WebLogic Server version 12.2.1.3 on both nodes, execute the following commands to navigate to software directory, extract the WebLogic software, set an environment, and start the installation:
To continue the installation on node 1, perform the following steps as prompted:
- In Set Installation Inventory setup, set the Directory to /u01/app/oraInventory, the OS Group to dba, and click OK.
- On the Welcome page, click Next.
- Enable Skip Auto Updates and click Next.
- Set Oracle Home to /u01/app/middleware and click Next.
- Select Fusion Middleware Infrastructure and click Next.
- If the prerequisite checks complete without any errors and warnings, click Next.
- Verify the Installation Summary and click Install.
- The Installation Summary should be 100% completed. After it finishes, click Next.
- Select Installation complete and click Finish.
Note: In the cluster setup, repeat the WebLogic Server installation by using the preceding steps on node2, with the same directory structure.
This completes the installation of the Oracle Fusion Middleware Infrastructure 12.2.1.3.0.
Create database schemas by using RCU
You should have already created a database and prepared it for the WebLogic Server domain. The database must be running.
Login to the server as user Oracle
and run the following commands to start the RCU:
To continue the installation, perform the following steps as prompted:
- On the Welcome page, click Next.
- On Create Repository page for the new Oracle Forms and Reports installation, select Create Repository -> System Load and Production Load.
- In Database Connection Details, provide the database connection information. Set Database Type to Oracle Database and enter the database server details. After the installer checks the database connectivity and opens a window, click OK.
- On the Select components page, set Prefix as PROD for the database schemas and select the following components:
- Oracle Platform Security Services
- Audit Services
- Audit Services Append
- Click Next, and after the installer checks the database prerequisites, click OK.
- On the Schema Passwords page, set the password for all the database schemas.
- On the Map Tablespace page, click Next and click OK when the following message appears: Validating and creating tablespaces.
- Verify the installation summary and click Create.
- Check the summary and click Close.
Install Oracle Forms and Reports
Perform the following commands on both node1 and node 2 to install Forms and Reports:
To continue the installation on node1, perform the following steps as prompted:
- In Set Installation Inventory setup, set Directory to /u01/app/oraInventory, the OS Group to dba, and click OK.
- On the Welcome page, click Next.
- Enable Skip Auto Updates and click Next.
- Set Oracle Home to /u01/app/middleware.
- For Installation type, choose Forms and Reports Deployment.
- On the Prerequisite Checks page, ensure that all checks are complete and click Next.
- On the Installation Summary page, verify that installation messages and click Install.
- On the Installation Progress page, ensure that all steps are complete and click Next.
- After the installation completes, check the installed components and click Finish.
Note: In the cluster setup, repeat the Forms and Reports software installation on node2 by using the preceding steps, with the same directory structure.
Create and configure the Forms and Reports domain on node1
Run the following commands to navigate to $ORACLE_HOME/oracle_common and start the configuration wizard to create and configure a Forms and Reports domain on node1:
To continue the installation on node1, perform the following steps as prompted:
On the Templates page, select Create a new Domain and set the Domain Location to /u02/app/middleware/user_projects/domains/DEV_domain.
On the next page, select Create Domain using Product Templates and select the following templates:
- Oracle Forms - 12.2.1.3.0 [forms]
- Oracle Reports Application - 12.2.1 [reports]
- Oracle Enterprise manager - 12.2.1.3.0 [em]
- Oracle HTTP ServerCollocated) - 12.2.1.3.0 [ohs]
- Oracle Reports Tools - 12.2.1 [ReportsToolsComponent]
- Oracle Reports Server - 12.2.1 [ReportsServerComponent]
- Oracle Reports Bridge - 12.2.1 [ReportsBridgeComponent]
- Oracle JRF - 12.2.1.3.0 [oracle_common]
- WebLogic Coherence Cluster Extension - 12.2.1.3.0 [wlserver]
On the Application Location page, set Application Location to /u02/app/middleware/user_projects/applications/DEV_domain.
On the Administrator Account page, set the Name and Password for the WebLogic administrator.
On the Domain Mode and JDK page, set Domain Mode to Production and check the JDK location of /u01/app/JAVA/jdk1.8.0_181.
On the Database Configuration Type page, select RCU Data and set Vendor to Oracle. For Connection Parameters, specify the correct schema prefix: PROD_STB and use the credentials from the previously executed “Create database schemas by using RCU” section. Click on Get RCU Configuration. After you verify everything, click Next.
In the Database Components section, select everything from the database details from step 6. Click Next.
On the JDBC Test page, ensure that all tests complete successfully. If anything is wrong, go back to step 6 and provide the correct details for the database. When everything is correct, click Next.
On the Advanced Configuration page, select Administration Server, Node Manager, Topology, and System Components.
On the Administration Server page, configure the AdminServer on node1. Set Server Name to AdminServer, set Listen Address to <Node1 Hostname>, and Port to 7001.
On the Node Manager page, configure the node manager for node1. Set Node Manager Type to Per Domain Default Location. Enter Node Manager credentials. Set Username to nodemgr and Password to welcome1. Click Next.
On the Managed Servers page, add the Forms and Report servers and the managed servers on both node1 and node2 as shown in the following table:
- On Clusters page, keep the default values and click Next.
- On the Server Templates page, keep the default values and click Next.
- On the Dynamic Templates page, keep the default values and click Next.
- On the Assign Servers to Clusters page, assign the servers as shown in the following table:
![](https://docs.rackspace.com/blog/install-and-configure-Forms-and-Reports-for-high-availability-on-OEL/Picture3.png)
- In Coherence clusters, keep the defaults and click Next.
- On the Machine Page, change the settings as shown in the following table:
![](https://docs.rackspace.com/blog/install-and-configure-Forms-and-Reports-for-high-availability-on-OEL/Picture4.png)
- On the Assign Servers to Machine page, add the AdminServer, WLS_FORMS1, and WLS_REPORTS1 to the Machine node1 and add WLS_FORMS1 and WLS_REPORTS1 to the Machine node2.
- On the Virtual Target page, select Don’t configure, and click Next.
- On the Partitions page, select Don’t configure, and click Next.
- On the System Components page, keep forms1 and ohs1. Add two more entries, forms2 and ohs2, as shown in the following table:
![](https://docs.rackspace.com/blog/install-and-configure-Forms-and-Reports-for-high-availability-on-OEL/Picture5.png)
- On the OHS Server page, select System Component ohs1 and provide the following details:
- Admin Host: Node1 IP Address
- Admin Port: 7779
- Listen Address: Node1 IP Address
- Listen Port: 7777
- SSL Listen Port: 4443
- Servername: https://
:7777 - On the OHS Server page, select System Component ohs2 and provide the following details:
- Admin Host: Node2 IP Address
- Admin Port: 7779
- Listen Address: Node2 IP Address
- Listen Port: 7777
- SSL Listen Port: 4443
- Servername: https://
:7777 - On the Assign System Components to machines page, assign forms1 and ohs1 to Machine Node1 and assign forms2 and ohs2 to Machine Node2.
- On the Configuration Summary page, verify the summary and click Create.
- After the domain creation completes, click Next.
- At the end of the Configuration page, click Finish.
Conduct post-installation tasks on node1
Perform the following steps on node1:
Run the following commands to disable the Derby database:
Run the following commands to start the AdminServer by using a script:
When prompted, enter username (weblogic) and the password to boot the WebLogic server.
To verify the AdminServer, browse to https://
:7001/console and log in with the credentials (weblogic and) from the domain creation step. Check the server status and then shut down the AdminServer from the console. Run the following commands to create boot.properties:
Run the following commands to edit nodemanager.properties, and change parameter CrashRecoveryEnabled=false to CrashRecoveryEnabled=true.:
Run the following commands to start NodeManager:
To start the managed servers on node1, browse to https://
:7001/console and enter the credentials (weblogic/). Start all the managed servers on node1 from the console. Configure the Reports server on Node1 as shown in the following section.
REPORTS SERVER CONFIGURATION ON NODE1
Perform the following configuration steps to configure reports on node1:
Create ReportsToolsInstance (by using
wlst
). Run the following commands to startwlst
:Run the following commands to connect to the AdminServer (Note: the AdminServer and WLS_REPORTS must be running):
Run the following command to create the reports server instance:
Run the following command to edit rwservlet.prpoerties to enable Reports Webaccess:
Add the following
line (shown in place): rep_wls_reports_host03 no yes L2
- Restart the managed server WLS_REPORTS1 from the console.
- Run the following command to create the stand alone reports server, my_rersrv:
- Run the following command to connect to the AdminServer(the AdminServer and WLS_REPORTS must be running):
- Run the following command to create the ReportsServerInstance:
- Run the following command to disable the single sign on for the Reports Server:
- Run the following commands to start the standalone reports server and save the NodeManager password:
- When prompted to try the nodemanager user password, enter Node Manager password:xxx.
Join node2 to the clustered domain on node1
Perform the following steps to join node2 to the clustered domain on node1:
Stop all the managed servers that are running from the console.
Stop the AdminServer from running in its terminal or console window.
Go to the /u01/cluster on node1.
Execute the following commands:
Go to node2 and open a terminal window.
Go to /u01/app/middleware/oracle_common/common/bin.
Execute the following
unpack
command:Run the following commands to start NodeManager on node2:
Perform the following steps on node1 to start the AdminServer on node1:
Open a terminal or console session.
Go to /u02/app/middleware/user_projects/domains/DEV_DOMAIN/bin.
Run the following command:
./startWebLogic.sh
Conduct post-installation tasks on node2
Perform the following configuration steps to configure reports on node2:
Create ReportsToolsInstance by using
wlst
. Run the following commands to startwlst
:Run the following commands to connect to the AdminServer (the AdminServer and WLS_REPORTS must be running):
Run the following command to create the reports server instance:
Run the following command to edit rwservlet.prpoerties to enable Reports Webaccess:
Add the following
line (shown in place): rep_wls_reports_host03 no yes L2
- Restart the managed server WLS_REPORTS1 from the console.
- Run the following command to create the stand alone reports server, my_rersrv2:
- Run the following command to connect to the AdminServer (the AdminServer and WLS_REPORTS must be running):
- Run the following command to create the ReportsServerInstance:
- Run the following command to disable the single sign on for the Reports Server:
- Run the following commands to start the standalone reports server and save the NodeManager password on node2:
- When prompted to try the nodemanager user password, enter Node Manager password:xxx.
Configure Forms and Reports to use the HTTP server
Perform the following steps to configure Forms and Reports:
Run the following commands on node1 to start the HTTP server:
Run the following commands on node2 to start the HTTP server:
Run the following command to edit the Forms configuration file, forms.conf, on node1:
Run the following command to edit the Reports configuration file, reports_ohs.conf on node1:
Run the following commands to copy forms.conf and reports_ohs.conf on node 1:
Use
scp
to copy forms.conf and reports_ohs.conf from $OHS_INSTANCE_HOME/moduleconf on node1 to $OHS_INSTANCE_HOME/moduleconf node2:Run the following commands to restart the HTTP server on node1:
Run the following commands to restart the HTTP server on node2:
Conclusion
Installing and configuring a cluster setup is a bit different from setting up a single server. The latest Fusion Middleware version 12.2.1.3 Forms and Reports installation and configuration on the cluster environment consists of two Forms and Reports managed servers running simultaneously to work together for increased scalability and reliability.
No comments:
Post a Comment