ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Remote Database ODBC issue with WBIMB

Post new topic  Reply to topic
 Remote Database ODBC issue with WBIMB « View previous topic :: View next topic » 
Author Message
biswagourab
PostPosted: Thu Jun 08, 2006 4:15 pm    Post subject: Remote Database ODBC issue with WBIMB Reply with quote

Apprentice

Joined: 31 May 2005
Posts: 47
Location: London

Hi,

I have WBIMB 6.0 on my machine, and DB2 8.1. I am trying to INSERT into a remote database using the Compute note.

INSERT INTO Database.WASADMIN.ACCOUNTDATA(FIRSTNAME,LASTNAME,ADDRESS) VALUES(SUBSTRING(InputRoot.BLOB.BLOB FROM 1 FOR 10),SUBSTRING(InputRoot.BLOB.BLOB FROM 11 FOR 10),SUBSTRING(InputRoot.BLOB.BLOB FROM 21 FOR 10));

WASADMIN is the schema name

the error that i am getting is
Database error: SQL State ''42S02''; Native Error Code '-204'; Error Text ''[IBM][CLI Driver][DB2/NT] SQL0204N "WASADMIN.ACCOUNTDATA" is an undefined name. SQLSTATE=42704 ''.

Please help

Thanks
Biswa
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
wschutz
PostPosted: Thu Jun 08, 2006 6:04 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

So? Does WASADMIN.ACCOUNTDATA exist in your data source?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
biswagourab
PostPosted: Thu Jun 08, 2006 7:45 pm    Post subject: Reply with quote

Apprentice

Joined: 31 May 2005
Posts: 47
Location: London

The database name on the remote machine is LABTEST and the database LABTEST is added to the ODBC .

Is it not enough?

WASADMIN is the schema and ACCOUNTDATA is the table.

Do i need to add schema to the ODBC?

Biswa
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
elvis_gn
PostPosted: Thu Jun 08, 2006 8:23 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi biswagourab,

You have specified the Database name as LABTEST in the compute node i suppose.

Try
Code:
INSERT INTO Database.ACCOUNTDATA(FIRSTNAME,LASTNAME,ADDRESS)


it should work.

Regards.
Back to top
View user's profile Send private message Send e-mail
markhiscock
PostPosted: Fri Jun 09, 2006 2:47 am    Post subject: Reply with quote

Novice

Joined: 16 May 2005
Posts: 22
Location: IBM Hursley, UK

Hi biswagourab,

Just a quick check. If the database is running on a remote machine, have you used DB2 to catalogue the remote database?

Cheers,

Mark
Back to top
View user's profile Send private message
biswagourab
PostPosted: Fri Jun 09, 2006 8:14 am    Post subject: Reply with quote

Apprentice

Joined: 31 May 2005
Posts: 47
Location: London

Hi all
I was dumb in not setting the mqsisetdbparms value for the broker and the remote DB.

Once i did that all started to run fine.

And I am able to insert data to the remote DB.

Thanks for the help guys.

Biswa
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Remote Database ODBC issue with WBIMB
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.