Q

Insufficient privileges to create views

This Content Component encountered an error
According to our DBA, I have the permission to create views. However, when I am creating one, it gives me error 'ORA-01031: insufficient privileges'. Could you kindly give some expert advice on what might be the cause. I am currently using TOAD to connect to Oracle DB.
Your first idea that you need the CREATE VIEW system privilege is correct. If you do not have this system privilege, then you will receive the ORA-1031 error when you try to create the view. If you have been granted CREATE VIEW and still cannot create your view, then you need to dig further.

When you create the view, you rely on one or more underlying objects of that view. These objects can be other tables, views, synonyms, functions, etc. And sometimes, these objects depend on other objects. For instance, the synonym your view is trying to reference points to a view in another schema that uses a table in that schema. You need to make sure that you have the appropriate permissions on the underlying objects of your view,...

and any objects that those underlying objects depend on. If you do not have permissions on any of these objects, then you will receive the ORA-1031 error.

This was first published in December 2004

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close