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
☺ | How To Write Date and Time Interval Literals in Oracle? |
☺ | How To Use Values from Other Tables in UPDATE Statements using Oracle? |
☺ | What Is Input Buffer in SQL*Plus? |
☺ | How Run SQL*Plus Commands That Are Stored in a Local File? |
☺ | How To Create a New Table in Oracle? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Forms Reports Interview Questions. |