View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016351 | mantisbt | db oracle | public | 2013-09-02 18:16 | 2015-03-16 19:18 |
Reporter | CarstenGrohmann | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Target Version | 1.3.0-beta.1 | Fixed in Version | 1.3.0-beta.1 | ||
Summary | 0016351: DB creation failed with ORA-01031 | ||||
Description | I've tested the current version of Oracle branch (2013-08-30 - 07264bd8398c36f2866a736076ce54faadc1e309) today. Our DBA created the schema and provided a admin user and an application user. The database creation failed because with ORA-01031. The root cause is the statement "CREATE USER <database name> IDENTIFIED by xxx". Please add an check to create the schema/database only, if it doesn't exists. BTW: The option "Print SQL Queries instead of Writing to the Database" print all necessary database objects, but the output doesn't contains the "CREATE USER" statement. Thereby we need some time to identify the missing database permissions. | ||||
Tags | No tags attached. | ||||
Hello Carsten, I did not have time to actually test if it actually works as designed, but the installer does check for DB existence, prior to attempting its creation [1]. Could you provide more information as to exactly how you entered the setup param (hostname, db name), how your user accounts are setup, and more detailed info on the ORA-01031 you got, specifically on which line it occured. Then I can try to reproduce the problem. [1] https://github.com/dregad/mantisbt/blob/oracle/admin/install.php#L556-L620 |
|
Hello Damien, We use: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production Steps to reproduce: create user MANTIS_ADMIN identified by xxx grant connect, resource to MANTIS_ADMIN; alter user MANTIS_ADMIN quota unlimited on MANTIS_DATA; create user MANTIS_APP identified by xxx; 2) add the TNS description to your tnsnames.ora 3) start the web service and open http://mymantis/admin/install.php 4) Fill the form: 5) Press "Install/Upgrade database" Attempting to connect to database as user: POSSIBLE PROBLEM - Database user doesn't have access to the database ( ORA-12545: Connect failed because target host or object does not exist ) Regards, |
|
Hello Damien, I've discussed this topic with our DBA shortly. In our setup the admin user don't have the permissions to create users nor grant permissions. Thereby the automatic setup is failing in such case. Normally you'll get ORA-01920 if the user wants to create an existing user twice. Now I got ORA-01031 due lack of permissions. From my perspective are there three different approaches to "solve" this bug: Regards, |
|