473,387 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

More DB2 Vista NewBee questions

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.
Nov 2 '08 #1
4 3341
On Nov 2, 9:44*pm, "gimme_this_gimme_t...@yahoo.com"
<gimme_this_gimme_t...@yahoo.comwrote:
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.
You can easily answer the questions yourself.

First question: try it out, or search for keywords in google.

Second question: You've made a syntax error.
Nov 2 '08 #2
<gi*******************@yahoo.comwrote in message
news:01**********************************@g17g2000 prg.googlegroups.com...
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
Nov 3 '08 #3
Hi ,
svcname is part of DB Manger configuration not part of DB
Configuration.

Try this ,
db2 update DBM cfg svcname 50000

Hope this works .

Regards
Myoungsoo
>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?
Nov 3 '08 #4
On 2008-11-03, mvsmsh <mv****@gmail.comwrote:
svcname is part of DB Manger configuration not part of DB
Configuration.

Try this ,
db2 update DBM cfg svcname 50000

Hope this works .
Well it does not, since you too made a mistake. SVCENAME is DBM
configuration parameter, not DB as you pointed out. Parameter is
not svcname, it is SVCENAME. Case does not matter, but it needs to
be typed correctly.

Correct syntax would be:

db2 update dbm cfg using SVCENAME 50000

You also need to have db2comm set to tcpip. This can be checked
with command:

db2set -all

Set it with command:

db2set db2comm=tcpip

After these, instance restart is needed.

--
sip:ta*@tav.iki.fi http://tav.iki.fi

"Writing a new OS only for the 386 in 1991 gets you your second 'F' for
this term." -- Prof. Andrew S. Tanenbaum
Nov 3 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: PerryC | last post by:
All, 1. Do the following codes seem ok? 2. If so, then how do I pull the value of YOE1 and YOE2 into my report? (to do some further calculations) ...
13
by: Mark Rae | last post by:
Hi, On Friday I attended the Microsoft EVO conference in London where they talked about Vista, Office 2007 and Exchange 2007 and how they all work together beautifully, how they were all...
6
by: j2ee.singh | last post by:
Hi, I'm looking to buy a new laptop primarily to learn & practice .NET and C#. My Question is: Is there any requirement for .NET and C# in terms of the following Operating Systems: -...
0
by: Jobs | last post by:
C# , SQL Server , Vista , Ajax Interview questions links Full eBook with Vista , Ajax , SQL Server , UML and Architecture interview questions ...
4
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a...
8
by: Marooned | last post by:
Hi (a total newbie here), I run a small personal website and I need to check if my client is reaching my site with: - IE6 || IE7 AND - Windows Vista How can I do? The script should work in...
2
by: 13Rockes | last post by:
I am in the process of writing programs using VB6 in XP Pro. However, I am thinking about starting over using VB2005 as my company is migrating to Vista. Two questions... What kinds of...
0
by: Martin Arvidsson, Visual Systems AB | last post by:
Hi! I have a couple of newbee questions. I have a .aspx page with a couple of TextBoxes and a submit button. Now... When i press the submitbutton i want the data in the TextBoxes to be...
4
by: =?Utf-8?B?aGFycG8xNA==?= | last post by:
I have installed firefox 3 for my new vista operated machine. I get the following error message: Could not initialise the application's security component. The most probable cause is problems...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.