in reply to DB_File tie failed

Maybe the database is corrupted? Sometimes it helps to dump and reload the database file with db_dump and db_load. It might be a problem of the berkeley db library itself --- recently I was surprised that I cannot tie RECNO databases in O_RDONLY mode (berkeley db 4.0 on RedHat 8.0). In that case there was also no error message in $!.

Replies are listed 'Best First'.
Re^2: DB_File tie failed
by Qiang (Friar) on Jun 07, 2004 at 05:20 UTC
    I have updated the DB_File and Perl to the latest. but still no luck. I have no problem working on another db file which generated a while ago using the same script.

    finally, i came to realize that the db I am having problem were generated on a windows machine using activeperl. once I regenerate the db file under the system i am working on(linux) , it is okay now.

    thanks again for your help.