Getting error messages SQLServerException: Invalid object name in Jira

プラットフォームについて: 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 は除く

要約

問題

The following exception is logged while working with Jira in the atlassian-jira.log file.

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name "productlicense". at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:256)

環境

  • Microsoft SQL Server is used as database

診断

Check what is a default schema assigned to the database user used by Jira. Execute this SQL command on behalf of that user:

SELECT schema_name();

原因

Database user used by Jira has a default schema as "dbo" or some other schema, and not Jira database schema. When this happens, and the server receives SQL commands that are not fully qualified tables names, the database server does not know in which schema to look up the tables, and will error out with "Invalid object name" message.

ソリューション

ソリューション

Remap a correct default schema to the database user used by Jira (the schema name can be obtained via dbconfig.xml):

ALTER USER <jira_user> WITH DEFAULT_SCHEMA = jiraschema;

更新日時: September 26, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。