Q
Problem solve Get help with specific problems with your technologies, process and projects.

Procedure to access public synonym via select statement

I am trying to create a procedure with a select statement. It is trying to access a public synonym, which is actually pointing to remote view.

I have the proper privileges to select data from the said view. The query written in the PL/SQL block works fine at the SQL prompt, but I am getting an error:

ORA -980 Synonym translation no longer valid.

Kindly suggest what the problem is.


Ask your DBA to grant you select on the view with grant option and see if you continue to have the problem. Let me know how you make out. Also, see if the public synonym is pointing to the right table. Could it be that you have a local synonym that is no longer valid?

Dig Deeper on Using Oracle PL-SQL

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close