Unix Technical Forum

Re: How to find the related Package ?

This is a discussion on Re: How to find the related Package ? within the DB2 forums, part of the Database Server Software category; --> I use this query: SELECT dep.bschema, dep.bname FROM sysibm.sysdependencies dep, syscat.procedures proc WHERE proc.procname = '$PROCNAME' AND proc.procschema = ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 05:37 PM
Leo
 
Posts: n/a
Default Re: How to find the related Package ?

I use this query:

SELECT dep.bschema, dep.bname
FROM sysibm.sysdependencies dep, syscat.procedures proc
WHERE proc.procname = '$PROCNAME'
AND proc.procschema = '$PROCSCHEMA'
AND dep.dtype = 'F'
AND dep.dname = proc.specificname
AND dep.dschema = '$PROCSCHEMA'

I use it in a shell script, so substitue the proc name and schema accordingly.

If you have to use it on a version 7 database, change dep.dtype = 'F' to 'L'

HTH...



"Matt Emmerton" <memmerto@yahoo.com> wrote in message news:<U%xac.7618$JO6.2698@twister01.bloor.is.net.c able.rogers.com>...
> "hype" <hypehoopla@yahoo.com> wrote in message
> news:71c621b6.0403301353.31ee42@posting.google.com ...
> > Hi,
> > How do we find the package that is created when a stored procedure is
> > built ?

>
> The package name by default is the first 8 characters of the source code
> file that contains the stored procedure, unless you specify something
> different when you prep/bind.
>
> > If I want to rebind a package related to a stored procedure, what
> > command should I need to run ?

>
> DB2 REBIND <package_name>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:22 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com