升级到SVN 1.20时发生的BDB版本问题的处理

王朝other·作者佚名  2006-01-09
宽屏版  字体: |||超大  

因为上次升级的Tortoise SVN 1.1.7版本感觉有时不太对劲,不如1.1.4稳定,所以回去前就升级到了1.20。结果发现原来用

BDB(Berkeley

DB)建的Repositry不能访问了,报一个什么BDB版本4.3不能操作数据库的错误。但用文件方式建的Repositry可以访问,巨汗。鉴于时间匆忙,只好先新建一个文件型的Repositry将就用。

回来以后搜索了一下关于SVN的BDB Repositry版本问题,总算找到答案在这里

Use this procedure to upgrade your repository in-place to BDB 4.3:

Make sure no process is accessing the repository (stop

Apache, svnserve, restrict access via file://, svnlook, svnadmin,

etc.)Using an older svnadmin binary (that is, linked to

an older BerkeleyDB):

Recover the

repository: 'svnadmin recover /path/to/repository'Make a backup of the repository.Delete all unused log files. You can see them by running

'svnadmin list-unused-dblogs /path/to/repeository'Delete the shared-memory files. These are files in the

repository's db/ directory, of the form __db.00*

The repository is now usable by Berkeley DB 4.3.

下载了一个SVN 1.1.4(注意:不是Tortoise SVN),然后按文中的步骤完成以后,果然可以了。

特别警告:升级前一定要记得备份Repositry。

特别建议:平时最好养成定期备份Repositry的习惯。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有