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 > db2 client instance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-07, 22:48
askdba123 askdba123 is offline
Registered User
 
Join Date: Jun 2007
Posts: 21
db2 client instance

Hi

I would like to clarify following:

We have a database server and client server. Both are AIX boxes..

scenario 1:
Unix admin already created the unix account on client server, but when tying to connect to database (from client server) on remote server, can not connect. The node and database is already catalog. Do we really need to have client instance [same as client userid] created on client server?

scenario 2:
In another situation, whenever there is need, for client our sys admin creates users and instance with same name as user on client server to access the instance/database on remote database server. Both the servers are AIX.

If we have multiple users, we may end-up with creating multiple client instances. that may block lot of server memory. I don't think this is right approch.... Could you please clarify and let me know the high level steps to configure the client [on aix] to access the database on remote server [aix].

My assumption is we need :
install db2 client on client machine
catalog node and database

Your reponse will be appreciated.

Thanks
suraj
Reply With Quote
  #2 (permalink)  
Old 06-25-07, 22:55
askdba123 askdba123 is offline
Registered User
 
Join Date: Jun 2007
Posts: 21
e.g.

Server A: Database server [AIX]
instance: db2inst1
database: db1

Server B: Client [AIX]
user: cuser

Node and db was catalog using cuser to access db on server A. Were able to catalog node and db.. What steps need to follow in order to access database on remote server A using client user cuser?

Thanks
Reply With Quote
  #3 (permalink)  
Old 07-02-07, 18:09
askdba123 askdba123 is offline
Registered User
 
Join Date: Jun 2007
Posts: 21
Anyone has any update/comments on this?
Reply With Quote
  #4 (permalink)  
Old 07-03-07, 03:07
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
if you need to access a db from a remote client
on server :
db2set db2comm=tcpip
db2 update dbm cfg using svcename xxxxx
where xxxxx is port number or entry in etc/services translated to port number
on client :
db2 catalog tcpip node abc remote ipaddress/host server port/service
db2 catalog db dddd at node abc
port has to be port defined on server -
type db2 ? catalog and complete syntax will be displayed in command window
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #5 (permalink)  
Old 07-03-07, 10:57
askdba123 askdba123 is offline
Registered User
 
Join Date: Jun 2007
Posts: 21
Thanks a lot for response..

This is already configured..

My question is. Do we really need to create client instance on client server?

I think, we do not need... Our SYS person creating instance on remote client server each time [same user name on server], and this is not recommended since it will block memory unnecessary and he would like to know the right approach..

Thanks
Diwakar
Reply With Quote
  #6 (permalink)  
Old 07-04-07, 07:08
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
on unix :
client instance need to be created to get a copy of sqllib and needed environment for db2.
on windows :
client code needs to be installed wich will create client instance by default
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #7 (permalink)  
Old 07-04-07, 13:28
askdba123 askdba123 is offline
Registered User
 
Join Date: Jun 2007
Posts: 21
Sure,
Thanks a lot for clarification...

My understanding is we would need only one client instance [UNIX/AIX] irespective of # of user accounts.

Do we need to have single client instance or multiple client instances [per user] if we have multiple accounts that is accessing the database from unix client server.

Thanks
Suraj
Reply With Quote
  #8 (permalink)  
Old 07-05-07, 02:40
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
this is up to you and security
I would prefer an instance/user by user accessing the system/db
Each user could be clearly identified and flushed if needed
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #9 (permalink)  
Old 07-08-07, 17:38
askdba123 askdba123 is offline
Registered User
 
Join Date: Jun 2007
Posts: 21
Sure,

Can you please elaborate and explain in simple text.

thx
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