Managing Environment Variables

Use the Environment Configuration page of Fusion Middleware Control to manage environment variables. From this page, you can add, edit, or delete environment variables as necessary.

The environment variables such as PATH, ORACLE_HOME, and FORMS_PATH for the Forms run-time executable (frmweb.exe on Windows and frmweb on UNIX) are defined in default.env. The Forms listener servlet calls the executable and initializes it with the variable values provided in the environment file, which is found in the $DOMAIN_HOME/config/fmwconfig/servers/WLS_FORMS/applications/formsapp_14.1.2/config directory by default.

Any environment variable that is not defined in default.env is inherited from the Oracle WebLogic Managed Server. The environment file must be named in the envFile parameter in the Default section of the Web Configuration page.

A few things to keep in mind when customizing environment variables are:

  • Environment variables may also be specified in the Windows registry. Values in the environment file override settings in the registry. If a variable is not set in the environment file, the registry value is used.
  • The server does not require restarting for configuration changes to take effect.
  • Existing Forms processes are not affected by environment variables that were defined after they were started.
  • Environment variables not set in the environment file or Windows registry are inherited from the environment of the parent process, which is the Oracle WebLogic Managed Server.

Managing Environment Configuration Files

To access the Environment Configuration page:

  1. Start Fusion Middleware Control.
  2. From the Fusion Middleware Control main page, click the link to the Oracle Forms Services instance that you want to configure.
  3. From the Forms menu list, select Environment Configuration.

    Figure -10 Environment Configuration page


    Description of Figure -10 follows
    Description of "Figure -10 Environment Configuration page"

To duplicate an environment configuration file:

  1. From the Environment Configuration page, click Duplicate File.

    The Duplicate File dialog is displayed.

  2. Select the file which you want to duplicate and enter a unique name for the file.
  3. Click Duplicate to create the file.

To delete an environment configuration file:

  1. In the Environment Configuration page, from the Show menu list, select the environment configuration file you want to delete.
  2. Click Delete File.

    The Confirmation dialog is displayed.

  3. Click Yes to confirm the deletion.

    Note:

    You cannot delete default.env. You can delete only user-defined environment configuration files.

To view an environment configuration file:

  1. In the Environment Configuration page, from the Show menu list, select the environment configuration file that you want to view.
  2. The parameters and their values are displayed.

Configuring Environment Variables

To edit an environment variable:

  1. In the Environment Configuration page, select the row of the parameter that contains the environment variable you want to edit.

  2. Enter the Value and Comments.

  3. Click Apply to save the changes or Revert to discard them.

To add an environment variable:

  1. From the Show menu list, select the environment configuration file to which you want to add the variable.

  2. Click Add to add a parameter.

    The Add dialog box is displayed.

  3. Enter the Name, Value and Comments.

  4. Click Create.

  5. Click Apply to save the changes or Revert to discard them.

To delete an environment variable:

  1. From the Show menu list, select the environment configuration file where you want to delete an environment variable.
  2. Select the rows of the parameters you want to delete. You can delete more than one parameter at a time.
  3. Click Delete.
  4. Click Apply to save the changes or Revert to discard them.

Forms Environment Variables

Forms runtime configuration environment variables include the following:
  • Environment variables that specify the location of resources, such as file names, URLs, hosts, and ports.
  • Environment variables used to limit the consumption of resources, such as memory and disk space.
  • Environment variables used for performance tuning.
  • Environment variables used for tracing.
  • Environment variables that restrict the end user's access to databases, without affecting application semantics, specifically, FORMS_ALLOW_DB_CONNECT_STRING, FORMS_DBALIAS_SPECIAL_CHARS, and FORMS_RESTRICT_ENTER_QUERY. These environment variables are also documented in the Form Builder online help.

For descriptions of runtime configuration environment variables, refer to Environment Variables.

Environment variables that affect runtime application semantics are documented in the Form Builder online help. In the online help, navigate to List of Application Semantics Environment Variables under Environment Variables to review details. These include environment variables that specify locale-specific behavior, such as language and format masks.

Environment variables that affect the Form Builder, Compiler, or API are documented in the Form Builder online help. In the online help, navigate to List of Builder Environment Variables under Environment Variables to review details.