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

Insufficient privileges to create views

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.

Dig Deeper on Oracle database design and architecture