Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / December 2005

Tip: Looking for answers? Try searching our database.

Droping an index

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raja Shekar - 29 Dec 2005 04:33 GMT
Hi Everybody,
I have a view created based on two base tables..now when i drop one of
the tables on which the view is dependent ..what would happen when i
try to select some records from that view ..? Does the view becomes not
usable or autmatically that will get droped as soon as one of the base
table on which it depends get dropped...?
Thanks in advance
Bye
Serge Rielau - 29 Dec 2005 05:35 GMT
> Hi Everybody,
> I have a view created based on two base tables..now when i drop one of
[quoted text clipped - 4 lines]
> Thanks in advance
> Bye

The view will effectively be dropped.
DB2 will keep the defintion in SYSCAT.VIEWS however, marking the view as
invalid.
There is no automatic revalidation.

Cheers
Serge
Signature

Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab

ras9929 - 29 Dec 2005 14:46 GMT
The other thing to remember is that DB/2 when invalidating a view will
also remove permissions from that view.  If DB2 security is handled by
a group other than DBAs, this can cause some organizational headaches.

Here's a query to list views dependent on an table...
SELECT VIEWSCHEMA, VIEWNAME
FROM SYSCAT.VIEWDEP
WHERE BNAME = '<table name>'
AND BSCHEMA = ' <table schema>'
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.