<gimme_this_gimme_that@yahoo.comwrote in message
news:01385206-707f-4f3b-9e84-d9ca4f1f6731@g17g2000prg.googlegroups.com...
Quote:
1. What is the syntax to create a node when the server is running on
the local machine?
>
Does one still use the word remote?
>
catalog tcpip node webi remote localhost server 50000
>
2. If I execute "db2 get dbm cfg c:/output.txt" and grep output.txt
on SVCENAME I see this:
>
>
TCP/IP Service name (SVCENAME) = db2c_DB2
>
To set the SVCNAME to 50000 (or any other number) and type:
>
db2 update db cfg using svcname 50000
QL0104N An unexpected token "svcname" was found following "USING".
Expected
okens may include: "ADSM_MGMTCLASS". SQLSTATE=42601
>
Why is this instruction failing?
>
Thanks.
I don't understand why you need to create a node if the database is on the
local machine. The local node and database are already catalogued (db2 list
node directory, db2 list database directory). For a type 4 driver, all you
need is the hostname, port, database, user, password (and default schema if
different than user).
Please take a look at C:\Windows\system32\drivers\etc (/etc/services on
Linux/UNIX) to see how the label "db2c_DB2" is translated into the port
number. You can change the port number on the services file, or you set it
directly to a port number in the dbm cfg (if you can type SVCENAME
correctly). These entries are automatically created when the default
instance is created.
db2c_DB2 50000/tcp