what are the forced views

Answer Posted / devendar

A view can be created even if the defining query of the
view cannot be executed, as long as the CREATE VIEW command
has no syntax errors. We call such a view a view with
errors. For example, if a view refers to a non-existent
table or an invalid column of an existing table, or if the
owner of the view does not have the required privileges,
then the view can still be created and entered into the
data dictionary.

You can only create a view with errors by using the FORCE
option of the CREATE VIEW command:

CREATE FORCE VIEW AS ...;
When a view is created with errors, Oracle returns a
message and leaves the status of the view as INVALID. If
conditions later change so that the query of an invalid
view can be executed, then the view can be recompiled and
become valid. Oracle dynamically compiles the invalid view
if you attempt to use it.

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can cursors be part of a trigger body?

1114


What is a database? Explain

593


What are instead of triggers?

622


Is sqlite free?

534


what is a trigger in mysql? : Sql dba

599






what is an extent ? : Sql dba

582


Why we use join in sql?

527


What are the different ddl commands in sql?

577


How do I order by ascending in sql?

535


what is the different between now() and current_date()? : Sql dba

523


Can you sum a count in sql?

559


How to create an array in pl/sql?

582


What is group function in sql?

531


What are field types?

535


How do I install sql?

517