Per un'istanza prod esistente in Linux/PostgreSQL, i passaggi per passare a unicode sono i seguenti:
Arrestate i processi di scrittura nel database:
su - neolane
nlserver shutdown
Eseguire il dump del database:
su - postgres
pg_dump mydatabase > mydatabase.sql
Creare un database Unicode:
createdb -E UNICODE mydatabase_unicode
Ripristinare il database:
psql mydatabase_unicode < mydatabase.sql
Aggiornate l'opzione per indicare che il database è Unicode:
psql mydatabase_unicode
update XtkOption set sStringValue = 'u'||sStringValue where sName='XtkDatabaseId' and sStringValue not like 'u%';
Sui server di monitoraggio:
su - neolane
cd nl6/conf
vi config-prod.xml
Aggiungete il carattere u davanti al valore relativo all'identificatore del database (databaseId):
<web>
<redirection databaseId="u7F0000010554364C" trackingPassword="myPassword="/>
</web>
Sui server che chiamano il database:
su - neolane
cd nl6/conf
vi config-prod.xml
Modificate il riferimento al database:
<dataSource name="default">
<dbcnx encrypted="1"
login="<dbuser>:<base_unicode>" password="xxxx="
provider="postgresql" server="yyyy"/>
</dataSource>
Riavviare tutte le macchine:
/etc/init.d/apache stop
/etc/init.d/nlserver6 stop
/etc/init.d/nlserver6 start
/etc/init.d/apache start
Confermare l'interruttore. A questo scopo, collegatevi tramite la console Adobe Campaign e: