thinkphp连接oracle
配置文件中:
//Oracle 测试环境
'DB_TYPE' => 'Oracle', // 数据库类型
'DB_HOST' => '172.0.0.0', // 服务器地址
'DB_NAME' => '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.0.0.0)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = vasd)
)
)', // 数据库名
'DB_USER' => 'test', // 用户名
'DB_PWD' => 'test', // 密码
'DB_PORT' => '1521', // 端口
'DB_PREFIX'=> '', // 数据库表前缀
'DB_SEQUENCE_PREFIX' => 'SEQ_', //序列前缀