Adds a Transmission Control Protocol/Internet Protocol (TCP/IP) node entry to the node directory. The TCP/IP communications protocol is used to access the remote node.
Authorization
One of the following:
Required Connection
None. Directory operations affect the local directory only.
Command Syntax
>>-CATALOG--+-------+--TCPIP NODE--nodename--REMOTE--hostname---> '-ADMIN-' (1) >------------SERVER--service-name---+----------------+----------> '-SECURITY SOCKS-' >-----+---------------------------------+-----------------------> '-REMOTE_INSTANCE--instance-name--' >-----+----------------------+----------------------------------> '-SYSTEM--system-name--' >-----+--------------------------------+------------------------> '-OSTYPE--operating-system-type--' >-----+-------------------------+------------------------------>< '-WITH--"comment-string"--'
Notes:
|
Command Parameters
The CATALOG TCPIP NODE command is run on a client.
Note: | A port number, instead of a service name, can be specified in the database manager configuration file on the server, but this is not recommended. |
The value of service-name is used as a key to search the local services file for the associated port number. If a matching entry is not found, and service-name is numeric, the value is interpreted as the port number.
Maximum length is 14 characters. This parameter is case sensitive.
Note: | This parameter must not be specified for ADMIN nodes. The value on ADMIN nodes is always 523. |
The following environment variables are mandatory and must be set to enable SOCKS:
One of the following conditions should be true:
If these environment variables are set after a db2start has been issued, it is necessary to issue a TERMINATE command.
Examples
db2 catalog tcpip node db2tcp1 remote tcphost server db2inst1 with "A remote TCP/IP node" db2 catalog tcpip node db2tcp2 remote 9.21.15.235 server db2inst2 with "TCP/IP node using IP address"
Usage Notes
The database manager creates the node directory when the first node is cataloged (that is, when the first CATALOG...NODE command is issued). On an OS/2 client or a Windows client, it stores and maintains the node directory in the instance subdirectory where the client is installed. On an AIX client, it creates the node directory in the DB2 installation directory.
List the contents of the local node directory using LIST NODE DIRECTORY.
Note: | If directory caching is enabled (see the configuration parameter dir_cache in GET DATABASE MANAGER CONFIGURATION), database, node, and DCS directory files are cached in memory. An application's directory cache is created during its first directory lookup. Since the cache is only refreshed when the application modifies any of the directory files, directory changes made by other applications may not be effective until the application has restarted. |
To refresh the CLP's directory cache, use TERMINATE. To refresh DB2's shared cache, stop (db2stop) and then restart (db2start) the database manager. To refresh the directory cache for another application, stop and then restart that application.