Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: GRANT <priv.> ON <tabName> *<WHERE-clause>* TO <username>...

Re: GRANT <priv.> ON <tabName> *<WHERE-clause>* TO <username>...

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Fri, 22 Dec 2000 09:39:31 -0000
Message-ID: <977477879.2573.1.nnrp-10.9e984b29@news.demon.co.uk>

Which version of Oracle does it not work for ? I haven't had any problems with the actual SET_CONTEXT procedure.

Apologies if this is insulting - but are you aware that when you create a context you specify the single package that will be allowed to change the context. Consequently the directive to

'use dbms_session inside a procedure'

should be read as

'use dbms_session inside a procedure in the package you specified as the package that is allowed to set the context',

and not as

'use dbms_session inside any old procedure that you happen to write'.

(I have had problems with contexts in 8.1.5, but that was with parallel queries trying to use the sys_context values)

--
Jonathan Lewis
Yet another Oracle-related web site:  http://www.jlcomp.demon.co.uk

Practical Oracle 8i:  Building Efficient Databases

Publishers:  Addison-Wesley
See a first review at:
http://www.ixora.com.au/resources/index.htm#practical_8i
More reviews at: http://www.jlcomp.demon.co.uk/book_rev.html



monsri_at_my-deja.com wrote in message <91v304$phg$1_at_nnrp1.deja.com>...

>you would understand... And don't forget the DBMS_SESSION.SET_CONTEXT
>procedure doesn't work (check the doc. ID 100130.1 on Metalink: the
>would-be workaround they give -embed the SET_CONTEXT command line
>inside a user-defined procedure- doesn't work neither).
>
Received on Fri Dec 22 2000 - 03:39:31 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US