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: Accessing tables in another schema from a package

Re: Accessing tables in another schema from a package

From: Mark and Karen Nolte <mknolte_at_megsinet.net>
Date: 11 Jun 1998 02:35:55 GMT
Message-ID: <01bd94e2$563b79a0$284f85d0@mknolte>

runesl_at_my-dejanews.com wrote in article <6li86u$v08$1_at_nnrp1.dejanews.com>...
> Hi!
>
> I have two schemas adb and cdb on the same Oracle 7.3 server. In the adb
> schema I have created a package with a procedure which tries to access
data
> from a table in the dfo schema. When I try to create the package, I'll
get
> the errors shown below.
>
> Anybody know how to refer to a table in another schema? The insert
statement
> works fine alone in SQL+, logged in as the same user who tries to create
the
> package below.
>

You must grant the select privilege to the dfo table expicitly to the adb schema (not through a role).
Login to the dfo schema and type:
grant select on cable to adb; Received on Wed Jun 10 1998 - 21:35:55 CDT

Original text of this message

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