Servers With Multiple Databases - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

Servers with multiple databases

CHAPTER 14
Using Open Client Library, you can now connect to a specific database on a
server with multiple databases.
Set up entries in the interfaces file for each server.
Use the
parameter on the
-n
database name.
Specify the
database_name parameter with the database name on the
-S
command. This parameter is now required whenever you connect.
isql
You can run the same program against multiple databases without changing the
program itself by putting the shortcut name into the program and merely
changing the shortcut definition.
For example, the following interfaces file excerpt defines two servers,
and
live_credit
test_credit
live_credit
query tcp ether host8832 5555
master tcp ether host 8832 5555
test_credit
query tcp ether host8832 7777
master tcp ether host 8832 7777
Start the server(s) and set up an alias for a particular database. The following
command sets
live_credit
start_asiq -n amxcredit_live <other parameters> \ -x
'tcpip{port=5555}' creditcard.db -n live_credit
To connect to the
live_credit
isql -Udba -Psql -Slive_credit
A server name may only appear once in the interfaces file. Because the
connection to Adaptive Server IQ is now based on the database name, the
database name must be unique. If all your scripts are set up to work on
creditcard database, you will not have to modify them to work with
or
.
test_credit
Adaptive Server IQ as a Data Server
command to set up a shortcut for the
start_asiq
:
equivalent to
creditcard.db
server, use this syntax:
:
live_credit
493

Advertisement

Table of Contents
loading

Table of Contents