GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle
Go To First  |  Previous Question  |  Next Question 
 Oracle  |  Question 36 of 81    Print  
A view is created on a table then i dropped the base table and created the base table once again with the same name then that view will works or not?

  
Total Answers and Comments: 11 Last Update: February 05, 2008     Asked by: suresh 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
October 11, 2006 08:19:24   #1  
Rajneesh Kumar        

RE: A view is created on a table then i dropped the ba...

YEs The view will work fine.When we Re-create table with the same name view will work.If the table has some records entered then the old view also display the new record.so it is completely work.

Thanks


 
Is this answer useful? Yes | No
October 17, 2006 13:35:26   #2  
dev        

RE: A view is created on a table then i dropped the ba...

HI

But it's not working. i created a view and dropped the base table and again i created a table ven though it's not working.

Are u sure that the view will work.

Thanks.

Dev


 
Is this answer useful? Yes | No
October 24, 2006 14:09:24   #3  
vijay kumar        

RE: A view is created on a table then i dropped the ba...

yes its true it will work fine even the base table is recreated.

+09900416921

vijay


 
Is this answer useful? Yes | No
October 25, 2006 03:29:05   #4  
aseemnaithani Member Since: February 2006   Contribution: 10    

RE: A view is created on a table then i dropped the ba...
i think u need to recomplie the view .. as it would have become invalid.. after droping the table...
 
Is this answer useful? Yes | No
November 07, 2006 14:14:13   #5  
Neeraj        

RE: A view is created on a table then i dropped the ba...
you are correct. Good.
 
Is this answer useful? Yes | No
December 25, 2006 14:37:14   #6  
gangadharam.p Member Since: December 2006   Contribution: 11    

RE: A view is created on a table then i dropped the ba...
Hi all the view will work.it does not need to be recompiled.Regards Gnagadhar
 
Is this answer useful? Yes | No
January 03, 2007 22:41:31   #7  
madhavi        

RE: A view is created on a table then i dropped the ba...
View will work.
 
Is this answer useful? Yes | No
January 16, 2007 10:06:58   #8  
lieni Member Since: January 2007   Contribution: 6    

RE: A view is created on a table then i dropped the ba...
It depends how the view is accessed first time. If you access the viewfirst in a plsql programm plsql will recompile invalid objectsauomatically. On the other side if you access the view first thou JDBCit will not be recompiled an remains invald.

 
Is this answer useful? Yes | No
March 11, 2007 03:24:49   #9  
rayadurgamsudha Member Since: March 2007   Contribution: 6    

RE: A view is created on a table then i dropped the ba...
yes the view will work if the base table is dropped and again created with the same name and same records. it must have all the initial records new records can be added though to the newly created table. hte new records will be show in the view too.
regards
sudha.

 
Is this answer useful? Yes | No
May 23, 2007 08:09:08   #10  
Ashok Kumar choubey        

RE: A view is created on a table then i dropped the ba...

It will work either after base table drop and recreate or base table alteration.

Enjoy

 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape