If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2tcpcm service not running.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-09, 12:05
sangfroid sangfroid is offline
Registered User
 
Join Date: Nov 2009
Posts: 6
db2tcpcm service not running.

Hi,

I have a linux server, which seems to run IBM db2. I am not quite sure if it is running fully functional or not.

When I run ps -ef command, it shows as below:

root 868 1 0 Oct27 ? 00:00:00 db2wdog
db2inst1 869 868 0 Oct27 ? 00:00:00 db2sysc
root 870 869 0 Oct27 ? 00:00:00 db2gds
db2inst1 871 869 0 Oct27 ? 00:00:00 db2ipccm
db2inst1 872 870 0 Oct27 ? 00:00:00 db2resyn
db2inst1 873 870 0 Oct27 ? 00:00:00 db2srvlst


But when I run the same command, it shows an additional db2tcpcm service too...

I am confused what is the purpose of this service and if it is really needed or not ?

By the way, what is the default port that IBM db2 runs on ? Is it 50000 ?

Thank you
Reply With Quote
  #2 (permalink)  
Old 11-24-09, 12:54
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
See the attached:

Everything You Wanted to Know About DB2 Universal Database Processes

50000 is the default port that DB2 suggest when creating an instance, but it does not have to be thus. Look in /etc/services for what port is being used.

Andy
Reply With Quote
  #3 (permalink)  
Old 11-24-09, 12:58
sangfroid sangfroid is offline
Registered User
 
Join Date: Nov 2009
Posts: 6
As per this document, then only IBM db2 is running in that server locally...but no one can make connections from out of this server (as db2tcpcm service is not running).

Am I correct ?



Quote:
Originally Posted by ARWinner View Post
See the attached:

Everything You Wanted to Know About DB2 Universal Database Processes

50000 is the default port that DB2 suggest when creating an instance, but it does not have to be thus. Look in /etc/services for what port is being used.

Andy
Reply With Quote
  #4 (permalink)  
Old 11-24-09, 13:04
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I am not certain. I think connections can be made. I have looked at my servers, and I do not see the process, but I can connect from remote workstations. Do you know what DB2 version it is?

Andy
Reply With Quote
  #5 (permalink)  
Old 11-24-09, 14:07
sangfroid sangfroid is offline
Registered User
 
Join Date: Nov 2009
Posts: 6
Not really.... I am totally new to db2..

by the way, where does db2 store its database files ?

Quote:
Originally Posted by ARWinner View Post
I am not certain. I think connections can be made. I have looked at my servers, and I do not see the process, but I can connect from remote workstations. Do you know what DB2 version it is?

Andy
Reply With Quote
  #6 (permalink)  
Old 11-24-09, 14:09
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by sangfroid View Post
by the way, where does db2 store its database files ?
Wherever the DBA tells it to.

Andy
Reply With Quote
  #7 (permalink)  
Old 11-24-09, 16:06
sangfroid sangfroid is offline
Registered User
 
Join Date: Nov 2009
Posts: 6
by the way, what command do i run to find it out ?

for eg: what command do i run to see the list of databases and its tables ?



Quote:
Originally Posted by ARWinner View Post
Wherever the DBA tells it to.

Andy
Reply With Quote
  #8 (permalink)  
Old 11-24-09, 16:10
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You need to do everything as the instance owner (db2inst1 in your case).

To see the databases: db2 list db directory
To determine which version: db2level
To see the tables:
db2 connect to MyDB
db2 select tabschema,tabname from syscat.tables

Andy
Reply With Quote
  #9 (permalink)  
Old 11-24-09, 18:15
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by sangfroid View Post
db2tcpcm service is not running)
Could it be that you're using db2 v9.5 or higher? I don't believe you see db2tcpcm with the ps command in a thread-based model. Try "db2pd -edus"
Reply With Quote
  #10 (permalink)  
Old 11-25-09, 10:37
sangfroid sangfroid is offline
Registered User
 
Join Date: Nov 2009
Posts: 6
I am in fact totally confused...

ok, where can i get basic tutorials of db2 ? I tried to search a lot....but hardly could find any useful one...

all i need to know is how to connect to db2 database and see its databases and tables...

also i need to know where db2 is storing database files...that's it..
Reply With Quote
  #11 (permalink)  
Old 11-25-09, 12:14
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by sangfroid View Post
ok, where can i get basic tutorials of db2 ? I tried to search a lot....but hardly could find any useful one...
Try these: IBM developerWorks : DB2 9 Fundamentals certification 730 prep series
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On