Interviewer And Interviewee Guide

Oracle Database Interview Question:

What Privilege Is Needed for a User to Create Indexes in Oracle?

Submitted by: Administrator
For 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

Read Online Oracle Database Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.