MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

package not found

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
katrix
Beginner


Joined: 11 Jul 2005
Posts: 3
Topics: 1

PostPosted: Mon Jul 11, 2005 5:38 am    Post subject: package not found Reply with quote

Hello Smile ,

I have successfully compiled a procedure which performs some looping operations.

But when I try calling that procedure it give me the following error:
Sad

call RA.P_T_C(3,10,5,15)
SQL0805N Package "RA.P5575764 0X47423636504C4856" was not found.
SQLSTATE=51002

SQL0805N Package "RA.P5575764 0X47423636504C4856 " was not found.

Explanation:

The statement cannot complete because the necessary package was
not found in the catalog.

The "<package-name>" is either in the form:

o 'pkgschema.pkgname 0Xcontoken', where the consistency token
is given in hexadecimal.

o 'pkgschema.pkgname.pkgversion', if the package version is the
empty string then '.pkgversion' is omitted from the name.

o '%.pkgname' if the CURRENT PACKAGE PATH is set. The set of
schema names in the CURRENT PACKAGE PATH are implied by the
percent character ('%').


I even tried running db2rbind on my database but the log file for that run read as follows: Confused

Package 'P8504160' of database 'DBNAME' failed to revalidate.
Package 'P8504182' of database 'DBNAME' failed to revalidate.


I would be glad Very Happy if someone suggested me a way to get out of this.. I am a beginner with DB2 and am not aware of other features that may be exploited.

Hoping to get some suggestion soon.

Thanking you in anticipation

Katrix
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Jul 11, 2005 5:49 am    Post subject: Reply with quote

katrix,

Make sure there are no other users connected to the database when you are performing the bind. You can perform the following at the DB2 command window to ensure no other users are connected:
Code:

db2 "force applications all"


This will disconnect all applications from the instance. Now try to bind the package

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
katrix
Beginner


Joined: 11 Jul 2005
Posts: 3
Topics: 1

PostPosted: Mon Jul 11, 2005 6:07 am    Post subject: thanks but didnt work Reply with quote

HI kolusu,

I tried out as u suggested, but all in vain. I got the same error.

hope ur next suggestion solves my prob Wink

Katrix
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Jul 11, 2005 6:27 am    Post subject: Reply with quote

check this link

http://tada.percussion.com/web/knowbase.nsf/0/e558923856a5e34585256dcf005a1cc8?OpenDocument

Also run this query to see if the package existed.

Code:

SELECT PKGNAMES
  FROM SYSCAT.PACKAGES
 WHERE PKGSCHEMA = your schema name


Also check if you are connecting to a db that is different from the one you bound against.

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
katrix
Beginner


Joined: 11 Jul 2005
Posts: 3
Topics: 1

PostPosted: Mon Jul 11, 2005 7:27 am    Post subject: Reply with quote

hey,

i tried that query and it returned a null. That means that no such package is getting created.

I went through the link that u provided but couldnt decipher how it would help in solving my problem Sad

DB2 itself gave some user-response which advices to issue some db2 utility query but even that didnt work out for me.

Anyway thanks a lot for your prompt response. Will keep trying.....
DO let me know if u find some viable solution

Katrix
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group