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 > Error when cataloging dcs database for AS/400

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-09, 12:12
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
Error when cataloging dcs database for AS/400

Hi All,
I am getting the following error when trying to catalog OS400 system.

1. db2 catalog tcpip node <node name> remote <hostname> server 446

DB20000I The CATALOG TCPIP NODE command completed successfully.

2. $ db2 catalog dcs database <dbname> as <dbname>
SQL1318N The length of element "PCSETLTESPCSETLTEST" in the input structure
for parameter 1 is not valid.

Anyone please help me how to get rid of this error.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-01-09, 12:32
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
would be great if you post the actual db2 command......

I guess your command is something like
Quote:
db2 catalog dcs database PCSETLTESPCSETLTEST as <dbname>
and i presume dbname cannot be so long....
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #3 (permalink)  
Old 04-01-09, 13:06
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
Thanks nick my db name is pcsetltest and I gave the command as

db2 catalog dcs database PCSETLTEST as PCSETLTEST

am i doing right? the I am getting this error for the above comand

SQL1318N The length of element "PCSETLTESPCSETLTEST" in the input structure
for parameter 1 is not valid.
Reply With Quote
  #4 (permalink)  
Old 04-03-09, 04:33
sgmane sgmane is offline
Registered User
 
Join Date: Jul 2005
Posts: 19
Hi,

The error does inform:
The length values in the Database Connection Services directory entry structure should not be less than zero nor greater than the maximum length for the element it represents.

Do try with

db2 catalog dcs database PCSETLTEST as PCSET

and not the full name.
Do let us know.
Reply With Quote
  #5 (permalink)  
Old 04-03-09, 08:56
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
Hey thanks guyzz for ur replies.. It got fixed... the max alias name length is 8.
and it is wrking now.. I am able to catalog and connect to db.
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