php测试oracle链接是否成功

$conn = oci_connect('eoffice', 'hdujiedian', '//192.168.100.21/hziee');
if (!$conn) {
$e = oci_error();
print htmlentities($e['message']);
exit;
}else {
echo "连接oracle成功!";
}

posted @ 2013-11-21 15:57  Michael Zhang x  Views(385)  Comments(0Edit  收藏  举报