Cataloging Db2 databases after changing the Db2 server
If you change the Db2 database names,
Db2 server node, or Db2 port number, you must update the catalogs.
About this task
When you catalog a database, you can set the authentication to either
server or server_encrypt depending on the
authentication configuration on the Db2 server.
For more information, see Changing Db2 authentication from server to server_encrypt. The
following example shows how to set authentication to server_encrypt for the
APMG
Db2 server node while you are cataloging the
DMARTG
database.db2 catalog database DMARTG as DATAMART at node APMG authentication server encryptNote: If you are changing the Db2 server node or
Db2 port number only when you are moving the
Db2 databases from one Db2 server to another Db2 server, then you need to recatalog the Db2 server node only. Issue the following commands:
- To uncatalog the node. Issue the following
command:
db2 uncatalog node Db2_server_nodewhere Db2_server_node is the existing Db2 server node.
- Catalog the new Db2 server. Issue the
following command:
db2 catalog tcpip node current_Db2_server_node remote new_Db2_server server new_db2portwhere:- current_Db2_ server_node is the current Db2 server node.
- new_Db2_server is the new Db2 server host name or IP address.
- db2port is the new Db2 port number.
APM_NODEthat was created by the initial Cloud APM server installation and uncatalog and recatalog any additional nodes that you created.For more information about the db2 catalog tcpip node commands, see CATALOG TCPIP/TCPIP4/TCPIP6 NODE command. For more information about the db2 catalog db command, see CATALOG DATABASE command.
Procedure
Complete the following steps to catalog the databases, Db2 server nodes and Db2 port number:
Note: This is an example procedure. The
catalog commands that you use when you are completing your cataloging will be the same but the
database names, Db2 server node, Db2 server host name, port number, and itmuser password
will be different.