Incorrect MS SQL Schema Used
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
症状
Certain Jira functions may fail with SQL Exceptions.
Jira may fail to run altogether.
atlassian-jira.log に次のエラーが返される。
___ Database Configuration ________________
Loading entityengine.xml from : file:/C:/Data/Jira/atlassian-jira/WEB-INF/classes/entityengine.xml
Entity model field type name : mssql
Entity model schema name :
Database Version : Microsoft SQL Server - 10.50.2500
Database Driver : jTDS Type 4 JDBC Driver for MS SQL Server and Sybase - 1.2.4
Database URL : jdbc:jtds:sqlserver://sqlserver:1433/jiradb
Database JDBC config : mssql jdbc:jtds:sqlserver://sqlserver:1433/jiradb原因
This is either caused by an incorrect configuration when Jira is installed or this bug as tracked under JRASERVER-25329 - JIRA 4.4 MSSQL schema in dbconfig.xml does not get picked up by ./config.sh. In this case all tables will be stored on the root schema (dbo), and occasionally other applications will store tables under this schema. Having a schema specifically for Jira can prevent something like this from occurring and we recommend fixing this immediately. Additionally, this can cause some failures with Active Objects, (e.g.: plugins such as GreenHopper, Tempo, Activity Streams).
WARNING: If the schema is missing altogether, it is absolutely critical that it is specified otherwise it will cause significant problems with the Jira instance.
ソリューション
Stop Jira and point it to use the
dboschema.Start Jira and back it up using the XML export functionality as in Backing Up Data.
Create the required schema, as in Connecting Jira applications to a database, ensuring it has the correct permissions
Jira を停止します。
Using the Jira application Configuration Tool update Jira to refer to the new schema (this should be
jiraschema).Jira を起動します。
Restore the XML backup from step 2.
NOTE: This can also be done with the steps within Change the schema name for Jira database tables.
この内容はお役に立ちましたか?