Im connecting to an ORACLE 11 DB with PHP. Here is the code to do the connection:
$con = oci_connect($user, $pass, $server."/".$database, $charset);
Once i´ve connected, im able to execute queries like this:
$sql = "SELECT * FROM SCHEMANAME.table";
$stid = oci_parse($con, $sql);
oci_execute($stid);
Everything works OK, but if i don´t put the SCHEMANAME before the tables name i got an error, indicating that "ORA-00942: table or view does not exists..."
Is there any way to set a default schema and avoid to use the schemaname in every query?.
Thanks in advance.