Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Change in Berkeley DB in Perl 5.12?

by Anonymous Monk
on Oct 30, 2011 at 02:19 UTC ( #934674=note: print w/ replies, xml ) Need Help??

Comment on Re^3: Change in Berkeley DB in Perl 5.12?
Re^4: Change in Berkeley DB in Perl 5.12?
by RobbieSnr (Novice) on Nov 03, 2011 at 18:00 UTC
    I saw your reply but I didn't now what you were suggesting. Can you please explain?

      I saw your reply but I didn't now what you were suggesting. Can you please explain

      I didn't make a suggestion :)

      I told you why your problem happens (Its the nature of the beast )

      and how to solve it ( You need to use db_stat db_verify db_dump db_upgrade)

      So when you encounter a problem after transferring a .db between machines, or upgrading ...

      The solution is to use one of the utilities provided for this purpose, db_stat, db_verify, db_dump, db_upgrade, ...

        Ah, I see, thanks.

        Unfortunately I am using one of 1&1's servers and have no access to these utilities which don't seem to be available from the DB_File module. There must be others in the same position as I am, who have no knowledge of how Berkeley DB works and who are just using DB_FIle to create hash database files. They would expect a Perl upgrade to be backwards compatible and won't understand why they can't now access their database files. I also thought that newer versions of the DB engine would also be backward compatible and did check the Oracle forum to see if there were any problems in this respect and there didn't seem to be. I did know that you can't transfer one of these database files from one computer to another but here they were on the same machine.

        There is no mention of possible problems in the DB_FIle CPAN page if the DB engine is upgraded and that this needs to be checked. This Perl module is only intended to be used for the facilities provided by Berekely DB version 1x and the ActiveState distribution of their ActivePerl only links DB_FIle to version 1 of the DB engine. It's unfortunate that the version of this Perl module that is installed from CPAN can't be adjusted so that it follows this practice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://934674]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-11-27 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (184 votes), past polls