2016-07-29 7 views
0

내가 오라클과 fuelphp, 간단한 질문에 새로운 오전, 오라클 DB와 연결 fuelphp 프레임 워크를 설정하는 방법 문서에만 MySQL과 PostgreSQL을 위해 :fuelphp wih oracle에 연결하는 방법은 무엇입니까?

// a MySQL driver configuration 
'development' => array(
'type'   => 'mysqli', 
'connection'  => array(
    'hostname'  => 'localhost', 
    'port'   => '3306', 
    'database'  => 'fuel_db', 
    'username'  => 'your_username', 
    'password'  => '[email protected]', 
    'persistent'  => false, 
    'compress'  => false, 
), 
'identifier'  => '`', 
'table_prefix' => '', 
'charset'  => 'utf8', 
'enable_cache' => true, 
'profiling'  => false, 
'readonly'  => false, 
), 

// a PDO driver configuration, using PostgreSQL 
'production' => array(
'type'   => 'pdo', 
'connection'  => array(
    'dsn'   => 'pgsql:host=localhost;dbname=fuel_db', 
    'username'  => 'your_username', 
    'password'  => '[email protected]', 
    'persistent'  => false, 
    'compress'  => false, 
), 
'identifier'  => '"', 
'table_prefix' => '', 
'charset'  => 'utf8', 
'enable_cache' => true, 
'profiling'  => false, 
'readonly'  => array('slave1', 'slave2', 'slave3'), 
) 

어떻게 오라클과 연결? 당신

답변

0

는 PostgreSQL의 PDO의 예에서 근무 감사 당신은 내가 이것을 시도 것이다 게시 :

'production'  => array(
'type'   => 'pdo', 
'connection'  => array(
    'dsn'   => 'oci:dbname=//hostname:port/database', 
    'username'  => 'your_username', 
    'password'  => '[email protected]', 
    'persistent'  => false, 
    'compress'  => false, 
), 
'identifier'  => '"', 
'table_prefix' => '', 
'charset'  => 'utf8', 
'enable_cache' => true, 
'profiling'  => false, 
'readonly'  => false 
) 

그냥 당신이 correctly installed & configured는 PHP OCI 드라이버를했습니다 있는지 확인하십시오.