Consultor Eletrônico



Kbase P6108: How to connect 2 databases that have same name
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/11/2002
Status: Unverified

GOAL:

How to connect 2 databases that have same name

GOAL:

You want to connect 2 dbs that have the same name, yet reside in different directories.

FIX:

The process for connecting two dbs with the same name, yet reside in different directories is to make use of a server/client startup option called -ld.

-ld is used to assign a logical name to a database. More detail on this option is documented in the System Administration Guide, as well as the Programming Handbook.

The process to connect to dbs with the same name in different directories is to start the server for each db with the -ld option and specify 2 different logical dbnames.

Example: /test1/db1 (first db)
/test2/db1 (second db)

1. proserve /test1/db1 -ld a
2. proserve /test2/db1 -ld b
3. From a client session you can then either connect via the command line, 4gl code, dictionary or autoconnect list. Please see System Administration Guide for method you are interested in using. The following principle should work when applied to any of these connection methods.
4. Command line connection at startup:
mpro /test1/db1 -ld a -db /test2/db1 -ld b

You will now have both dbs connected.