-import

Description

Imports connection properties from an existing file to create a new connection or update an existing connection.

Syntax

ratool -import <connection_name> <connection_prop_filename> [-override]

Parameters

connection_name

The name of the connection to import.

connection_prop_filename

The name of the file that contains the properties to import.

-override

This option overrides the existing connection information. If you do not specify -override and there is an existing connection, this option returns a failure message.

RaCommand[ERROR] Import connection failed. Error
message: com.sybase.connector.repra.RaException:
java.lang.Exception: The existing connection cannot be
overriden

Examples

Example 1

To add a new connection using the properties in RepToJMS.props:

ratool -import RepToJMS d:\repraconf\RepToJMS.props

Example 2

To update an existing connection using the properties in RepToJMS.props:

ratool -import RepToJMS d:\repraconf\RepToJMS.props -override

Usage

See the sample configuration property files in the RepConnector sample/conf directory for information about property names and values.