Managing Environment Configuration Files Configuring Environment Variables

Configuring and Managing Forms Services 4-21 The environment variables such as PATH, ORACLE_INSTANCE, 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_HOMEconfigfmwconfigserversWLS_ FORMSapplicationsformsapp_11.1.1config 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. ■ You need administrator privileges to alter registry values. ■ 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. Table 4–14, Default Environment Variables describes important environment variables that are specified in default.env.

4.3.1 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. The Environment

Configuration page Figure 4–4 is displayed. Figure 4–4 Environment Configuration page 4-22 Forms Services Deployment Guide 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.

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.

4.3.2 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. Note: You cannot delete default.env. You can delete only user-defined environment configuration files. Configuring and Managing Forms Services 4-23

3. Click Delete.

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

4.3.3 Default Environment Variables