Bugzilla 3.2開始支持Oracle資料庫,有些用戶可能需要把現有的Bugzilla系統從Mysql遷移到Oracle. 這個很容易做到,我們
要用到的工具是Bugzilla提供的contrib/bzdbcopy.pl, 下面介紹遷移的過程:
1. 新安裝一個使用Oracle資料庫的Bugzilla系統,Bugzilla版本和使用Mysql的一樣,如都使用Bugzilla 3.2.
2. 在Bugzilla-Oracle的安裝目錄下面:
vim contrib/bzdbcopy.pl
根據相關localconfig做類似修改為:
# Settings for the 'Source' DB that you are copying from.
use constant SOURCE_DB_TYPE => 'Mysql';
use constant SOURCE_DB_NAME => 'bugs32mysql';
use constant SOURCE_DB_USER => 'bugs32mysql';
use constant SOURCE_DB_PASSWORD => 'bugs';
use constant SOURCE_DB_HOST => 'localhost';
# Settings for the 'Target' DB that you are copying to.
use constant TARGET_DB_TYPE => 'Oracle';
use constant TARGET_DB_NAME => 'XE';
use constant TARGET_DB_USER => 'bugs32oracle';
use constant TARGET_DB_PASSWORD => 'bugs';
use constant TARGET_DB_HOST => '10.182.120.198';
3. 運行contrib/bzdbcopy.pl 進行遷移
4. 運行./checksetup.pl
5. 遷移完成:-)
[火星人 ] 由Mysql遷移到Oracle的方法已經有363次圍觀