-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Problem finding database objects in Oracle ..
PostPosted: Thu May 24, 2007 10:58 pm 
Newbie

Joined: Sat Mar 03, 2007 3:14 am
Posts: 16
By default oracle names the schema same like the user that is connected. Well, when i use a different user to connect to BD, and existing objects in different schema's, objects like sequences or views, hibernate can not find them. I try to set all possible configuration in the mappings <class .. schema=""> and <param name="schema">name</>

I check the generated SQL and Hibernate trying to find SCHEMA_NAME.VIEW_NAME so, this is what it must ask, but the result is missing table or object in BD. I check several times, and the view or sequence exist, that for sure.
Can some body tell my if it is possible to work with database object pleased in a different schema that the default ??
I'm quite sure that this is the problem.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 25, 2007 1:58 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi smlghst,

Check the grant of your current schema

_________________
Dharmendra Pandey


Last edited by dharmendra.pandey on Fri May 25, 2007 2:19 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: hi there
PostPosted: Fri May 25, 2007 1:59 am 
Newbie

Joined: Sat Mar 03, 2007 3:14 am
Posts: 16
hello, i really need for help .. i now that the documentation seems like there is no problem acceding different schema's (with the DB permissions of
course ),and it work fine for Tables, but with sequences and views, Hibernate simply can not find. I don't now what was wrong, can some body tell my if it has been tested the scenario?
Bye


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 25, 2007 2:13 am 
Newbie

Joined: Sat Mar 03, 2007 3:14 am
Posts: 16
yes i restrict the permissions for Tables, and works fine, sequences only have two and are both set, and the user are able to select from views.
But the reality is that I'm not a well documented about permissions in the DB, can some body give me a trip?
Or it should not be a problem like it is ?
What permissions have to be set to use a different schema's in Hibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 25, 2007 2:21 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
I could not understand, Are you able to solve your problem

_________________
Dharmendra Pandey


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 25, 2007 2:33 am 
Newbie

Joined: Sat Mar 03, 2007 3:14 am
Posts: 16
no . i only show the permissions in the BD, like it are, and it is not working.
So i ask if there is some permissions that have to be set to work with different schema's?
And I ask this, because i test it in the BD, and the user have the right permission.
So ..


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 25, 2007 2:59 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Read ,write Grant

_________________
Dharmendra Pandey


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


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

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.