Database Collation health check fails in Jira Server when using SQL Server
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
目的
This check retrieves the collation of the database and determines if it is within the list of collations supported by Atlassian. This article focuses on Microsoft SQL Server. For more about details please check Database Collation Health Check fails in Jira Server.
結果の確認
The database collation '<collation>' and table collation '<collation>' are supported by JIRA.
データベースがサポート対象の照合で構成されています。
データベース照合 '<照合>' とテーブル照合 '<照合>' は Jira によってサポートされていません。
The JIRA instance is using an unsupported configuration. See the Solution for steps on how to resolve this issue.
The database collation '<collation>' is unsupported by JIRA. The table collation '<collation>' is supported by JIRA.
The JIRA instance is using an unsupported configuration. See the Solution section for steps on how to resolve this issue.
The table collation '<collation>' is unsupported by JIRA. The database collation '<collation>' is supported by JIRA.
The JIRA instance is using an unsupported configuration. See the Solution section for steps on how to resolve this issue.
ソリューション
これを修正するには、データベース照合を修正する必要があります。最適かつ推奨される方法は、次のとおりです。
- 「Jira をデータベースに接続する」内の手順に従い、必要な照合で新しいデータベースを作成します。
- 「データベースの切り替え」に従い、古い (誤った照合を持つ) データベースから新しい適切な照合を持つデータベースに移行します。
- If the recommended method for some reason is not suitable for your scenario, please follow this link Fixing collation manually to manually fix the collation at the database server side manually.
Supported Collations in Microsoft SQL Server
- SQL_Latin1_General_CP437_CI_AI
- Latin1_General_CI_AI
How to Verify Table Collations
SELECT DISTINCT C.collation_name
FROM sys.tables AS T
INNER JOIN sys.columns C
ON T.object_id = C.object_id
WHERE collation_name IS NOT NULL;
How to Verify Database Collations
SELECT CONVERT (varchar(256), DATABASEPROPERTYEX('database_name','collation')); replace the'database_name' with your Jira Database name
OR
SELECT name, collation_name
FROM sys.databases
WHERE collation_name NOT IN ('SQL_Latin1_General_CP437_CI_AI','Latin1_General_CI_AI');