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 » Problem with DSN configuration and Oracle

Post new topic  Reply to topic
 Problem with DSN configuration and Oracle « View previous topic :: View next topic » 
Author Message
artykito
PostPosted: Mon Sep 13, 2010 10:56 pm    Post subject: Problem with DSN configuration and Oracle Reply with quote

Apprentice

Joined: 24 Jun 2010
Posts: 33

Hi all,

I'm having problems with the ODBC configuration for an Oracle DB and doing a SELECT or INSERT by ESQL from a Compute node. I've never do this before and I'm stuck...

As I'm using Windows XP, my first step was to do this configuration for Oracle. Test connection is OK and my DSN is now called 'OWD'.

After that, I wrote this command in console and then reset the broker:

Code:
mqsisetdbparms WBRK7_DEFAULT_BROKER -n [b]dsn::DSN[/b] -u UserId1 -p password1


*** (I used 'dsn::DSN' literally, is this correct or must I change 'DSN' for 'OWD'?) ***

And then, I revised my ODBC.ini and this is its content:

Quote:
[ODBC 32 bit Data Sources]
OWD=WebSphere Message Broker DataDirect Technologies 6.0 32-BIT Oracle Wire Protocol (32 bits)
[OWD]
Driver32=C:\Archivos de programa\IBM\MQSI\7.0\bin\UKORA24.DLL


Anyway, checking the forum, I could see I can add parameters to this file, so I add manually the following params after the lines above:

Quote:
EnableSQLDescribeParam=1
EnableDescribeParam=1
OptimizePrepare=1
ServerName=<Server host>
WorkArounds=536870912
ProcedureRetResults=1


With this or without this lines, my problem is that I'm not able to write a SELECT or INSERT without warnings or errors... I could find a solution for a SELECT using the PASSTRHU statement, but I'm still having problems with the INSERT. My code is like the code of Data Warehouse sample:

Code:
INSERT INTO Database.TEST (TEST1,TEST2) VALUES ('UNO','DOS');


Where TEST is a table I created in Oracle and TEST1, TEST2 are its fields. But in this sentence, I have 3 warnings:

Quote:
Unresolvable database table reference "Database.TEST"
Unresolvable database table reference "TEST1"
Unresolvable database table reference "TEST2"


I have set the DSN in the Compute properties, and I know there isn't a connection problem (because when I do a SELECT trhu the PASSTHRU statement, it works), so I think is a configuration problem or something like that, but I was checking the help, the forum, etc... and I can't find anything useful.

For more information, I have added the DB in the Data Source Explorer perspective and I'm able to create tables, to do select, inserts, etc... with the SQL Script files (.sql). My problem is in the ESQL code. Also, my user is Administrator.

Please help me! I'm desperate...
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Sep 14, 2010 2:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The unresolvable database warnings are a) WARNINGS and thus IGNORABLE, b) resolved by creating a Data project in the Toolkit. This is not a deployable resource and it only serves to remove these warnings. Just ignore the warnings.

You otherwise have mqsisetdbparms incorrect.
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/an09155_.htm
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 » Problem with DSN configuration and Oracle
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.