IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To track all the views which uses the same table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Thu Apr 24, 2008 3:20 pm
Reply with quote

Cud u pls suggest me an answer on this…


I have a table , say an emp table. I need to track all the views which uses this table as source…


Regards
R.Karthik
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Thu Apr 24, 2008 4:55 pm
Reply with quote

try this

Code:


select name from sysibm.sysviews where text like '%table_name%';

Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Thu Apr 24, 2008 6:21 pm
Reply with quote

Go to Platinum
Code:
 
DB2 Object ===> T                       Option  ===> V    Where => N   
 Table Name ===> emp                >  Creator ===> *
  Qualifier ===> *                    >  Grantor ===> *         


It will list all the views on the table emp.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Apr 25, 2008 4:47 am
Reply with quote

Do you have BMC Software Administrative Products for DB2 installed at your shop?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top