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 » Weird Oracle issue[SOLVED]

Post new topic  Reply to topic
 Weird Oracle issue[SOLVED] « View previous topic :: View next topic » 
Author Message
harelmoshe1
PostPosted: Sun Mar 26, 2006 6:36 am    Post subject: Weird Oracle issue[SOLVED] Reply with quote

Apprentice

Joined: 29 Dec 2005
Posts: 41

Hey, i'm using WBI 5 with CSD 6, and while trying to select records from Oracle 9i DB using a compute node, i get 'table or view does not exist' exception, although the table exists FOR SURE (I checked the query on oracle's sql-plus, and it works great, and i checked the syntax more than you can imagine...). I successfully tested other queries in the same node with other tables, so that's not a driver/datasource name problem.

Another thing to notice is that the query fails both in:

SELECT P.Value FROM Database.wbistar.Properties AS P WHERE Name = 'name1'

and

PASSTHRU('SELECT Value FROM wbistar.Properties WHERE Name = 'name1')

Has anyone experienced this kind of problem ?


Last edited by harelmoshe1 on Mon Mar 27, 2006 1:01 am; edited 1 time in total
Back to top
View user's profile Send private message
wschutz
PostPosted: Sun Mar 26, 2006 7:25 am    Post subject: Reply with quote

Jedi Knight

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

Hey, are you certain "wbistar" is the right schema name?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
harelmoshe1
PostPosted: Sun Mar 26, 2006 7:47 am    Post subject: Reply with quote

Apprentice

Joined: 29 Dec 2005
Posts: 41

Yes, definitely... the table appers in that schema in SQL-Plus, too
Back to top
View user's profile Send private message
mgk
PostPosted: Sun Mar 26, 2006 8:52 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi,

Can you post your exact ESQL statement and the exact error message please.

Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
JT
PostPosted: Sun Mar 26, 2006 3:08 pm    Post subject: Reply with quote

Padawan

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

At a minimum, your SQL statement should be:
Code:
SELECT P.Value FROM Database.wbistar.Properties AS P WHERE P.Name = 'name1'
Back to top
View user's profile Send private message
harelmoshe1
PostPosted: Mon Mar 27, 2006 1:03 am    Post subject: Solved - Reply with quote

Apprentice

Joined: 29 Dec 2005
Posts: 41

The problem was that the table existed in a schema names 'wbistar', while the broker used 'cmqibkd2' schema, derived from the username it uses. Granting all previliges on table to the user 'cmqibkd2' solved the problem.
Back to top
View user's profile Send private message
mgk
PostPosted: Mon Mar 27, 2006 1:29 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

You could have also used mqsisetdbparms to change the username and pwd the broker uses to connect to the database instead.
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
wschutz
PostPosted: Mon Mar 27, 2006 3:14 am    Post subject: Re: Solved - Reply with quote

Jedi Knight

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

harelmoshe1 wrote:
The problem was that the table existed in a schema names 'wbistar', while the broker used 'cmqibkd2' schema, derived from the username it uses. Granting all previliges on table to the user 'cmqibkd2' solved the problem.
I don't think that statement is quite correct, the broker was using wbistart schema, because you told it to:
Code:
SELECT P.Value FROM Database.wbistar.Properties AS P WHERE Name = 'name1'
The reason it wasn't working was because of an authority problem.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Weird Oracle issue[SOLVED]
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.