Details
-
Bug
-
Resolution: Timed out
-
Low
-
None
-
4.4.3
-
4.04
-
Severity 3 - Minor
-
-
Description
NOTE: This problem will not occur if you follow JIRA's recommended Oracle configuration to leave the "schema-name" blank. In this case JIRA will use the DB user's own schema.
- Connect to Oracle as "jira". All the DB tables should be created.
- Stop JIRA.
- Edit "dbconfig.xml" and set "schema-name" to "JIRA" (the uppercase is important and correct).
- (BUG) Start JIRA. You will get:
2011-11-08 21:24:18,957 main WARN [core.entity.jdbc.DatabaseUtil] Entity "Action" has no table in the database 2011-11-08 21:24:18,987 main ERROR [core.entity.jdbc.DatabaseUtil] Could not create table "JIRA.jiraaction" 2011-11-08 21:24:18,987 main ERROR [core.entity.jdbc.DatabaseUtil] SQL Exception while executing the following: CREATE TABLE JIRA.jiraaction (ID NUMBER(18,0) NOT NULL, issueid NUMBER(18,0), AUTHOR VARCHAR2(255), actiontype VARCHAR2(255), actionlevel VARCHAR2(255), rolelevel NUMBER(18,0), actionbody CLOB, CREATED DATE, UPDATEAUTHOR VARCHAR2(255), UPDATED DATE, actionnum NUMBER(18,0), CONSTRAINT PK_jiraaction PRIMARY KEY (ID)) Error was: java.sql.SQLSyntaxErrorException: ORA-00955: name is already used by an existing object
Note that this is only for tables that start with the schema-name "JIRA".
You can also get a similar error if you try an connect to the "JIRA" schema as a different user. For example, lets say that "safeuser" has permission to all the tables in the "JIRA" schema. Now lets say that JIRA is configured to connect to Oracle as "safeuser" but has the schema-name set to "JIRA". JIRA will attempt to create any tables that start with "JIRA" as "safeuser" in the "JIRA" schema which the user probably wont have permission to do. In this case you end up with:
2011-11-08 21:32:38,658 main WARN [core.entity.jdbc.DatabaseUtil] Entity "ChangeGroup" has no table in the database 2011-11-08 21:32:38,662 main ERROR [core.entity.jdbc.DatabaseUtil] Could not create table "JIRA.changegroup" 2011-11-08 21:32:38,663 main ERROR [core.entity.jdbc.DatabaseUtil] SQL Exception while executing the following: CREATE TABLE JIRA.changegroup (ID NUMBER(18,0) NOT NULL, issueid NUMBER(18,0), AUTHOR VARCHAR2(255), CREATED DATE, CONSTRAINT PK_changegroup PRIMARY KEY (ID)) Error was: java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges