Collections:
Privilege to Create Views in Oracle
What Privilege Is Needed for a User to Create Views in Oracle?
✍: FYIcenter.com
To be able to create views in a user's own schema, the user needs to have the CREATE VIEW privilege, or the CREATE ANY VIEW privilege, which is more powerful, and allows the user to create views in other user's schema. The following tutorial exercise gives you a good example on CREATE VIEW privilege:
>.\bin\sqlplus /nolog SQL> CONNECT DEV/developer SQL> CREATE VIEW fyi_view AS SELECT * FROM fyi; ORA-01031: insufficient privileges SQL> disconnect SQL> connect SYSTEM/fyicenter SQL> GRANT CREATE VIEW TO dev; Grant succeeded. SQL> disconnect SQL> CONNECT DEV/developer SQL> CREATE VIEW fyi_view AS SELECT * FROM fyi; View created. SQL> DROP VIEW fyi_view; View dropped. SQL> CREATE VIEW fyi_view AS SELECT * FROM fyi; View created.
As you can see, "dev" can create and drop views now.
⇒ Privilege to Create Indexes in Oracle
⇐ Assign a Tablespace to a User in Oracle
2019-06-29, 2366🔥, 0💬
Popular Posts:
How To Install Oracle Database 10g XE in Oracle? To install 10g universal edition, double click, Ora...
What Are the Differences between DATE and TIMESTAMP in Oracle? The main differences between DATE and...
What is sqlservr.exe - Process - SQL Server (SQLEX?PRESS) in SQL Server? Process sqlservr.exe is the...
How to set the current database in SQL Server? Once you are connected to the SQL Server, you should ...
How To Start MySQL Server in MySQL? If you want to start the MySQL server, you can run the "mysqld" ...