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

Home -> Community -> Usenet -> c.d.o.misc -> Re: PL/SQL procedure: How to access tables not owned by you

Re: PL/SQL procedure: How to access tables not owned by you

From: Dan Clamage <clamage_at_mime.dw.lucent.com>
Date: 1997/11/05
Message-ID: <01bce9f8$00b05a90$54110b87@clamagent>#1/1

> I logged on as "scott/tiger" in sqlplus, and entered "start test" to
> store this procedure. ***BUT*** in this procedure, I also like to access
> a table "address" which is owned by the user "grace", and "grace"
> granted the privilege of using this table to the user "scott/tiger".
> What's the syntax to use in this procedure? I tried
> select zip into out_zip from grace.address where aname=upper('james');
> but I got the error message
> "PLS-00201: "IDENTIFIER GRACE.ADDRESS must be declared".
I'll bet the mistake you're making is that GRACE isn't the name of the tablespace (EQU schema) in which the table is located. GRACE is just the name of the user.
-djc Received on Wed Nov 05 1997 - 00:00:00 CST

Original text of this message

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