$conn = ocilogon("아이디","패스워드","호스트네임");
echo "Server Version=".OCIServerVersion($conn);  //접속확인
$query = "select * from 테이블";
$stmt = oci_parse($conn,$query);
ociexecute($stmt);

while($row = oci_fetch_array($stmt,OCI_BOTH))
{
echo $row[];
}