Hi Zoran,

Thank you very much for your message. To my understanding, SELECT ANY TABLE
should be sufficient to see all materialised views from a given schema,
according to the documentation:
https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/GRANT.html#GUID-20B4E2C0-A7F8-4BC8-A5E8-BE61BDC41AC3


Could there be a bug in your Oracle version that prevents materialised
views from being listed in ALL_MVIEW_COMMENTS, in that case? Can you see
them in ALL_MVIEWS or ALL_OBJECTS? What Oracle version are you using?

Thanks,
Lukas

On Thu, Nov 14, 2019 at 1:30 PM Zoran <[email protected]> wrote:

> Hello Lukas,
>
> our client wants to create one database user on Oracle with as few grant
> possible for generating Java code. Tables, sequences, views are working
> fine but most materialized views are missing.
>
> As I understood from source code, you are pulling catalog from
> SYS.ALL_MVIEW_COMMENTS. All materialized views have comments on them.
>
> Current grants for that user :
>
> CREATE SESSION
> SELECT ANY TABLE
> SELECT ANY SEQUENCE
> EXECUTE ANY PROCEDURE
>
> If we grant SELECT ON SCHEMA.TABLE to this user, materialized view is
> picked up. However, that is not acceptable solution. Why SELECT ANY TABLE
> grant doesn't work?
>
> Any ideas?
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jooq-user/dc246d1b-4719-4679-9950-06d04886d8c9%40googlegroups.com
> <https://groups.google.com/d/msgid/jooq-user/dc246d1b-4719-4679-9950-06d04886d8c9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/CAB4ELO4p9GcbvidnQNN2yx2qAFfVZnL9f%3Dew8YOAJ_W1L05z9w%40mail.gmail.com.

Reply via email to