升級到SVN 1.20時發生的BDB版本問題的處理

來源:互聯網
上載者:User

因為上次升級的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):

    1. Recover the
      repository: 'svnadmin recover /path/to/repository'
    2. Make a backup of the repository.
    3. Delete all unused log files. You can see them by running
      'svnadmin list-unused-dblogs /path/to/repeository'
    4. 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的習慣。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.