dbTalk Databases Forums  

Linux <-> os400/db2 connection problem (SQL30061N)

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Linux <-> os400/db2 connection problem (SQL30061N) in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Douglas Hunter
 
Posts: n/a

Default Linux <-> os400/db2 connection problem (SQL30061N) - 08-26-2003 , 12:08 PM






Hello all,

I'm trying to connect a Linux machine (Redhat 8.0) to a IBM iSeries
running os400 V5R1. I installed IBM(R) DB2(R) Universal Database
Personal Edition Version 8.1 on the Linux machine and can successfully
connect to the sample database.

I followed the following steps (assuming 192.168.0.11 is the IP
address of the iSeries and the name of the database on that server I'm
trying to connect to is "DEVTEST") to try to connect from the Linux
machine to the os400 database:

db2 CATALOG TCPIP NODE as400 REMOTE 192.168.0.11 \
SERVER 446 REMOTE_INSTANCE DEVTEST \
OSTYPE os400

db2 CATALOG DCS DATABASE DEVTEST AS DEVTEST

db2 CATALOG DATABASE DEVTEST AS DEVTEST \
AT NODE as400 AUTHENTICATION DCS


If I do a connect from the Linux machine using the incorrect
password, I correctly receive the error:

SQL30082N Attempt to establish connection failed with security reason
"24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001


If I do a connect from the Linux machine using the correct
username/password, I receive the error:

SQL30061N The database alias or database name "DEVTEST "
was not found at the remote node. SQLSTATE=08004

This is the error that has me stumped. I verified the name of the
database on the server, which is DEVTEST. It's quite possible that
I'm missing something elementary, so any suggestions are greatly
appreciated.

Thanks,
Douglas Hunter

Reply With Quote
  #2  
Old   
Karl Hanson
 
Posts: n/a

Default Re: Linux <-> os400/db2 connection problem (SQL30061N) - 08-27-2003 , 07:50 AM






Douglas Hunter wrote:

Quote:
Hello all,

I'm trying to connect a Linux machine (Redhat 8.0) to a IBM iSeries
running os400 V5R1. I installed IBM(R) DB2(R) Universal Database
Personal Edition Version 8.1 on the Linux machine and can successfully
connect to the sample database.

I followed the following steps (assuming 192.168.0.11 is the IP
address of the iSeries and the name of the database on that server I'm
trying to connect to is "DEVTEST") to try to connect from the Linux
machine to the os400 database:

db2 CATALOG TCPIP NODE as400 REMOTE 192.168.0.11 \
SERVER 446 REMOTE_INSTANCE DEVTEST \
OSTYPE os400

db2 CATALOG DCS DATABASE DEVTEST AS DEVTEST

db2 CATALOG DATABASE DEVTEST AS DEVTEST \
AT NODE as400 AUTHENTICATION DCS


If I do a connect from the Linux machine using the incorrect
password, I correctly receive the error:

SQL30082N Attempt to establish connection failed with security reason
"24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001


If I do a connect from the Linux machine using the correct
username/password, I receive the error:

SQL30061N The database alias or database name "DEVTEST "
was not found at the remote node. SQLSTATE=08004

This is the error that has me stumped. I verified the name of the
database on the server, which is DEVTEST. It's quite possible that
I'm missing something elementary, so any suggestions are greatly
appreciated.

Thanks,
Douglas Hunter

This site may help:
http://www.ibm.com/servers/eserver/i...2/db22drda.htm

Ensure the *LOCAL RDB name using WRKRDBDIRE has the expected value.

Karl Hanson



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.