If you are using cursors, make sure to free the statement *and* the cursor, especially if there is a possibility of running the proc/cursor again (e.g. with different parameters).
<?php
oci_execute($stmt);
oci_execute($crsr);
// iterate through cursor...
oci_free_statement($stmt);
oci_free_statement($crsr);
?>
You need to do it explicitly, closing connection for example does not seem to release the cursor.
oci_free_statement
(PHP 5, PECL oci8:1.1-1.2.4)
oci_free_statement — Освобождает ресурсы, занимаемые курсором или SQL-выражением
Описание
bool oci_free_statement
( resource $stmt
)
oci_free_statementr() освобождает все ресурсы, занимаемые курсором или SQL-выражением, которое было получено с помощью функции oci_parse().
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
oci_free_statement
rada at instinctive dot it
04-Mar-2008 08:46
04-Mar-2008 08:46
