What Privilege Is Needed for a User to Create Indexes in Oracle?
Submitted by: AdministratorFor a user to create indexes, he/she needs the same privilege as the creating tables. Just make sure he/she has the CREATE TABLE privilege. The following tutorial exercise gives you a good example on creating view privilege:
>.insqlplus /nolog
SQL> connect SYSTEM/globalguideline
SQL> GRANT CREATE TABLE TO dev;
Grant succeeded.
SQL> disconnect
SQL> CONNECT DEV/developer
SQL> CREATE INDEX ggl_index ON ggl(id);
Index created.
SQL> DROP INDEX ggl_index;
Index dropped.
SQL> CREATE INDEX ggl_index ON ggl(id);
Index created.
Submitted by: Administrator
>.insqlplus /nolog
SQL> connect SYSTEM/globalguideline
SQL> GRANT CREATE TABLE TO dev;
Grant succeeded.
SQL> disconnect
SQL> CONNECT DEV/developer
SQL> CREATE INDEX ggl_index ON ggl(id);
Index created.
SQL> DROP INDEX ggl_index;
Index dropped.
SQL> CREATE INDEX ggl_index ON ggl(id);
Index created.
Submitted by: Administrator
Read Online Oracle Database Job Interview Questions And Answers
Top Oracle Database Questions
☺ | What Happens to Indexes If You Drop a Table? |
☺ | How To Use "OUT" Parameter Properly? |
☺ | How To Create a Stored Procedure in Oracle? |
☺ | How To Use Values from Other Tables in UPDATE Statements using Oracle? |
☺ | What Is the Relation of a User Account and a Schema? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Oracle RMAN Interview Questions. |