bsddb module woes
Skip Montanaro
skip at pobox.com
Wed Aug 29 09:54:21 EDT 2001
>> I found some hints from people having similar problems. They suggest
>> using db_dump185 and db_load to convert the db files. My problem is:
>>
>> % db_dump185 nodes.user
>> db_dump185: nodes.user: Invalid argument
>>
>> We're now going to try to dump the dbs using a system with redhat 6.2
>> installed...
Richard> And this has solved our problems. But there's got to be a
Richard> better way than this... blech
Richard,
Sleepycat's dump/load program names leave a bit to be desired. Sounds like
you were migrating from libdb2 to libdb3. I think you want db2_dump
followed by db_load. db_dump185 is for dumping a libdb1 database. Assuming
you are running bash with command line completion enabled, try typing "db2_"
or "db_", then hitting the TAB key. You should see a number of interesting
db_* and db2_* programs:
% db_
db_archive db_dump db_printlog db_upgrade
db_checkpoint db_dump185 db_recover db_verify
db_deadlock db_load db_stat
% db2_
db2_archive db2_deadlock db2_load db2_recover
db2_checkpoint db2_dump db2_printlog db2_stat
--
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/
More information about the Python-list
mailing list