That is too little information skinnymofo. DB_File comes in a variety of *versions*, and depending on which Berkley DB you have installed, yet another set of *versions*. Also, are you using DB_RECNO, DB_BTREE, or DB_HASH?

Are you sharing the "database" with a C application (or some non-perl non-DB_File thing)?

I use DB_File all the time, and I'd really like to know exactly what you're doing?

Is the "database" being shared between perl applications (race conditions)?

Are you locking the "database" somehow?

Did you perhaps interupt the application whilst it was in the midst of writing to the database?

The only size limits I've heard of are on keys/values, usually when dealing with DB_RECNO (and bigger files would decrease performance, but i've not heard of corruption).

DB_File databases, with possibly the exception of DB_RECNO, are *usually* not portable accross systems, or at least not accross versions. Did you perhaps upgrade DB_File?

The fact that you're running WinNT is not of great help. You need to give us the perl version and more importantly the DB_File version

update:
P.S. - I don't like to call DB_File a DBM file, cause it's so much better than the others ;)

Also, and I can't believe I didn't focus on this first, please define "corruption". What is going wrong?

 
______crazyinsomniac_____________________________
Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"


In reply to (crazyinsomniac) Re: DBM file corruption? by crazyinsomniac
in thread DBM file corruption? by skinnymofo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.