How to list UDF in DB2

20 May,2013 by Tom Collins

UDF in DB2 . How can I view  details on user defined functions?

To view user defined functions - UDF in DB2–  use the SYSCAT.ROUTINES catalog view to return a full list of user defined functions including – scalar function , table function, sourced function, method and procedure.

The example query returns Functions (routinetype = ‘F’ ) and  User Defined\SQL Bodied (origin in ('U', 'Q')

 

select r.routinename as FunctionName, r.text as FunctionBody from syscat.routines r where r.routinetype = 'F' and r.origin in ('U', 'Q')

 

Read More

DB2 list schemas of a database

DB2 SET CURRENT SCHEMA - DBA DB2

ADMIN_DROP_SCHEMA to drop a schema - DBA DB2

how to grant select privileges on all tables for DB2

Author: Rambler(http://www.dba-db2.com)

Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to list UDF in DB2

Comments are moderated, and will not appear until the author has approved them.


dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright