對於Linux/PostgreSQL中現有的prod實例,切換到unicode的步驟如下:
停止向資料庫寫入的進程:
su - neolane
nlserver shutdown
轉儲資料庫:
su - postgres
pg_dump mydatabase > mydatabase.sql
建立Unicode資料庫:
createdb -E UNICODE mydatabase_unicode
還原資料庫:
psql mydatabase_unicode < mydatabase.sql
更新指示資料庫為Unicode的選項:
psql mydatabase_unicode
update XtkOption set sStringValue = 'u'||sStringValue where sName='XtkDatabaseId' and sStringValue not like 'u%';
在追蹤伺服器上:
su - neolane
cd nl6/conf
vi config-prod.xml
將u字元加在與資料庫標識符(databaseId)相關的值前面:
<web>
<redirection databaseId="u7F0000010554364C" trackingPassword="myPassword="/>
</web>
在調用資料庫的伺服器上:
su - neolane
cd nl6/conf
vi config-prod.xml
修改資料庫參考:
<dataSource name="default">
<dbcnx encrypted="1"
login="<dbuser>:<base_unicode>" password="xxxx="
provider="postgresql" server="yyyy"/>
</dataSource>
重新啟動所有電腦:
/etc/init.d/apache stop
/etc/init.d/nlserver6 stop
/etc/init.d/nlserver6 start
/etc/init.d/apache start
確認交換機。 若要這麼做,請透過Adobe Campaign主控台連線,並: