--
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 jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/dc246d1b-4719-4679-9950-06d04886d8c9%40googlegroups.com.
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: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 <zoran...@gmail.com> 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 SESSIONSELECT ANY TABLESELECT ANY SEQUENCEEXECUTE ANY PROCEDUREIf 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 jooq...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/fd91dfae-d3bb-4584-9351-92db51483052%40googlegroups.com.
Hi Zoran,
We're using ALL_MVIEW_COMMENTS, because we have to fetch the comments anyway, and it saves us a join or round trip. But if it doesn't work on some database versions, I guess we can resort to using a left join for the comments and query ALL_MVIEWS, instead. You would still not get the comments on these tables, but at least you will get the tables themselves, which is far more important.As a workaround, you could:- Create those materialised views as tables in a dummy schema just for the code generator (assuming you check in generated code)- Set the relevant grant on the tables explicitly on a development schema, just for the code generator (assuming you check in generated code)- Extend OracleDatabase (used by the code generator) to return those materialised views explicitly, on OracleDatabase.getTables0()I've created an issue for this, which we'll fix for the next versions 3.13.0 and 3.12.4:Thanks again for your report,Lukas
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/fd91dfae-d3bb-4584-9351-92db51483052%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/4b19a200-9700-41ff-a6ba-022e6b7bde78%40googlegroups.com.
--
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 jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/62284186-3bcd-47c1-a99b-76f3c01bc565%40googlegroups.com.