Modifying the Adaptive Server configuration files

When you configure an XA resource for C/C++ connection caches, you need to modify two configuration files.

On UNIX:

On Windows:

interfaces and sql.ini

On UNIX, add these lines to the interfaces file:

DbServer
   master tcp ether host 5300
   query tcp ether host 5300

On Windows, add these lines to the sql.ini file:

[DbServer]
master=NLWNSCK,host,5200
query=NLWNSCK,host,5200

where DbServer is the name of the database server and host is the name of the machine on which the database server runs. DbServer should have the same value that you entered in the Server Name field when you configured the XA resource.

xa_config

For both operating systems, add these lines to the xa_config file:

[xa]
   lrm=serverName
   server=DbServer

where:

NoteserverName and DbServer represent the same server and should have the same value.