針對現有 prod 在Linux/PostgreSQL的執行個體中,切換至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主控台連線並: