Loading Schemas using the Schema Load Utility

To initiate the JADE Schema Load utility

  1. Ensure that you have a full backup of your database.

  2. Select the Jade Loader program icon from your JADE program folder.

    If a schema load is attempted when a reorganization is in progress (regardless of whether the reorganization progress dialog is displayed), the load fails. For details about reorganizing schemas, see "Reorganizing Your Schema", in Chapter 3 of the JADE Development Environment User’s Guide.

    The Load Schema dialog, shown in the following image in an example of its initial form, is then displayed in the JADE Schema Load Utility window. An extended form of the dialog is displayed when you click the More Options >> button. For details, see "Specifying Additional Load Options", later in this document.

    The controls are empty when the Schema Load utility is run for the first time. If the utility has been run previously, the values that were specified the last time the utility was run are displayed in the Connection Parameters group box controls and in the Schema File Name and Forms File Name text boxes. Other values are set to default values in the following steps of this instruction.

    To load a JADE Report Writer file, specify the file name and appropriate suffix (for example, AllReports.rwa for a single extract file or MyRptView.rwv for a reporting view) in the Schema File Name text box.

  3. In the Database Path text box, specify the path in which your JADE database files are located. The database path must exist. If you are unsure of your database directory, click the adjacent browse button (indicated by the … points of ellipsis symbol) to display the common Browse for Folder selection dialog that enables you to select the database path in which your user data is located.

  4. In the Ini File Name text box, specify the name (and optionally the file path) of your JADE initialization file. The database path is assumed if you do not specify the file path. If you are unsure of your initialization file, click the adjacent browse button (indicated by the … points of ellipsis symbol) to display the common Choose File dialog that enables you to select the initialization file that is used.

  5. In the Server Type combo box, select the mode in which you want to perform the schema load process. Select the multiUser value if you want to connect to a running server or the singleUser value if you want to connect in single user mode.

  6. In the Schema File Name text box, specify the full path of the location of your schema (.scm) file. If you are unsure of your schema file directory or name, click the adjacent browse button (indicated by the … points of ellipsis symbol) to display the common Choose File dialog that enables you to select the schema file that you want to load.

    If you are loading a partial file, this may be a .scm file or a .cls file for a class or interface extract. This can also be a multiple schema file (.mul) for loading multiple schemas.

  7. In the Forms File Name text box, specify the full path of the location of your form and data definition (.ddb or .ddx) file if you are also loading a forms file. If you are unsure of your forms definition file directory or name, click the adjacent browse button (indicated by the … points of ellipsis symbol) to display the common Choose File dialog that enables you to select the forms file that you want to load.

  8. In the Load Style list box, select the load style, as follows.

    • The default Latest Schema Version value loads a new schema or loads the schema as the latest schema version (a new version will be created if required), and allows structural changes.

    • The Current Schema Version value loads the schema into the existing current schema version, which may potentially affect current runtime behavior. As structural changes are not allowed, the load will not proceed if structural changes are to be introduced.

      If you are loading a schema file containing only method changes into a multiuser system, select this option, to ensure that no structural changes are attempted that would require a reorganization of the database and impact existing users. If a structural change is detected, the schema load returns an error.

      As all JADE Report Writer files (that is, files with a suffix of rwv, rwo, rwf, rwu, rwr, and rwa) are loaded only into the current schema version, they should therefore be loaded after any database reorganization transition.

    • The Only Structural Versioning value loads only structural changes into the latest version and does not version methods or other non-structural entities. This may potentially affect current runtime behavior.

  9. Check the Suppress Reorg check box if you want to prevent the reorganization of any loaded schemas that require reorganization on completion of the load process.

    By default, any loaded schemas that require reorganization on completion of the load process are reorganized, regardless of whether they required reorganization prior to the load.

    If control classes require reorganization or new Control subclasses are defined before loading a forms definition file, a reorganization will be initiated before the forms definition file is loaded. In this case, you must load the Relational Population Service (RPS) .ddbx file, if any, before the reorganization, to keep the RPS mappings up-to-date with the schema changes. (When extracting a schema with an RPS mapping and the DDX format style is selected, a separate .ddbx file is produced as for a DDB extract but the file contents are in XML format.)

    After the reorganization, the .ddb forms definition file is loaded as normal, to complete the changes.

    If such a reorganization is required and you check this control, the forms load process will raise an exception.

  10. If you are running in multiuser mode and you do not want to allow other users to continue development and update the database while the reorganization is in progress, uncheck the Allow Updates check box. (The Initiate Transition check box is then checked if it was unchecked and it is disabled.)

    If updates are disabled while the reorganization is in progress, the reorganization must initiate the transition. Any error occurring during the reorganization results in the reorganization being aborted; that is, the reorganization cannot be restarted. For details, see "Allowing Updates" under "Reorganization Options", in Chapter 14 of the JADE Developer's Reference.

    As it is not possible for other applications to update the database in single user mode, this control is unchecked and disabled if SingleUser is selected in the Server Type combo box.

    In multiuser mode, the Allow updates check box is checked by default, to allow updates to proceed before the reorganization transition is initiated; for example, other users can still modify (that is, edit and compile) methods in the development environment.

  11. If you do not want the reorganization progress dialog displayed during the reorganization, uncheck the Show Progress check box.

    When this is checked (the default value), you can monitor the progress of the reorganization and you can cancel the reorganization at any time.

  12. If you do not want the transition to be initiated for any reorganization, uncheck the Initiate Transition check box, to suspend the reorganization transition. This check box is checked and disabled if you unchecked the Allow Updates check box in step 10 of this instruction.

    For details, see "Initiating Transition" under "Reorganization Options", in Chapter 14 of the JADE Developer's Reference.

  13. If you want to wait until the reorganization is complete, check the Wait for Reorg to Finish check box. As the load process in single user mode must wait for any reorganization to complete, this control is checked and enabled if SingleUser is selected in the Server Type combo box.

    By default, this check box is not checked. In multiuser mode, you can exit from the JADE Schema Load utility and the reorganization continues.

  14. If archival recovery is enabled (that is, the EnableArchivalRecovery parameter in the [PersistentDb] section of the JADE initialization file is set to true), a replayable reorganization of your JADE database can be performed when the schema is loaded. For details, see "Replayable Reorganizations" under "Reorganization Options", in Chapter 14 of the JADE Developer's Reference.

    Select Default in the Replayable combo box if you want to perform a replayable reorganization only if the schemas are loaded into a primary database.

    Select True if you want to perform a replayable reorganization of your JADE database when the schema is loaded. If archival recovery is not enabled, the reorganization cannot be replayed.

    Select False if you do not want to perform a replayable reorganization of your JADE database when the schema is loaded.

  15. To display and select additional, delta, and system parameters for your schema load, click the More Options >> button.

The extended Load Schema dialog is then displayed. For details, see "Specifying Additional Load Options", later in this document.