Details about FORCE VIEW why and we can use

Showing Answers 1 - 8 of 8 Answers

amit

  • May 13th, 2006
 

You can only create a view with errors by using the FORCE option, error can be table does not exists or if there are not enough priviliges on objects used in views. In this case view will be created and refrence will be added in dictionary table but will be in invalid state.

  Was this answer useful?  Yes

Lavanya Chowdary

  • May 6th, 2007
 

Generally we are not supposed to create a view without base table. If you want to create any view without base table that is called as Force View or invalid view.?
Syntax: CREATE FORCE VIEW AS < SELECT STATMENT >;
That View will be created with the message
View created with compilation errors
Once you create the table that invalid view will become as valid one.

g_sidhu

  • Feb 1st, 2008
 

Force View: creates the view regardless of whether or not the base tables exist or whether the user has privileges on them. The user still can’t execute the view, but he or she can create it. Normally if there is an error in the viewdefinition, the view is not created. If you add the keyword 'force', the view is created anyway.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions