SunQuest
           DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 15th, 2004, 08:30 PM
chanpcw chanpcw is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 3 chanpcw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 sec
Reputation Power: 0
Catalog command fails for remote DB2 database access - help please !!!

Hi,

I'm currently preparing a new setup for our Perl programs that run on HP-UX using DBD-DB2 module to access remote databases hosted in OS/400. I installed the software DB2-Application-Development-Client with the user "db2inst1" created in the HP machine. The installation went well without any error.

After completed the ADCL installation, I went on to run the db2-catalog commands for defining the remote databases, however the following error was shown every time I ran the command,

SQL10007N Message "-1390" could not be retrieved. Reason code: "6".

I tried the same setup in two different HP machines, also tried running the db2-catalog commands as root or db2inst1, but still got the same error message.

Can somebody shed me some light on this?

Thanks
Philip

Reply With Quote
  #2  
Old July 15th, 2004, 09:04 PM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,173 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 24
A reason code: "6" has the following meaning:

An unexpected system error occurred. Try execution again. If problem persists, contact your IBM representative.

Ouch! Without additional information, I don't know what to tell you. Can you run any other DB2 commands like LIST successfully? Are your environment variables set up properly (Is db2profile being run)? I guess I'm fishing for something else that might fail and give a more meaningful error message. The message above is useless for helping solve the problem and sounds kind of grim.

Reply With Quote
  #3  
Old July 26th, 2004, 03:03 PM
famudba famudba is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Tallahassee,FL
Posts: 1 famudba User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to famudba Send a message via Yahoo to famudba
you need to install db2 connect , R U try to access lower vesion DB server , from higher version client


v8 client try to access v7 db



let me know your environment.


thank you

Lekharaju Ennam

Quote:
Originally Posted by chanpcw
Hi,

I'm currently preparing a new setup for our Perl programs that run on HP-UX using DBD-DB2 module to access remote databases hosted in OS/400. I installed the software DB2-Application-Development-Client with the user "db2inst1" created in the HP machine. The installation went well without any error.

After completed the ADCL installation, I went on to run the db2-catalog commands for defining the remote databases, however the following error was shown every time I ran the command,

SQL10007N Message "-1390" could not be retrieved. Reason code: "6".

I tried the same setup in two different HP machines, also tried running the db2-catalog commands as root or db2inst1, but still got the same error message.

Can somebody shed me some light on this?

Thanks
Philip

Reply With Quote
  #4  
Old October 19th, 2005, 06:08 PM
anthony.clarke anthony.clarke is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 1 anthony.clarke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 10 sec
Reputation Power: 0
I had this error: the cause was file permisions at the top of the /db2 tree. Below this the db2 instance creation process had set the correct permissions but as a non administrative user I could not connect to the database or run commands like db2 list directory.

Once I fixed the permissions it all worked.

Regards,

Anthony

Last edited by anthony.clarke : October 19th, 2005 at 06:09 PM. Reason: typo

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > Catalog command fails for remote DB2 database access - help please !!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway