dbTalk Databases Forums  

Bind time logged?

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Bind time logged? in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AntiVirus DBA
 
Posts: n/a

Default Bind time logged? - 11-22-2010 , 04:34 PM






I have an external function that we use in our CRM system, and my
application owners would like to know the last time it was bound in
the database. I've checked in syscat.functions, routines, and
packages, but the filename isn't located anywhere in those views. Is
there another table or view I can check ?

Reply With Quote
  #2  
Old   
Helmut Tessarek
 
Posts: n/a

Default Re: Bind time logged? - 11-23-2010 , 05:36 AM






Hi,

Quote:
I have an external function that we use in our CRM system, and my
application owners would like to know the last time it was bound in
the database. I've checked in syscat.functions, routines, and
packages, but the filename isn't located anywhere in those views. Is
there another table or view I can check ?
Can you please be a little bit more specific? External functions are not bound
to the database, except, if parts of them were written with embedded SQL
(which requires a precompiler).

Are you talking about a user defined function, a stored procedure, a table
function? Which language was used?

e.g. a UDF written in C has its filename in the IMPLEMENTATION column:

select funcname,create_time,implementation from syscat.functions where
funcname = 'YOUR_FUNCTION_NAME'

The implementation column will look something like a!b
where a is the filename and b the functionname in the C code.

Btw, the create time is the time you registered the function, not the time the
function was compiled. If you want the compile time you have 2 options:

1) check the timestamp in the sqllib/function directory (which can be wrong if
someone copied the file later than it was compiled
2) implement a compile time flag into the UDF

--
Helmut K. C. Tessarek
DB2 Performance and Development

/*
Thou shalt not follow the NULL pointer for chaos and madness
await thee at its end.
*/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.