I have following code on my page....
$ora_tns =
"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP )(HOST=pirana)(PORT=1521))
)(CONNECT_DATA=(SID=pirana)(SERVER=DEDICATED)))";
$ora_username = "username";
$ora_password = "pwd";
$db = OCILogon($ora_username, $ora_password, $ora_tns);
$arr = OCINewCollection($db, 'LOCAL_ID_ARRAY');
$err = ocierror($db);
When I execute it on a simple page containing only this everything works
fine.....
However, when I put it on a larger page containing other stuff using other
oracle connections I get following error when trying to create collection:
"OCI-21522: attempted to use an invalid connection in OCI (object mode
only)"
What is the source of this error and how can I correct it....
LOCAL_ID_ARRAY is defined in Oracle as:
CREATE OR REPLACE TYPE local_id_array AS VARRAY(100) OF NUMBER(11);
Thank you in advance, Tomy.