Answers were Sorted based on User's Feedback
Answer / madhoosapre
An index cannot be defined on a view. Because view is
virtual table, which consists of a subset of columns from
one more tables.
The Restrictions imposed on views are as follows:
1. A view can be created only in the current database.
2. A view can be created only if there is a SELECT
permission on its base table
3. A Trigger or an Index cannot be defined on a view.
4. A view cannot be derive its data from temporary tables.
5. The CREATE VIEW statement cannot be combined with other
SQL statements in a single batch.
|Is This Answer Correct ?||144 Yes||67 No|
Answer / mkjmkumar
We can Define a Synonym on View.
|Is This Answer Correct ?||86 Yes||16 No|
Answer / ashok naik
Yes that is called indexed views using this we can improve
Query performance if your view contain single select
stament then we can easily establish unique clusterd index
|Is This Answer Correct ?||63 Yes||20 No|
Answer / deepak
We can create indexes on materialised views
|Is This Answer Correct ?||48 Yes||7 No|
Answer / md sajjad
No We cannot create index on view:
1* create view emp_view as select * from emp where
1* create index indx_emp on emp_view(empno)
create index indx_emp on emp_view(empno)
ERROR at line 1:
ORA-01702: a view is not appropriate here
|Is This Answer Correct ?||39 Yes||16 No|
Answer / janaka
Yes we can create Indexed view.
CREATE UNIQUE CLUSTERED INDEX i_IndexA
|Is This Answer Correct ?||55 Yes||35 No|
Answer / khushin dhulla
|Is This Answer Correct ?||14 Yes||8 No|
Answer / prakasam
yes. we can.
(v=sql.80).aspx - Refer the url
|Is This Answer Correct ?||5 Yes||2 No|
Answer / karthik
clear short article about Indexed View
|Is This Answer Correct ?||2 Yes||0 No|
Answer / itishree chhotray
View should be Schema binding,before creating index on view.
We can create Unique Clustered index on view after that we
can create non clustered index but we should have at least
one unique clustered index on view.
|Is This Answer Correct ?||0 Yes||0 No|
What are the differences between primary key and unique key?
5. Display full details from the ORDER_LINE table where the item number is (first condition) between 1 and 200 (no > or < operators) OR the item number is greater than 1000 AND (second condition) the item cost is not in the list 1000, 2000, 3000 OR the order number is not equal to 1000.
How to convert dates to characters in oracle?
How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?
What is a oracle database?
Differnce between view and index
Is postgres faster than oracle?
What is the effect of setting the value "all_rows" for optimizer_goal parameter of the alter session command? What are the factors that affect optimizer in choosing an optimization approach?
Where do you use decode and case statements?
Please explain joins in oracle?
How to use subqueries with the in operator using oracle?
How do I uninstall oracle 11g?