Renames a connection.
ratool -rename <old_connection_name> <new_connection_name>
The name of the connection to rename.
The new name for the connection.
To rename connection RepToJMS to RepToJMS2:
ratool -rename RepToJMS NewRepToJMS
If you attempt to rename a connection that is running, the following error message displays:
RaCommand[ERROR]: Rename connection failed. Error Message: com.sybase.connector.repra.util.RaException: java.lang.Exception: The connection cannot be renamed since it is running.
If the new connection name already exists, the following failure message displays:
RaCommand[ERROR]: Rename connection failes. Error message: com.sybase.connector.repra.util.RaException: java.lang.Exception: The destination name already exist.