PHP » GoLang |
login |
register |
about
|
oci_close(PHP 5, PHP 7, PECL OCI8 >= 1.1.0) oci_close — Closes an Oracle connection Description
bool oci_close
( resource
$connection
)
Unsets It is recommended to close connections that are no longer needed because this makes database resources available for other users. Parameters
Return Values
Returns ExamplesExample #1 Closing a connection Resources associated with a connection should be closed to ensure the underlying database connection is properly terminated and the database resources are released.
<?php Example #2 Database connections are not closed until all references are closed The internal refcount of a connection identifier must be zero before the underlying connection to the database is closed.
<?php Example #3 Closing a connection opened more than once When database credentials are reused, both connections must be closed before the underlying database connection is closed.
<?php Example #4 Connections are closed when variables go out of scope When all variables referencing a connection go out of scope and are freed by PHP, a rollback occurs (if necessary) and the underlying connection to the database is closed.
<?php Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|