CHAPTER 14 Adaptive Server IQ as a Data Server
493
Servers with multiple databases
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
-n
parameter on the
start_asiq
command to set up a shortcut for the
database name.
•
Specify the
-S
database_name parameter with the database name on the
isql
command. This parameter is now required whenever you connect.
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,
live_credit
and
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
equivalent to
creditcard.db
:
start_asiq -n amxcredit_live <other parameters> \ -x
‘tcpip{port=5555}’ creditcard.db -n live_credit
To connect to the
live_credit
server, use this syntax:
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
live_credit
or
test_credit
.
Содержание Adaptive Server IQ 12.4.2
Страница 1: ...Administration and Performance Guide Adaptive Server IQ 12 4 2 ...
Страница 16: ...xvi ...
Страница 20: ...Related documents xx ...
Страница 40: ...Compatibility with earlier versions 20 ...
Страница 118: ...Troubleshooting startup shutdown and connections 98 ...
Страница 248: ...Importing data by replication 228 ...
Страница 306: ...Integrity rules in the system tables 286 ...
Страница 334: ...Cursors in transactions 314 ...
Страница 396: ...Users and permissions in the system tables 376 ...
Страница 438: ...Determining your data backup and recovery strategy 418 ...
Страница 484: ...Network performance 464 ...
Страница 500: ...System utilities to monitor CPU use 480 ...
Страница 514: ...Characteristics of Open Client and jConnect connections 494 ...
Страница 536: ...Index 516 ...