|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-13 08:58 UTC] thies@php.net
[2002-05-27 14:47 UTC] bomek at egeolog dot com
[2002-05-27 17:13 UTC] mfischer@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 20:00:01 2025 UTC |
After execution of the script bellow and any other script the php4 return: Warning: OCIStmtExecute: ORA-03106: fatal two-task communication protocol error in /var/www/admin/sqlexecute.phtml on line 45 // line 45 is: ociexecute($stmt,OCI_DEFAULT); putenv("ORACLE_SID=ORCL"); putenv("ORACLE_HOME=/home/oracle/u01/oracle/product/9.0.1"); putenv("LD_LIBRARY_PATH=/home/oracle/u01/oracle/product/9.0.1/lib"); $conn=OCIlogon ($usrname, $pass, ""); $Oerror=OCIError($conn); $column_name[64]; if ($Oerror==false){ $stmt = ociparse($conn,$sqlstring); ociexecute($stmt,OCI_DEFAULT); $Oerror=OCIError($conn); if ($Oerror==false){ $ncols = OCINumCols($stmt); if ((int)$ncols==0){ OCIError($stmt); OCIFreeStatement($stmt); OCICommit($conn); OCIlogoff($conn); echo("Done."); return; } echo("<table border='0'><tr>"); for ( $i = 1; $i <= $ncols; $i++ ) { $column_name[$i] = OCIColumnName($stmt,$i); echo("<td>$column_name[$i]</td>");} echo("</tr>"); while (ocifetch($stmt)){ for ( $i = 1; $i <= $ncols; $i++ ) { echo("<td>".ociresult($stmt,$column_name[$i])."</td>");} echo("</tr>"); } echo("</table>"); } OCIError($stmt); OCIFreeStatement($stmt); OCICommit($conn); OCIlogoff($conn); }