View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008686 | mantisbt | db oracle | public | 2007-12-20 13:45 | 2014-12-08 00:34 |
Reporter | novoferm | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | PC | OS | Windows | OS Version | XP PRO SP2 |
Product Version | 1.1.0rc3 | ||||
Target Version | 1.3.0-beta.1 | Fixed in Version | 1.3.0-beta.1 | ||
Summary | 0008686: Pb on : "Attempting to connect to database as admin" | ||||
Description | Hello, When I try to connect with a php test page to my database there's no problem BAD Could you help me please to resolve my issue. | ||||
Tags | patch | ||||
Attached Files | install.php.connectSID.patch (502 bytes)
292c292,298 < $t_result = @$g_db->Connect($f_hostname, $f_admin_username, $f_admin_password); --- > if ( $f_db_type == 'oci8') { > $g_db->connectSID = true; > $t_result = @$g_db->Connect($f_hostname, $f_admin_username, $f_admin_password, $f_database_name); > } > else { > $t_result = @$g_db->Connect($f_hostname, $f_admin_username, $f_admin_password); > } oracle.patch (580 bytes)
diff -Naur mantisbt-1.2.3/admin/install.php mantisbt-patch/admin/install.php --- mantisbt-1.2.3/admin/install.php 2010-10-22 16:24:23.000000000 +0200 +++ mantisbt-patch/admin/install.php 2010-10-22 16:25:47.000000000 +0200 @@ -292,6 +292,11 @@ $g_db = ADONewConnection( $f_db_type ); $t_result = @$g_db->Connect( $f_hostname, $f_admin_username, $f_admin_password ); + # Second chance + if( !$t_result ) { + $t_result = @$g_db->Connect( $f_hostname, $f_admin_username, $f_admin_password, $f_database_name ); + } + if( $t_result ) { # check if db exists for the admin | ||||
I believe that Oracle (like PostgreSQL) needs to have the database created manually, and users assigned before we can initialize it. Can you retry after setting up the user and database? I'd appreciate feedback as Oracle support in the installer is still experimental. |
|
Hello, |
|
Hello, APPLICATION ERROR #101 Could you help me please... |
|
I've run into the same error using Oracle 10g in Mantis 1.1.1 Resolved it by doing the following: config_inc.php: database_api.php: case 'oci8': ~LINE 695 (end of file after db_time_queries function) I think that's it... I've run other issues as well...
Should those be put into their own issues? I'm new here (1st post), and am not quite sure of the protocol... |
|
Using Mantis 1.1.6 and Oracle 10g you can leave database_name empty and put the whole connection string into hostname. Like this: <?php |
|
I try it as soon as possible. |
|
I added a patch (oracle.patch) which is almost the same as the previous one (I didn't see there already was one), although it does not have a specific behavior for oci8. This patch should be installed using command line: |
|