Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table cannot be found when in a Procedure. 1

Status
Not open for further replies.

Kontact

IS-IT--Management
Feb 11, 2003
5
0
0
GB
Hi,

I a, trying to create a procedure which has a number of cursors, no inputs and no outputs. All it does is populate a table. On trying to compile it I get an error message saying that a table cannot be found within one of the cursors.

I have created a public synonym for the table and required priviledges.

For some reason, the pl/sql works fine, and the table is found, when its is within an anonymous block but once you wrap a procedure or function header around it, it can no longer find that table.
 
Sorry for the nievity, but what sort of grant are you referring to. My user already has Select, Update and Delete priviledges on the table.

Regards
 
Your user probably does not have those grants. Just issue
Code:
GRANT SELECT, UPDATE, DELETE ON <TABLE> TO <USER>
and see what happens.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top