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: PL/SQL schema problem

Re: PL/SQL schema problem

From: Jackie Marino <Jackie.A.Marino_at_wgp.twc.com>
Date: Fri, 29 May 1998 17:41:20 GMT
Message-ID: <356EF50B.35AE@wgp.twc.com>


Kevin Seneviratne wrote:
>
> I am running PL/SQL 2.3.2.2.0, SQL*Plus 3.3.4.0.0 and Oracle 7.3.2
>
> My problem is as follows
>
> create or replace x(
> y as varchar2
> )
> cursor c_z
> select aaa from cccc
>
> .....
>
> works fine
>
> but the moment I try
>
> select aaa from bbb.ccc
>
> it comes up with an error.
>
> Is there anyway to specify the schema inside a stored procedure
>
> Thanks vmuch
>
> Kevin.

I had this problem, too. You can get around it by explicity granting the privilege to the user accessing the procedure. For example: 'grant select on bbb.ccc to user' (you have to be running this statement logged on as bbb)
Then create the procedure again. Hope this helps. jackie marino
wgp Received on Fri May 29 1998 - 12:41:20 CDT

Original text of this message

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