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 » throws exeception during insert statement

Post new topic  Reply to topic
 throws exeception during insert statement « View previous topic :: View next topic » 
Author Message
dxbmq
PostPosted: Wed Dec 14, 2005 6:50 am    Post subject: throws exeception during insert statement Reply with quote

Newbie

Joined: 08 Dec 2005
Posts: 5

Hi,

I am trying to execute an insert statement in the compute node but it throws an exeception :ODBC Driver does not support this function. calling oracle stored procedure works perfect.

insert statement:
INSERT INTO Database.schema_name.table_name(FIRSTNAME,PASSPORT) VALUES('dxbmq',E1234');

external database:oracle 9i (9.2.0.1.0)
WBIMB v6

I appreciate if anyone could help me !!!!!!

Thanks...
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Dec 14, 2005 7:04 am    Post subject: Reply with quote

Jedi Knight

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

Quote:
INSERT INTO Database.schema_name.table_name(FIRSTNAME,PASSPORT) VALUES('dxbmq',E1234');
Did you mean:
Code:
INSERT INTO Database.schema_name.table_name(FIRSTNAME,PASSPORT) VALUES('dxbmq','E1234');
??
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
dxbmq
PostPosted: Wed Dec 14, 2005 7:35 am    Post subject: Reply with quote

Newbie

Joined: 08 Dec 2005
Posts: 5

yes wschutz.

is anything missing ?
Back to top
View user's profile Send private message
dxbmq
PostPosted: Wed Dec 14, 2005 7:47 am    Post subject: Reply with quote

Newbie

Joined: 08 Dec 2005
Posts: 5

this is the actual code :

INSERT INTO Database.DOIUSR.TAB1(FIRSTNAME,PASSPORT) VALUES('dxbmq','E1234');

schema_name:DOIUSR
table_name: TAB1

and find few warnings :
Unresolvable table reference "Database.DOIUSR.TAB1
Unresolvable table reference "FIRSTNAME"
Unresolvable table reference "PASSPORT"
Back to top
View user's profile Send private message
JT
PostPosted: Wed Dec 14, 2005 11:29 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

What database driver are you using?

Post the contents of the .odbc.ini file.
Back to top
View user's profile Send private message
dxbmq
PostPosted: Thu Dec 15, 2005 12:29 am    Post subject: Reply with quote

Newbie

Joined: 08 Dec 2005
Posts: 5

Hi ,

am using
"MQSeries DataDirect Technologies 5.0 32-BIT Oracle (32 bit)" driver
also please find the ODBC.INI file contents below :


[ODBC 32 bit Data Sources]
MQIS=SQL Server (32 bit)
RESERVDB=IBM DB2 ODBC DRIVER (32 bit)
DEFBKDB6=IBM DB2 ODBC DRIVER (32 bit)
DNRDBKDB=IBM DB2 ODBC DRIVER (32 bit)
TESTDB=IBM DB2 ODBC DRIVER (32 bit)
DBAORA=MQSeries DataDirect Technologies 5.0 32-BIT Oracle (32 bit)
[MQIS]
Driver32=C:\WINNT\System32\SQLSRV32.dll
[RESERVDB]
Driver32=C:\IBM\SQLLIB\BIN\DB2CLI.DLL
[DEFBKDB6]
Driver32=C:\IBM\SQLLIB\BIN\DB2CLI.DLL
[DBAORA]
Driver32=C:\IBM\WMB6\bin\UKOR820.DLL
-------------------------------------------------------------------------------------

DBAORA is the oracle data source name.

thanks..
Back to top
View user's profile Send private message
dxbmq
PostPosted: Thu Dec 15, 2005 4:27 am    Post subject: Reply with quote

Newbie

Joined: 08 Dec 2005
Posts: 5

Thanks everyone ......

My problem is solved.

Its not a ODBC driver problem though it throws an exception saying "ODBC driver doesnot support this function" please find the solution given by Robert.
also note: mentioning wrong data source name in the node properties will also result to the same exeception.


Robert wrote
Quote:



I found a quicker way to remove the database warnings.

1- From the Data perspective create the Database and Schema.

2- From the Broker Application Development perspective, create a Message Flow Mapping file (even if you don't intend to use any) that refers to your Database/schema.

3- In the Target Mapping section, <right> <click> and select "Add RDB Table Mapping Output"...

And presto! Your Database warnings are gone from your sample message flows without having to define each table/columns...
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Dec 15, 2005 4:29 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Please understand that there is a significant difference between a "warning in the toolkit" and an "exception".

If you had been clear that you were dealing with warnings from the toolkit, you would have gotten the right answer quickly.

You talked about an "exception".

Exceptions are runtime errors. Warnings in the toolkit are compile time errors - and this one could have been ignored!

Of course, nobody asked for more information about the exception, which might have helped us understand that you were talking about a compiletime error rather than a runtime error.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » throws exeception during insert statement
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.