yii2使用oci8连接oracle数据库

        $config = array (
                'username' => 'user',
                'password' => 'pwd',
                'dbname' => '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.1.88)
                                             (PORT=1526))(CONNECT_DATA=(SERVICE_NAME=myoci)))',
                'charset' => 'AL32UTF8',
        );
        $conn = @oci_connect(
                $config['username'],
                $config['password'],
                $config['dbname'],
                $config['charset']);

你可能感兴趣的:(yii2使用oci8连接oracle数据库)