Installation Fails Because Schema Name Does Not Exist

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

When configuring JIRA with an external database, it fails with this error:

CREATE TABLE jiraschema.workflowschemeentity (ID NUMERIC NOT NULL, SCHEME NUMERIC, WORKFLOW NVARCHAR(255), issuetype NVARCHAR(255),
CONSTRAINT PK_workflowschemeentity PRIMARY KEY (ID))
Error was: java.sql.SQLException: The specified schema name "jiraschema" either does not exist or you do not have permission to use it.

Cause

An invalid database schema name has been specified.

Resolution

JIRA 4.3 or below

Check whether schema name specified in <jira-install>/atlassian-jira/WEB-INF/classes/entityengine.xmlis valid. If the schema name exists in the database, ensure that database user has permission to use the schema.

JIRA 4.4+

Check the schema specified in <jira-home>/dbconfig.xml. If the schema name exists in the database, ensure that database user has permission to use the schema.

(info) Check for leading blanks spaces in your schema name as that is known to cause issue. You can quickly identify schemas with a leading white space since they will show at the top of the alphabetized list of schema names.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.