Welcome Guest, Not a member yet? Register   Sign In
ORA-28009
#3

I have found

I just had to add the variable "session_mode".

Like this :

PHP Code:
public function db_connect($persistent TRUE)
{
           
$func 
= ($persistent === TRUE) ? 'oci_pconnect' 'oci_connect';
return empty(
$this->char_set)
$func($this->username$this->password$this->dsn)
$func($this->username$this->password$this->dsn$this->char_set,$this->session_mode);





And in "database.php" :

PHP Code:
$db['default'] = array(
'dsn' => '',
'hostname' => $tnsname,
'username' => 'xxx',
'password' => 'xxx',
'database' => '',
'dbdriver' => 'oci8',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'AL32UTF8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE,
       'session_mode' => 2
); 


(SESSION MODE : 2 --> SYSDBA, 4 --> SYSOPER)
Reply


Messages In This Thread
ORA-28009 - by arber.smajli - 07-06-2018, 04:58 AM
RE: ORA-28009 - by jreklund - 07-06-2018, 09:06 AM
RE: ORA-28009 - by arber.smajli - 07-08-2018, 11:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB