Adds a database partition server (node) to an instance.
This command is available on Windows NT and Windows 2000 only.
Scope
If a database partition server is added to a machine where an instance already exists, a database partition server is added as a logical node to the machine. If a database partition server is added to a machine where an instance does not exist, the instance is added and the machine becomes a new physical node. This command should not be used if there are databases in an instance. Instead, the db2start addnode nodenum command should be used. This ensures that the database is correctly added to the new database partition server. To add a node to an instance in which a database has been created, refer to the Administration Guide.
Note: | The db2nodes.cfg file should not be edited since changing the file may cause inconsistencies in the partitioned database system. |
Authorization
Local Administrator authority on the machine where the new node is added.
Command Syntax
>>-db2ncrt----/n:--node_number----/u:--username,password--------> >-----+---------------------+---+--------------------+----------> '-/i:--instance_name--' '-/m:--machine_name--' >-----+--------------------+---+-----------------+--------------> '-/p:--logical_port--' '-/h:--host_name--' >-----+--------------------+------------------------------------> '-/g:--network_name--' >-----+-------------------------------+------------------------>< '-/o:--instance_owning_machine--'
Command Parameters
Note: | When creating a logical node, this parameter must be specified and a logical
port number that is not in use must be selected. Note the following
restrictions:
|
Examples
To add a new database partition server to the instance TESTMPP on the instance-owning machine SHAYER, where the new database partition server is known as node 2 and uses logical port 1, enter the following command:
db2ncrt /n:2 /u:QBPAULZ\paulz,g1reeky /i:TESTMPP /m:TEST /p:1 /o:SHAYER
See Also
db2nchg - Change Database Partition Server Configuration.