8.3 Managing MLE Environments

MLE environments are schema objects that can be managed in the database.

Creating an MLE Environment

To create an MLE environment:

  1. In the left pane, select the Navigator tab, select Object submenu and click Create Object.

    The Create MLE Environment panel appears.

  2. Select the schema from the list. By default, the current schema is used.

  3. In the Name field, enter a name for the environment.

  4. Select the appropriate Language Options. For more information, see JavaScript Language Options in JavaScript Developer's Guide.

  5. The Available Modules field automatically populates the modules available for the selected schema. Select one or more modules. Click the Add Selected Modules icon or the Add All Modules icon to move the modules to the Imported Modules field. You can edit the Import Name field for the module if needed.

    When a single module is selected, the Add module with dependencies icon becomes available. This will find the environments where the module is used and will also add all other modules that the module depends on.

    To view the code for a module, in the Available Modules field, right-click the module and select Details.

  6. The DDL pane displays the code for the environment object. Click Create.

    The environment object is saved and appears in the left pane under Environments.

Context Menu Options

In the left pane, right-click the MLE environment object to view the following options:

  • Edit: Select to edit the MLE environment. You can modify the language options, add more modules to import or change the import names for the modules.
  • Drop: Select to drop the environment object from the database.
  • Compile: Select to compile or recompile the environment object.
  • Dependencies Diagram: Shows imported modules and exported functions for each module in the environment in a diagram format.