Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Grant permissions on views with WITH clauses
In article <bjlhe4$cff$1$8302bc10_at_news.demon.co.uk>,
Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk> wrote:
>
>Just as a little refinement on the problem.
>
>If you grant select on the underlying tables,
>then queries against the view __MAY__ fail
>'randomly' with error 32036 when executed
>by the grantee.
>
>The problem may not occur with all variations
>of using subquery factoring and I haven't tried
>identifying exact boundaries of the problem, but the
>point at which the issues appears is when the
>optimiser decides to INLINE the factored subquery
>rather than generating a temporary table for it.
We saw 32036 errors when we tried to GRANT SELECT on some of the production views that have the WITH clause, much less trying to query against the view. The test case I posted was simple, mainly to illustrate the basic problem of not being able to do the SELECT with the second user.
Thanks for the extra testing. We weren't sure where the 32036s were coming from, or how related they were to the permission issue. Received on Tue Sep 09 2003 - 17:12:31 CDT