IBM Books

User's Guide


Creating a Database Locator Object

The database locator object is used to define a DB2 Connect Enterprise Edition gateway to its clients.

For your DB2 Connect workstation, use the DCE command cdscp create object to create a database locator object. For example:

cdscp create object object_global_name

Add the following attributes to the object:

DB_Object_Type
L for locator object

DB_Communication_Protocol
The following information about each communication protocol between the DB2 Connect workstation and remote clients.

For APPC:

  1. The communication protocol (APPC)
  2. The network ID of the DB2 Connect workstation
  3. The LU name for the DB2 Connect workstation
  4. The transaction program name for connections from remote clients
  5. The mode name
  6. The security type, as described in "Security with DCE Directory Services".

For TCP/IP:

  1. The communication protocol (TCPIP)
  2. The host name of the DB2 Connect workstation
  3. The connection port used by the DB2 Connect workstation to accept connections from remote clients
  4. Type of connection (whether using SOCKS or NONE). This is optional. If not specified, NONE is used.

For IPX/SPX:

  1. The communication protocol (IPXSPX)
  2. The file server name. Use * for direct addressing
  3. The object name. Use the internetwork address for direct addressing.

For NETBIOS:

  1. The communication protocol (NETBIOS)
  2. The NNAME for the server or DB2 Connect Enterprise Edition gateway.

For example, you could put the following lines into a file:

   create object /.../cdscell1/subsys/database/DBAIX01
   add    object /.../cdscell1/subsys/database/DBAIX01 DB_Object_Type= L
   add    object /.../cdscell1/subsys/database/DBAIX01 DB_Communication_Protocol=\
             TCPIP;AIX001;3700
   add    object /.../cdscell1/subsys/database/DBAIX01 DB_Communication_Protocol=\
             APPC;SPIFNET;NYX1GW01;NYSERVER;IBMRDB;NONE
and then enter the command:
   cdscp < filename

On OS/2, you can also specify the IPXSPX or NETBIOS protocol in the DB_Communication_Protocol attribute. For example:

    - IPXSPX;fileserver;objectname
    - NETBIOS;nname


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]