CDBDB

Summary

This command updates reference file relations in a database using SQL provided by CDBS.  The SQL should contain insert/delete statements that correspond to each entry in a release catalog.  New reference files result in database insertions, while obsolete reference files result in database deletions.
 

Description

If the CDB_DISK_CHECK resource option is TRUE, this command first verifies that the reference files listed in a release catalog are found on disk, either in the incoming directory or in the reference file directories.   Next the database name (CDB_DB_NAME) is added to the CDBS-provided SQL and the SQL is executed.  The SQL output is parsed for an indication that it succeeded (the string "OPUS_MODS_OK" occurs in the output if the entire SQL transaction was committed to the database).
 

Usage

cdbdb release_name path_name The flags (preceded by a dash '-') are optional and can be specified in any order by any number of unique characters (e.g. -localfiles, -loc, -l are treated equally). The positional parameters 'release_name' and 'path_name' are required and MUST occur in the order listed.
 

Input

Output

Constraint

        The SQL is only verified by searching for a string that indicates the database transaction was committed.  No verification is performed to ensure that the database changes made have anything to do with the reference files listed in a particular release catalog.  That confirmation is performed by the CDBVER command.
 

Resource File

Required Command-Line Arguments

Optional Command-Line Arguments

Examples