-
how to upgrade from 4.2 to 4.3 ?
Hello to all,
I have some applications on my server that use BDB.
So, I have some files created with 4.2.25 BDB version.
I want to ugprade to 4.3 version,
but I need the convert/update .db files.
I have installed BDB 4.3 on another computer to have a try.
But running "db_upgrade foobar.db" cause the same error:
-----------
db_upgrade: Program version 4.3 doesn't match environment version
db_upgrade: DB_ENV->open: DB_VERSION_MISMATCH: Database environment
version mismatch
-----------
So, is there any way to upgrade without using db_dump/db_load ?
Thanks,
Serge.
-
Re: how to upgrade from 4.2 to 4.3 ?
> So, is there any way to upgrade without using db_dump/db_load ?
Yes, terminate all processes accessing the environment. Run the
db_checkpoint and db_recover tools from Berkeley DB version 4.2.
After that, the database environment has been removed. The
application should recreate it once it is started. If not, use
"db_recover -e" from Berkeley DB 4.3 to create it explicitly.
Upgrade procedures are also described in detail in the manual. If you
do this for the first time, it is a very good idea to make a full
backup of the environment before you begin.