| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| videlord Beginner
 
 
 Joined: 09 Dec 2004
 Posts: 147
 Topics: 19
 
 
 | 
			
				|  Posted: Sat Jan 29, 2005 2:25 am    Post subject: How to know which program using the table? |   |  
				| 
 |  
				| Can I find out how many and which programs (DBRM/PACKAGE) using one table in current DB2 subsystem? |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| CZerfas Intermediate
 
 
 Joined: 31 Jan 2003
 Posts: 211
 Topics: 8
 
 
 | 
			
				|  Posted: Mon Jan 31, 2005 6:57 am    Post subject: |   |  
				| 
 |  
				| You find the dependencies of packages in SYSIBM.SYSPACKDEP and those of programms bound directly to a plan in SYSIBM.SYSPLANDEP. 
 regards
 Christian
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| monaco Beginner
 
 
 Joined: 20 May 2004
 Posts: 77
 Topics: 31
 
 
 | 
			
				|  Posted: Tue Feb 01, 2005 12:17 pm    Post subject: |   |  
				| 
 |  
				| Try with this query: 
 
  	  | Code: |  	  | SELECT DISTINCT(GRANTEE)
 ,SELECTAUTH
 ,INSERTAUTH
 ,UPDATEAUTH
 ,DELETEAUTH
 FROM SYSIBM.SYSTABAUTH
 WHERE TCREATOR LIKE 'AISD3*'
 AND GRANTEETYPE = 'P'
 AND TTNAME LIKE 'KSI%'
 ORDER BY GRANTEE
 ,DELETEAUTH DESC
 ,INSERTAUTH DESC
 ,SELECTAUTH DESC
 ,UPDATEAUTH DESC
 ;
 
 | 
 
 Kind regards.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |