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

"Table or view does not exist" error

I have a problem with create view for user U1 when I want to make view V1 as select * from T1 and user U1 has grant select on T1 with role R1. I haven't had any problem when I want do select * from T1, but when I want create view as below, the error "table or view does not exist" appeared.

I have a problem with create view for user U1 when I want to make view V1 as select * from T1 and user U1 has grant select on T1 with role R1. I haven't had any problem when I want do select * from T1, but when I want create view as below, the error "table or view does not exist" appeared:
create view V1 as select * from T1
I accessed T1 only with role R1 and I can't create a public synonym for T1. How can I create this view with this priviledge and synonym? And why can't we create view on tables that we have grants on with role and they can't have public synonym? Thank you for your attention and your help.
Since view V1 is an object and if you are the owner, you have to grant select on view V1 to user U1 just as you did for table T1. If you do not want to create a synonym for V1 then U1 can access the view by prefixing the view using the owner's name. For example if the owner of the view is Fatima, the SQL statement will look like:
  Select * from fatima.V1;
This was last published in November 2006

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

  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...

SearchContentManagement

SearchHRSoftware

Close