Skip to content

NH-3080 - Validate Oracle Sequences from different Schema/User #736

Open
@nhibernate-bot

Description

@nhibernate-bot

wrathburn created an issue — 5th March 2012, 21:53:13:

I am working on a project where I want to validate an Oracle schema via another Oracle user account. Everything works except for validating sequences. The query in the Oracle8iDialect for getting the sequences is "select sequence_name from user_sequences" which only works if you are logged in as that schema owner. Would it be better to use something like "select sequence_name from sys.all_sequences where owner = upper('" + Environment.Properties["default_schema"] + "'". This would require a default_schema specified in the configuration but would return a correct set of sequences as long as the asking schema as SELECT permissions granted to the schema.

The fix for my project is I use a custom Oracle Dialect which can be seen in the attached file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions