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 Connect

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-05, 03:46
ycaymaz ycaymaz is offline
Registered User
 
Join Date: Jan 2004
Posts: 3
Question DB2 Connect

Hi everyone,

I am a new user for DB2 database. I am experienced on Oracle and SQL Srv as a DBA. The DB2 is on OS400. There is a tool for client connectivity which also has SQL editor, but it is very poor. Now I have got DB2 connect program. I have installed it on my win-desktop. Now I want to connect to the DB2 on OS400. But when I try to make a connection on OS400, it gives me error text as "10061", "*", "*". SQLSTATE=08001 and says a problem on SOCKS.
Can you pls give me a hint for sucessfull connection to DB2?
Thanks in advance...
Reply With Quote
  #2 (permalink)  
Old 12-14-05, 04:15
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
db2 connect

if you installed db2 client (?) on your machine you have to catalog the target db
open a command window (start - run - db2cmd)
db2 catalog tcpip node nnn remote xxxx server yyy
where nnn is any name of your choice
xxx = ip/address of hostname of database server (that you can ping)
yyy = port on which db2/400 is listening (I believe for as/400 the default is 437, but check with sysadmin on as/400)
db2 catalog db ddd at node nnn
where ddd is the database name of as400 and nnn is the same name you specified with the first command
now you should be able to connect
db2 connect to ddd user uuuu
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #3 (permalink)  
Old 12-14-05, 04:25
ycaymaz ycaymaz is offline
Registered User
 
Join Date: Jan 2004
Posts: 3
Exclamation sockets error

the same error keeps going. I have already done the commands you have written. It gives the SOCKETS error.
FYI.
Reply With Quote
  #4 (permalink)  
Old 12-14-05, 05:02
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
10061 is TCPIP timeout ... Either the db2 client is unable to reach the AS/400 server (a ping will show if this is the case) or the port you have mentioned in your client configuration is not 'LISTEN'ing ... I have no clue on commands on AS/400 .. On other platforms, I would have done a 'netstat -an' and checked if the port is in 'LISTEN' state.

On DB2 for z/OS, to enable remote connections to DB2 using DB2 Connect, DDF has to be enabled and configured ... Do you have to do something similar on AS/400 ? .. Have you done it ?

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 12-14-05, 05:11
ycaymaz ycaymaz is offline
Registered User
 
Join Date: Jan 2004
Posts: 3
Question

I can reach as400 from ping, it replies fine. I havent done anything on as400. I can reach the DB2 on as400 from ODBC. The problem is with DB2Connect product, I couldnt suceed.
waiting for your comments?
TIA.
Reply With Quote
  #6 (permalink)  
Old 12-14-05, 05:28
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
how come you can access the OS/400 using ODBC? you have a seperate ODBC driver then ? Check the ODBC connection settings about the port and connection details, whether you are actually using the same.

Anyway: use the Configuration Assistant GUI to help you with the catalog commands. There are special options for OS/400 (and z/OS), which will be automatically generated when using the GUI.
I also dunno OS/400 specifics, sorry

(I suppose you are not trying to connect using a seperate DB2 Connect instance ? Then you would have to use their port and server details ...)
__________________
Juliane
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