Validating a resource file

When you invoke the ra_admin utility with the -vr option, the utility validates the specified resource file and returns information about the validation process.

The ra_admin utility validates resource files by:

If any validation fails, the ra_admin utility returns an error message and information about the failure.

You can repeat the validation process as many times as necessary. No entities are changed or created as a result of this process.

NoteSybase recommends that you validate a new resource file before you create a Replication Agent instance using the new resource file.

StepsTo validate a resource file

  1. Invoke the ra_admin utility, specifying the -vr option and the name of the resource file:

    ra_admin -vr res_file
    

    Here, res_file is the name of the resource file you want to validate.

    For example, if the resource file is named pubs2.rs, enter the following at the command prompt:

    ra_admin -vr pubs2.rs
    

    Validation results are returned as either:

    • Response-file processing completed.

      or

    • Response-file processing completed with errors.

    If the validation is successful, you can skip step 2, and use the resource file to create a Replication Agent instance. For more information, see “Creating an instance with a resource file”.

    If the validation encounters errors, continue to step 2.

  2. Use the following procedure to correct validation errors:

    1. Review the error messages to determine the cause of the failure.

    2. Edit the resource file to correct the appropriate values.

    3. Invoke ra_admin -vr again, specifying the name of the resource file.

    Repeat this step until the resource file is successfully validated.