---
title: How to analyze Oracle Forms performance in a live environment ?
description: Forms Diagnostics Agent or Forms Metrics Agent enables the user to analyze various performance-related information about Forms applications running in your environment
url: https://renaps.com/en/blog/forms-and-java/Forms-Diagnostics-Agent
language: en
translations:
  fr: https://renaps.com/fr/blog/forms-and-java/Forms-Diagnostics-Agent
date: 2024-09-04
updated: 2026-01-17
author: RENAPS DBA Team
tags:
- Oracle Forms
- Performance Tuning
- Oracle WebLogic Server
- Troubleshooting
---

# How to analyze Oracle Forms performance in a live environment ?

Forms Diagnostics Agent or Forms Metrics Agent enables the user to analyze various performance-related information about Forms applications running in your environment

Note: For Forms Diagnostics Agent to work, see [Installing and Configuring Oracle Forms](https://docs.oracle.com/pls/topic/lookup?ctx=en/middleware/developer-tools/forms/12.2.1.19/working-forms\&id=FRINS101).

This agent accesses the metrics data (available in DMS) at regular time intervals and populates the database tables. This process allows the user to access the data collected as historical data. The deployment of Forms Diagnostics agent is optional. The agent application provides an interactive interface where the user can specify the frequency of data collection and also control the starting and stopping of data collection. This can be achieved by performing the tasks in the following sections:

- [Setting up the Database Schema](https://renaps.com/en/blog/forms-and-java/Forms-Diagnostics-Agent#GUID-702212A6-A07E-49F2-BA5C-995277E7E6FB "To set up DB schema for Forms Diagnostics Agent, you must create a user and schema in the database. The user can choose a database instance of their choice. There is no special database that is installed with Forms or the diagnostic agent.")
- [Setting up a Data Source in WebLogic](https://renaps.com/en/blog/forms-and-java/Forms-Diagnostics-Agent#GUID-93D1929F-7230-436D-B5BA-28E7AA8A316B "After setting up the database to work with the Forms Diagnostics Agent, you must set up a data source using the Weblogic console.")
- [Deploying Forms Diagnostics Agent](https://renaps.com/en/blog/forms-and-java/Forms-Diagnostics-Agent#GUID-5A4A6D13-184E-4A26-84B6-8B5341097544 "After setting up a data source in Weblogic, Forms Diagnostics agent must be deployed to the Weblogic Admin Server.")
- [Managing the Data Collection](https://renaps.com/en/blog/forms-and-java/Forms-Diagnostics-Agent#GUID-2D98D51A-8863-4D0D-8C9D-22BD4F1C19EF "The Forms Diagnostics agent allows the users to manage data collection using an interface.")
- [Use the Agent Application](https://renaps.com/en/blog/forms-and-java/Forms-Diagnostics-Agent#GUID-10283BD9-89C1-4D9D-924D-9A05B7313689 "When the user prompts the agent application to start the collection of metrics, the agent collects the metrics from DMS and populates the database tables. The user can access this collected metrics in the database tables.")
- [Limitations of the Agent Application](https://renaps.com/en/blog/forms-and-java/Forms-Diagnostics-Agent#GUID-54021FDC-488D-4078-B140-A253908EBF28 "Forms Diagnostics agent has certain limitations on its deployment and usage.")

## Setting up the Database Schema

To set up DB schema for Forms Diagnostics Agent, you must create a user and schema in the database. The user can choose a database instance of their choice. There is no special database that is installed with Forms or the diagnostic agent.

Create a User in Database

Note:

Before creating a user in the database, ensure that the user name provided by you is new and does not already exist. This is because the `.sql` script (used to create the user in the database) overwrites the user (user name provided during the creation) with the new user.

To create a user in the database, perform the following steps:

1. Log in to the database as `sysdba` as shown below: `sqlplus sys/@ as sysdba`
2. Run the following script: `@ORACLE_HOME/forms/forms_create_diagnostics_user.sql`.
3. The user must enter the userID and password.

The user is created in the database.

Create a Schema in Database

Note:

Before creating a schema in the database, ensure that the user name provided by you is new and does not already exist. This is because the `.sql` script (used to create the schema in the database) overwrites the schema (user name provided during the creation) with the new schema.

To create a schema in the database, perform the following steps:

1. Log in to the database as the user that you created in the above steps: `sqlplus /@`
2. Run the following script: `@ORACLE_HOME/forms/forms_create_diagnostics_schema.sql`

The schema is created in the database.

## Setting up a Data Source in WebLogic

After setting up the database to work with the Forms Diagnostics Agent, you must set up a data source using the Weblogic console.

To setup a data source using the Weblogic console, perform the following steps:

1. Log into the WebLogic console.
2. In the left navigation panel, select **Services** and navigate to **Data Sources**. Click **Lock and Edit** in the Change Center window to make changes.
3. In the **Summary of JDBC Data Sources** page, click **Configuration**. In the **Data Sources** table, click **New** and select **Generic Data Sources** from the list.
4. Enter the values for the following parameters: **name for the JDBC Data Sources** The user can enter any name. **JNDI name** oracle/forms/agentDS **Database Type** Choose type of database that you used to create user and schema in the previous steps. Click **Next**. The **Create a new JDBC data sources** page appears.
5. Select **Database driver** from the list of drivers available for the type of database you have selected. Click **Next**.
6. Enter the values for the following parameters: **Database Name** **Host Name** **Port** **Database User Name** Enter the user name that you used while creating a user in the database in the steps above. **Password** Enter the password that you used while creating a user in the database in the steps above. Click **Next**.
7. In the next page, click **Test Configurations** at the top left corner to check if the database has been configured successfully. Click **Next**.
8. Select **Admin Server** as a target to deploy the data source. Click **Finish**.
9. Click **Activate Changes** in the Change Center window to save changes.

You have now set up a JDBC data source.

## Deploying Forms Diagnostics Agent

After setting up a data source in Weblogic, Forms Diagnostics agent must be deployed to the Weblogic Admin Server.

To deploy Forms Diagnostics agent, perform the following steps in the Weblogic console:

1. Log into the Weblogic Console.
2. In the left navigation panel, select **Deployments**. Click **Lock and Edit** in the Change Center window to make changes.
3. In the Summary of Deployments page, click **Install**. The **Install Application Assistant** page appears.
4. Enter the path of the .war file as shown below: `ORACLE_HOME/forms/j2ee` This is the location of the `formsagentapp.war` file.
5. Select the `formsagentapp.war` file. Click **Next**. The **Choose Targeting Style** page appears.
6. Select **Install this deployment as an application**.
7. Select **Admin Server** as a target to deploy Forms Diagnostics Agent. Click **Next**.
8. Leave the optional settings at their default values and click **Finish**. Click **Activate Changes** in the Change Center window to save changes.

The Forms Diagnostics agent has been successfully deployed to the Weblogic Admin Server.

To start the application, select **formsagentapp** from the list of deployed applications and Click **Start**.

## Managing the Data Collection

The Forms Diagnostics agent allows the users to manage data collection using an interface.

The user can specify the frequency of data collection and control the starting or stopping of data collection. This can be achieved by performing the following steps:

1. Log in to the agent console by using the following url: `http://:/formsagent/AgentConsole.jsp`
2. Enter the user ID and password. Any user with administrator's privileges can log in to the console.
3. Enter a value for the **Frequency of Data Collection**. This parameter is the time difference between two consecutive data collections. The default value is 10 minutes. The minimum value should be one minute.
4. Click **Start**.

You will see a message indicating that the Forms Diagnostics Agent is running. Click **Stop** whenever you want to stop the collection of metrics by the agent.

## Use the Agent Application

When the user prompts the agent application to start the collection of metrics, the agent collects the metrics from DMS and populates the database tables. The user can access this collected metrics in the database tables.

To bring this collected metrics into use, the user can create a frontend application which will be able to read this data and analyze the historical performance of Forms applications running in your environment by preparing charts, graphs, etc.

The primary and foreign key in each table has been mentioned in the respective tables. The following are the database tables that get populated during the collection of metrics by the Forms Diagnostics agent:

Table -47 ADMIN\_SERVER Database Table

| Serial Number | Column Name     | Sample Value        | Description                                                                                                                        |
| ------------- | --------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| 01            | AGENT\_ID       | 1                   | AGENT\_ID is the primary key in the ADMIN\_SERVER database table.  ID of the agent application. Any integer value beginning with 1 |
| 02            | ADMIN\_HOSTNAME | myhost.mydomain.com | Name of the machine where admin server is deployed                                                                                 |
| 03            | ADMIN\_PORT     | 7001                | Port of the admin server                                                                                                           |

Table -48 AGENT Database Table

| Serial Number | Column Name   | Sample Value           | Description                                                                                                                                                                    |
| ------------- | ------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 01            | AGENT\_STATUS | Running                | Status of the Agent                                                                                                                                                            |
| 02            | REAL\_TIME    | 2009.07.23 at 17:11:41 | Date and time when status is recorded  All time entries are in UTC/GMT                                                                                                         |
| 03            | SEQUENCE\_ID  | 205                    | ID created by the agent each time the agent status is recorded                                                                                                                 |
| 04            | FREQUENCY     | 40                     | Time difference (in minutes) between two consecutive data collections                                                                                                          |
| 05            | AGENT\_ID     | 1                      | AGENT\_ID is a foreign key in this database table. It refers to AGENT\_ID in the ADMIN\_SERVER database table  ID of the agent application. Any integer value beginning with 1 |

Table -49 FRM\_DB Database Table

| Serial Number | Column Name | Sample Value                                                                                                                                     | Description                                                                                                                                                            |
| ------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 01            | FRM\_DB\_ID | 8769                                                                                                                                             | FRM\_DB\_ID is the primary key in the FRM\_DB database table.  ID assigned to the database that is used by the Forms application                                       |
| 02            | DB\_NAME    | v11g                                                                                                                                             | The database to which frmweb is connected. If it is connected to v11g, the this field will display v11g. This can be NULL when frmweb is not connected to any database |
| 03            | TNS\_ENTRY  | (DESCRIPTION =  (ADDRESS\_LIST =  (ADDRESS = (PROTOCOL = TCP)(HOST = sample.host.com)(PORT = 1521)))  (CONNECT\_DATA =  (SERVICE\_NAME = v11g))) | TNS entry of the database to which frmweb is connected                                                                                                                 |
| 04            | USER\_NAME  | scott                                                                                                                                            | The database user who has logged in                                                                                                                                    |

Table -50 FRM\_DB\_LOGIN Database Table

| Serial Number | Column Name        | Sample Value           | Description                                                                                                                                                                    |
| ------------- | ------------------ | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 01            | FRM\_DB\_LOGIN\_ID | 345                    | FRM\_DB\_LOGIN\_ID is the primary key in the FRM\_DB\_LOGIN database table.  ID assigned to each row in the table                                                              |
| 02            | FRM\_RUNTIME\_ID   | 107                    | FRM\_RUNTIME\_ID is a foreign key in this database table. It refers to FRM\_RUNTIME\_ID in the FRM\_RUNTIME database table                                                     |
| 03            | FRM\_DB\_ID        | 1025                   | FRM\_DB\_ID is a foreign key in this database table. It refers to FRM\_DB\_ID in the FRM\_DB database table  ID assigned to the database that is used by the Forms application |
| 04            | REAL\_TIME         | 2009.07.23 at 17:11:41 | Date and time when status is recorded and metric data collected to update the table  All time entries are in UTC/GMT                                                           |

Table -51 FRM\_RUNTIME Database Table

| Serial Number | Column Name                    | Sample Value           | Description                                                                                                                                                            |
| ------------- | ------------------------------ | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 01            | FRM\_RUNTIME\_ID               | 107                    | FRM\_RUNTIME\_ID is a primary key in the FRM\_RUNTIME database table.  ID that identifies the Forms process                                                            |
| 02            | WLS\_APP\_ID                   | 5005                   | WLS\_APP\_ID is a foreign key in this database table. It refers to WLS\_APP\_ID in the WLS\_APP database table  Determines the Forms application in the WLS\_APP table |
| 03            | FRM\_USER\_ID                  | 1310                   | FRM\_USER\_ID is a foreign key in this database table. It refers to FRM\_USER\_ID in the FRM\_USER database table  ID assigned to the Forms client or client instance  |
| 04            | CONFIG\_VALUE                  |                        | Configuration section name from `formsweb.cfg`                                                                                                                         |
| 05            | CONNECT\_TIME                  | 2009.07.23 at 17:11:41 | Date and time when frmweb is spawned  All time entries are in UTC/GMT                                                                                                  |
| 06            | DISCONNECT\_TIME               | 2009.07.23 at 18:15:43 | Date and time when frmweb terminates  All time entries are in UTC/GMT                                                                                                  |
| 07            | STARTING\_FORM\_NAME           | emp                    | Name of starting form                                                                                                                                                  |
| 08            | PROCESS\_ID                    | 8020                   | Process Id of frmweb on the middle tier machine                                                                                                                        |
| 09            | FRM\_STATUS                    | Running / Exited       | Status of frmweb                                                                                                                                                       |
| 10            | FRM\_CPU\_TIME\_ON\_EXIT       | 256                    | CPU time on exit of frmweb                                                                                                                                             |
| 11            | FRM\_PRIVATE\_MEMORY\_ON\_EXIT | 6385                   | Memory used by the Forms process at the time of exit                                                                                                                   |
| 12            | FRM\_EXIT\_CODE                |                        |                                                                                                                                                                        |

Table -52 FRM\_TRACE Database Table

| Serial Number | Column Name    | Sample Value    | Description                                                                                                         |
| ------------- | -------------- | --------------- | ------------------------------------------------------------------------------------------------------------------- |
| 01            | FRM\_TRACE\_ID | 2679            | FRM\_TRACE\_ID is the primary key in this database table.  ID assigned to the rows in the FRM\_TRACE database table |
| 02            | TRACE\_FILE    | forms\_1055.trc | Name of the trace file when `ftrace` is enabled. It can be NULL if `ftrace` is disabled                             |
| 03            | TRACING        | mytrace         | The name of the trace group selected by the application                                                             |

Table -53 FRM\_TRACE\_USE Database Table

| Serial Number | Column Name         | Sample Value           | Description                                                                                                                                                        |
| ------------- | ------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 01            | FRM\_TRACE\_USE\_ID | 1906                   | FRM\_TRACE\_USE\_ID is the primary key in this database table.  ID assigned to the rows in the database table                                                      |
| 02            | FRM\_RUNTIME\_ID    | 107                    | FRM\_RUNTIME\_ID is a foreign key in this database table. It refers to FRM\_RUNTIME\_ID in the FRM\_RUNTIME database table  ID that identifies the Forms process   |
| 03            | FRM\_TRACE\_ID      | 2679                   | FRM\_TRACE\_ID is a foreign key in this database table. It refers to FRM\_TRACE\_ID in the FRM\_TRACE database table  ID assigned to the row in the database table |
| 04            | REAL\_TIME          | 2009.07.23 at 17:11:41 | Date and time when status is recorded and metric data collected to update the table  All time entries are in UTC/GMT                                               |

Table -54 FRM\_USER Database Table

| Serial Number | Column Name   | Sample Value          | Description                                                                                                              |
| ------------- | ------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| 01            | FRM\_USER\_ID | 1310                  | FRM\_USER\_ID is the primary key in this database table.  ID assigned to the Forms client or client instance             |
| 02            | CLIENT\_IP    | 255.255.255.255       | IP address of client machine from where the browser was launched and through which the user connected to the middle tier |
| 03            | SSO\_USERID   | fname.lname@myapp.com | Single Sign-On ID of the user who logged in.                                                                             |

Table -55 HISTORY Database Table

| Serial Number | Column Name                       | Sample Value           | Description                                                                                                                                                      |
| ------------- | --------------------------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 01            | FRM\_RUNTIME\_ID                  | 107                    | FRM\_RUNTIME\_ID is a foreign key in this database table. It refers to FRM\_RUNTIME\_ID in the FRM\_RUNTIME database table  ID that identifies the Forms process |
| 02            | REAL\_TIME                        | 2009.07.23 at 17:11:41 | Date and time when the snapshot is taken  All time entries are in UTC/GMT                                                                                        |
| 03            | SEQUENCE\_ID                      | 205                    | ID created by the agent each time agent status is recorded.                                                                                                      |
| 04            | FRM\_BYTES\_SENT                  | 400                    | Number of bytes sent from the server to the client for this process so far                                                                                       |
| 05            | FRM\_BYTES\_SENT\_DELTA           | 37                     | Difference in the number of bytes sent from the server to the client for this process since the previous reading of the agent was taken                          |
| 06            | FRM\_BYTES\_RECEIVED              | 200                    | Number of bytes sent from the client to the sever for this process so far                                                                                        |
| 07            | FRM\_BYTES\_RECEIVED\_DELTA       | 23                     | Difference in the number of bytes sent from the client to the server for this process since the previous reading of the agent was taken                          |
| 08            | FRM\_NETWORK\_ROUND\_TRIPS        | 30                     | Number of network round trips between the client and the server for this process so far                                                                          |
| 09            | FRM\_NETWORK\_ROUND\_TRIPS\_DELTA | 3                      | Difference in the number of network roundtrips between the client and the server for this process since the previous reading of the agent was taken              |
| 10            | FRM\_CPU\_TIME                    | 230                    | Total processing time taken by frmweb (in milliseconds) for this process so far                                                                                  |
| 11            | FRM\_CPU\_TIME\_DELTA             | 47                     | Difference in the value of FRM\_CPU\_TIME since the previous reading of the agent was taken                                                                      |
| 12            | FRM\_PRIVATE\_MEMORY              | 7998                   | Memory used by the Forms process at the time when snapshot was taken.                                                                                            |
| 13            | ITERATION                         | 50                     | Number of times data is collected into the database table.                                                                                                       |

Table -56 WLS\_APP Database Table

| Serial Number | Column Name           | Sample Value       | Description                                                                                                                                                                     |
| ------------- | --------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 01            | WLS\_APP\_ID          | 5005               | WLS\_APP\_ID is the primary key in this database table.  Determines the Forms application in the WLS\_APP table                                                                 |
| 02            | SERVER\_TYPE          | MANAGED            | Type of the server (For example, MANAGED or ADMIN)                                                                                                                              |
| 03            | SERVER\_NAME          | WLS\_FORMS         | Name of the server                                                                                                                                                              |
| 04            | DEPLOYED\_APPLN\_NAME | formsapp           | Forms Application name                                                                                                                                                          |
| 05            | FORMS\_HOSTNAME       | host52.example.com | Middle tier machine on which Forms runtime is running                                                                                                                           |
| 06            | INSTANCE\_HOME\_NAME  | asinst\_1          | Name of the FMW instance home, where Forms runtime is deployed                                                                                                                  |
| 07            | CLUSTER\_NAME         | cluster\_xyz       | Name of the cluster where the Forms application is deployed                                                                                                                     |
| 08            | AGENT\_ID             | 1                  | AGENT\_ID is a foreign key in this database table. It refers to AGENT\_ID in the ADMIN\_SERVER database table.  ID of the agent application. Any integer value beginning with 1 |

## Limitations of the Agent Application

Forms Diagnostics agent has certain limitations on its deployment and usage.

The limitations are as follows:

- The deployment of the Forms Diagnostics Agent application is optional. In case you want to analyze performance-related information about Forms applications, you must deploy Forms Diagnostics Agent manually post installation.
- The agent application must be deployed to the Admin Server only. The agent application collects information about all Forms sessions that are running in the WLS domain of the Admin Server.
- For the agent to be able to access the metrics data (available in DMS), the DMS application must be up and running.
- The schema is designed to be functional only on one domain at any given time. You cannot use the same schema for multiple agents (running in separate domains).
- Do not set the frequency of data collection to a small value. Setting the frequency of data collection to a small value slows down the production environment and causes excessive, needless data collection.
- This utility only provides the database objects and the agent needed to perform the collection. It does not provide a user interface (UI) for exposing the collected data. Data can be retrieved by querying the tables outlined in the documentation above. Alternatively, a user interface can be developed using a preferred technology.

## Ready for an Oracle Forms Upgrade from any version to the latest?

Automate your Oracle Forms upgrade process with ORMIT™-Forms.

Upgrading Oracle Forms from older, obsolete, or deprecated versions is essential for maintaining optimal performance, security, and compatibility. Newer Oracle Forms versions offer enhanced functionality, improved user interfaces, and better integration with modern technologies, ensuring seamless operation in today’s dynamic IT environments. Security updates and patches in the latest versions protect against vulnerabilities that could compromise sensitive data. Additionally, newer versions support the latest operating systems and browsers, enhancing user accessibility and experience. Upgrading also brings compliance with current standards, reducing the risk of legal and operational issues. Furthermore, Oracle’s support for outdated versions is limited or nonexistent, making troubleshooting and maintenance increasingly difficult. By upgrading, organizations can leverage Oracle's latest innovations, streamline processes, and ensure robust, scalable, and secure application development and deployment. Investing in an upgrade is a strategic move to future-proof applications and maximize return on investment.

ORMIT™-Forms automates every [Oracle Forms Upgrade](https://renaps.com/en/products/oracle-forms-upgrades) from all earlier versions to the latest versions. [ORMIT™-Forms](https://renaps.com/en/products/oracle-forms-upgrades) guarantees the overall success of your [Oracle Forms Upgrade](https://renaps.com/en/products/oracle-forms-upgrades) with an emphasis on efficiency, cost and time savings, eliminating any potential risk. The automated process is extremely fast and secure. It automates a large quantity of actions while eliminating the guess work associated with manual upgrades. ORMIT™-Forms also minimizes downtime and identifies manual tasks that require DBA action.

[Oracle Forms Upgrade](https://renaps.com/en/products/oracle-forms-upgrades)

## Migrating to Java from Oracle Forms 9i or 10g with ORMIT-OpenJava

It is an easy way to save a lot by skipping the numerous upgrades to the latest version.

Migrating from old, obsolete, or deprecated Oracle Forms versions to Java-based forms with tools like ORMIT-OpenJava offers significant advantages over merely upgrading to the latest Oracle Forms version. Java-based forms provide a modern, flexible, and scalable solution that integrates seamlessly with contemporary IT environments. Migration ensures better performance, enhanced user experiences, and improved compatibility with current technologies and standards. Tools like ORMIT-OpenJava streamline the migration process, reducing downtime and minimizing risks. Furthermore, Java-based applications benefit from a robust ecosystem and active community support, ensuring long-term sustainability and innovation. Migrating to Java also eliminates dependency on proprietary technologies, offering greater freedom and future-proofing applications against technological obsolescence. This strategic move not only enhances operational efficiency but also maximizes return on investment by leveraging open-source advantages and reducing ongoing maintenance costs.

ORMIT™-OpenJava automates your [Oracle Forms Migration](https://renaps.com/en/products/OracleForms-to-Angular) to a modern Java/React/Angular technology stack. [ORMIT™-OpenJava](https://renaps.com/en/products/OracleForms-to-Angular) guarantees the overall success of your [Oracle Forms Migration](https://renaps.com/en/products/OracleForms-to-Angular) with an emphasis on efficiency, cost and time savings, eliminating any potential risk. The automated process is extremely fast and secure. It automates a large quantity of actions while eliminating the guess work associated with manual migrations.

[Oracle Forms Migration](https://renaps.com/en/products/OracleForms-to-Angular)
