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

Home -> Community -> Usenet -> c.d.o.server -> Re: v$parameter

Re: v$parameter

From: Roger Snowden <snowden_at_NOT.com>
Date: Sat, 19 Dec 1998 19:04:20 GMT
Message-ID: <367BF7DC.D5BD1DBD@NOT.com>


Super-Duper-

Access to this sys-owned view was probably granted via a role. Roles are suspended during stored procedure execution under the current releases. To fix this, log in as sys and explicitly grant select on this view to the procedure owner.

It's a weird, wonderful world Oracle lives in, but it really does make sense. It's a security thing to prevent insidious security holes in complex systems.

Roger

Roger Snowden
Sr. Systems Engineering Specialist
Oracle Corporation
rsnowden_at_NOTus.oracle.com <-- to reply, remove the obvious

Super Kev wrote:
>
> Just a quickie....
>
> why is it that the following in SQL*Plus is fine..
>
> select value
> from v$parameter
> where name = 'utl_file_dir';
>
> whereas the following procedure produces the following error...
>
> create or replace procedure test_v$param as
>
> l_value varchar2(250);
>
> begin
>
> select value into l_value
> from v$parameter
> where name = 'utl_file_dir';
>
> end;
> /
>
> LINE/COL ERROR
> -------- -----------------------------------------------------------------
> 4/1 PL/SQL: SQL Statement ignored
> 5/6 PLS-00201: identifier 'SYS.V_$PARAMETER' must be declared
>
> both are created by the same user.
>
> cheers in advance.
Received on Sat Dec 19 1998 - 13:04:20 CST

Original text of this message

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