-->
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.  [ 3 posts ] 
Author Message
 Post subject: Oracle - sequence of different user problem in schema verify
PostPosted: Thu Jul 17, 2008 12:22 pm 
Newbie

Joined: Thu Jul 17, 2008 11:48 am
Posts: 4
Hi,

I am trying to verify the schema (using JBoss Seam) of an oracle database. This works for tables, but not for sequences.

What is the problem:
The sequence (and the tables) are created by the user "DBAMGR"
The verification is done with user "DBAUSR"

The tables and views are granted to the DBAUSR. I can use them with the same login through Sql-Developer.

During verification the sequence is not found.
Digging in hibernate code I find:
Code:
        public String getQuerySequencesString() {
                return "select sequence_name from user_sequences";
        }

Doing the same in SqlDeveloper, no rows returned.

When changing the SQL to select sequence_name from all_sequences it works.

As granted tables are shown, but the sequences not, is this a bug? That the sql has to be modified from user_sequences to all_sequences ?
The latter only shows the sequences the user has privelige on (when I look at the view all_sequences)

Or is there another way to do this?


Top
 Profile  
 
 Post subject: Found it in Jira...
PostPosted: Thu Jul 17, 2008 4:48 pm 
Newbie

Joined: Thu Jul 17, 2008 11:48 am
Posts: 4
See:
http://opensource.atlassian.com/project ... e/HHH-1697

Is to be fixed.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 19, 2008 9:37 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Thanks for the update, at the very least!

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.