|
@@ 68-72 (lines=5) @@
|
| 65 |
|
$e_host = \addslashes($this->dbHost); |
| 66 |
|
$e_dbname = \addslashes($this->dbName); |
| 67 |
|
//check if the database user has admin right |
| 68 |
|
if ($e_host == '') { |
| 69 |
|
$easy_connect_string = $e_dbname; // use dbname as easy connect name |
| 70 |
|
} else { |
| 71 |
|
$easy_connect_string = '//'.$e_host.'/'.$e_dbname; |
| 72 |
|
} |
| 73 |
|
$this->logger->debug('connect string: ' . $easy_connect_string, ['app' => 'setup.oci']); |
| 74 |
|
$connection = @\oci_connect($this->dbUser, $this->dbPassword, $easy_connect_string); |
| 75 |
|
if (!$connection) { |
|
@@ 153-157 (lines=5) @@
|
| 150 |
|
$e_host = \addslashes($this->dbHost); |
| 151 |
|
$e_dbname = \addslashes($this->dbName); |
| 152 |
|
|
| 153 |
|
if ($e_host == '') { |
| 154 |
|
$easy_connect_string = $e_dbname; // use dbname as easy connect name |
| 155 |
|
} else { |
| 156 |
|
$easy_connect_string = '//'.$e_host.'/'.$e_dbname; |
| 157 |
|
} |
| 158 |
|
$connection = @\oci_connect($this->dbUser, $this->dbPassword, $easy_connect_string); |
| 159 |
|
if (!$connection) { |
| 160 |
|
throw new \OC\DatabaseSetupException($this->trans->t('Oracle username and/or password not valid'), |