OK, it is just some database files, not the server, and if I gbak
backup/restore them then the collation works afterwards on the new copy.
Can I install the collation somehow without backup/restore?
SQL> create collation UNICODE_CI for UTF8;
Statement failed, SQLSTATE = 42000
unsuccessful metadata update
-Collation UNICODE_CI not installed for character set UTF8
From RDB$COLLATION it appears the collation is known, just 'not installed':
SQL> select * from rdb$collations where rdb$collation_name='UNICODE_CI';
RDB$COLLATION_NAME RDB$COLLATION_ID RDB$CHARACTER_SET_ID
RDB$COLLATION_ATTRIBUTES RDB$SYSTEM_FLAG RDB$DESCRIPTION
RDB$FUNCTION_NAME RDB$BASE_COLLATION_NAME RDB$SPECIFIC_ATTRIBUTES
===============================================================================
================ ==================== ========================
=============== =================
===============================================================================
===============================================================================
=======================
UNICODE_CI 3 4 3 1
<null> <null> UNICODE 1d:12c
==============================================================================
RDB$SPECIFIC_ATTRIBUTES:
COLL-VERSION=153.88
==============================================================================
Although after restore this has changed to a different coll-version:
SQL> select * from rdb$collations where rdb$collation_name='UNICODE_CI';
RDB$COLLATION_NAME RDB$COLLATION_ID RDB$CHARACTER_SET_ID
RDB$COLLATION_ATTRIBUTES RDB$SYSTEM_FLAG RDB$DESCRIPTION
RDB$FUNCTION_NAME RDB$BASE_COLLATION_NAME RDB$SPECIFIC_ATTRIBUTES
===============================================================================
================ ==================== ========================
=============== =================
===============================================================================
===============================================================================
=======================
UNICODE_CI 3 4 3 1
<null> <null> UNICODE 1d:1fa
==============================================================================
RDB$SPECIFIC_ATTRIBUTES:
COLL-VERSION=153.14
==============================================================================
Though as an experiment I copied both the FDB files over to Mac and
Windows with Firebird 2.5.9 and all complained about the collation not
being installed.
Hamish