$orauser="username";
$orapass="password";
$oradb="(description=(address_list=(address=(protocol=tcp)(host=数据库ip)(port=1521)))(connect_data=(sid=数据库sid)))";
$conn = ocilogon($orauser,$orapass,$oradb) or die( "oracle server未启动,请与系统管理员联系.");
$orauser="username";
$orapass="password";
$oradb="(description=(address_list=(address=(protocol=tcp)(host=数据库ip)(port=1521)))(connect_data=(sid=数据库sid)))";
$conn = ocilogon($orauser,$orapass,$oradb) or die( "oracle server未启动,请与系统管理员联系.");