Question

I am new to Teradata and created some stored procedure using cursor and getting this error. Please help

An owner referenced by user does not have SELECT access to(some column in table) Syntax error, expected something like an 'END' keyword between ';' and the 'DECLARE' keyword.'. Referring to undefined cursor 'abc'. An owner referenced by user does not have SELECT access to (some column in table) An owner referenced by user does not have SELECT access to (some column in table) Referring to undefined cursor 'abc'. Referring to undefined cursor 'abc'.

Was it helpful?

Solution

You may need to submit:

GRANT DELETE ON {Database}.{Table} TO {User Defining Procedure} WITH GRANT OPTION;

Stored procedures and privileges are a tricky thing. I would suggest brushing up on them in the Teradata DDL and Stored Procedure Language manuals available here for Teradata 13.10. There are subtle nuances that have to be taken into consideration.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top