DB2 Transaction operation fails on large changes

Posted on 2007-10-02
Last Modified: 2012-08-14

I have a VisualStudio 2005 Web Application (VB) that works with a DB2 Database.
I have a problems when using transactions, but only when the number of changes increase inside the transaction.
The error I get is this one:
[DB2] SQL0805N Package "DBName.NULLID.SYSLH20A.535..." was not found. SQLSTATE 51002

The same code works perfectly with smaller updates. Its only when more updates are made in the transaction that I get the error. An bigger is not that big: I'm talking about maybe 2000 records.

The first time I got this message the name was DBName.NULLID,SYS203. Our DBA 'created' the missing package (I don't know what he did precisely; the term created might be totaly out of place here).
This allowed our application update further, but then we got the same error with another package: DbName.NULLID.204..., then 205 and so on.
Now it's 20A.
We could go on and add them as they come, but I guess it's not the thing to do.
Is there something in DB2 configuration that should be changed? Is a special grant needed to use Transactions? How can I know how many packages will be needed?
I have no knowledge of DB2 Admin.

Thanks for any help.
Question by:dapcom
    LVL 37

    Accepted Solution

    the number of packages is constant
    it does not depend on the amount of updates you do
    it depends on the code you run
    you can run the configuration assistant and there is an option to bind cli/odbc packages there
    just use that and it should set you free
    LVL 1

    Author Comment

    Thank you momi_sabag for your quick answer,

    I guess I'll need DBA grant to do that, I'll ask them to do it..

    LVL 1

    Author Comment

    Sorry momi_sabag,

     I thought I already accepted your answer long ago.

    It's working fine by the way :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
    Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
    This video discusses moving either the default database or any database to a new volume.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now