針對現有 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主控台連線,並: