![]() |
![]() |
![]() |
![]() |
![]() |
As a systems administrator, you may have an existing Oracle Tuxedo application with multiple Oracle Tuxedo services. Manually creating these definitions in the repository database may take hours to complete. The Jolt Bulk Loader is a command utility that allows you to load multiple, previously defined Oracle Tuxedo services to the Jolt Repository database in a single step. Using the jbld program, the Bulk Loader utility reads the Oracle Tuxedo service definitions from the specified text file and bulk loads them into the Jolt Repository. The services are loaded to the repository database in one “bulk load.” After the services populate the Jolt Repository, you can create, edit, and group services with the Jolt Repository Editor.The jbld program is a Java application. Before running the jbld command, set the CLASSPATH environment variable (or its equivalent) to point to the directory where the Jolt class directory (that is, jolt.jar and joltadmin.jar) is located. If the CLASSPATH variable is not set, the Java Virtual Machine (JVM) cannot locate any Jolt classes.For security reasons, jbld does not use command-line arguments to specify user authentication information (user password or application password). Depending on the server’s security level, jbld automatically prompts the user for passwords.
Table 2‑1 Bulk Loader Command-line Options -u usrname -r usrrole Specifies the user role (default is admin). (Mandatory if required by security.) The bulk load file is a text file that defines services and their associated parameters. The Bulk Loader loads the services defined in the bulk loader file into the Jolt Repository using the package name “BULKPKG” by default. The -p command overrides the default and you can give the package any name you choose. If another load is performed from a bulk loader file with the same -p option, all the services in the original package are deleted and a new package is created with the services from the new bulk loader file.If a service exists in a package other than the package you name that uses the -p option, the Bulk Loader reports the conflict and does not load a service from the bulk loader file into the repository. Use the Repository Editor to remove duplicate services and load the bulk loader file again. See “Using the Jolt Repository Editor” on page 4‑1 for additional information.The jbld program reads the service definitions from a text file. To use the keywords, observe the guidelines in Table 2‑2.
Table 2‑2 Guidelines for Using Keywords Correct: type=stringIncorrect: type Correct: type=stringIncorrect: type=string access=out Correct: type=stringIncorrect: type string The first keyword definition in the bulk loader data text file must be the initial service=<NAME> keyword definition (shown in the listing “Keyword Hierarchical Order in a Data File”). Following the service=<NAME> keyword, all remaining service keywords that apply to the named service must be specified before the first param=<NAME> definition. These remaining service keywords can be in any order.All parameters associated with the service must be specified. Following each param=<NAME> keywords are all the parameter keywords that apply to the named parameter until the next occurrence of a parameter definition. These remaining parameter keywords can be in any order. When all the parameters associated with the first service are defined, specify a new service=<NAME> keyword definition.Listing 2‑1 lists the keyword hierarchical order in a data file.Listing 2‑1 Keyword Hierarchical Order in a Data Fileservice=<NAME>
<service keyword>=<value>
<service keyword>=<value>
<service keyword>=<value>
param=<NAME>
<parameter keyword>=<value>
<parameter keyword>=<value>
param=<NAME>
<parameter keyword>=<value>
<parameter keyword>=<value>A service definition must begin with the service=<NAME> keyword. Services using CARRAY, STRING, or XML buffer types should only have one parameter in the service. The recommended parameter name for a service that uses a CARRAY buffer type is CARRAY with carray as the data type. For a service that uses a STRING buffer type, the recommended parameter name is STRING with string as the data type. For a service that uses a XML buffer type, the recommended parameter name is XML with xml as the data type.Table 2‑3 contains the guidelines for use of the service-level keywords and acceptable values for each.
Table 2‑3 Service-Level Keywords and Values (This keyword is optional only if one of the following buffer types is used: VIEW, VIEW32, X_COMMON, X_C_TYPE.) A parameter begins with the param=<NAME> keyword followed by a number of parameter keywords. It ends when another param or service keyword, or end-of-file is encountered. The parameters can be in any order after the param=<NAME> keyword.Table 2‑4 contains the guidelines for use of the parameter-level keywords and acceptable values for each.
Table 2‑4 Parameter-Level Keywords and Values If you encounter problems using the Bulk Loader utility, refer to Table 2‑5. For a complete list of Bulk Loader utility error messages and solutions, see “System Messages.”
Table 2‑5 Bulk Loader Troubleshooting Table Listing 2‑2 contains a sample data file in the correct format using the UNIX command cat servicefile. This sample loads TRANSFER, LOGIN, and PAYROLL service definitions to the BULKPKG.Listing 2‑2 Sample Bulk Load Data