# Oracle OCI8

# Einführung

Warnung

Diese Erweiterung ist seit PHP 8.4.0 UNBUNDLED (entbündelt).

Diese Funktionen ermöglichen den Zugriff auf Oracle-Datenbanken. Sie unterstützen SQL- und PL/SQL-Anweisungen. Zu den grundlegenden Funktionen gehören die Transaktionskontrolle, die Bindung von PHP-Variablen an Oracle-Platzhalter und die Unterstützung für Large Object Typen (LOB) und Sammlungen. Die Skalierbarkeitsfunktionen von Oracle wie Database Resident Connection Pooling (DRCP) und Ergebnis-Caching werden ebenfalls unterstützt.

- Installation/Konfiguration
  - Anforderungen
  - Installation
  - Testing
  - Laufzeit-Konfiguration
- Vordefinierte Konstanten
- Beispiele
- OCI8 Connection Handling and Connection Pooling
- OCI8 Fast Application Notification (FAN) Support
- OCI8 Transparent Application Failover (TAF) Support
- OCI8 and DTrace Dynamic Tracing
- Supported Datatypes
- OCI8 Funktionen
  - oci_bind_array_by_name — Bindet ein PHP-Array an einen Oracle-PL/SQL-Arrayparameter
  - oci_bind_by_name — Binds a PHP variable to an Oracle placeholder
  - oci_cancel — Bricht das Lesen eines Zeigers ab
  - oci_client_version — Returns the Oracle client library version
  - oci_close — Schließt eine Oracle-Verbindung
  - oci_commit — Commits the outstanding database transaction
  - oci_connect — Connect to an Oracle database
  - oci_define_by_name — Associates a PHP variable with a column for query fetches
  - oci_error — Liefert den letzten Fehler
  - oci_execute — Executes a statement
  - oci_fetch — Ruft die nächste Zeile einer Abfrage in einen internen Puffer ab
  - oci_fetch_all — Ruft mehrere Datensätze einer Abfrage in ein zweidimensionales Array ab
  - oci_fetch_array — Liefert die nächste Zeile einer Abfrage als assoziatives oder numerisches Array
  - oci_fetch_assoc — Liefert die nächste Zeile einer Abfrage als assoziatives Array
  - oci_fetch_object — Liefert die nächste Zeile einer Abfrage als Objekt
  - oci_fetch_row — Liefert die nächste Zeile einer Abfrage als numerisches Array
  - oci_field_is_null — Checks if a field in the currently fetched row is null
  - oci_field_name — Returns the name of a field from the statement
  - oci_field_precision — Tell the precision of a field
  - oci_field_scale — Tell the scale of the field
  - oci_field_size — Returns field's size
  - oci_field_type — Returns a field's data type name
  - oci_field_type_raw — Tell the raw Oracle data type of the field
  - oci_free_descriptor — Frees a descriptor
  - oci_free_statement — Gibt alle verknüpften Ressourcen eines Statements oder Zeigers frei.
  - oci_get_implicit_resultset — Returns the next child statement resource from a parent statement resource that has Oracle Database Implicit Result Sets
  - oci_lob_copy — Copies large object
  - oci_lob_is_equal — Compares two LOB/FILE locators for equality
  - oci_new_collection — Allocates new collection object
  - oci_new_connect — Connect to the Oracle server using a unique connection
  - oci_new_cursor — Allocates and returns a new cursor (statement handle)
  - oci_new_descriptor — Initializes a new empty LOB or FILE descriptor
  - oci_num_fields — Returns the number of result columns in a statement
  - oci_num_rows — Returns number of rows affected during statement execution
  - oci_parse — Prepares an Oracle statement for execution
  - oci_password_change — Changes password of Oracle's user
  - oci_pconnect — Connect to an Oracle database using a persistent connection
  - oci_register_taf_callback — Register a user-defined callback function for Oracle Database TAF
  - oci_result — Returns field's value from the fetched row
  - oci_rollback — Rolls back the outstanding database transaction
  - oci_server_version — Returns the Oracle Database version
  - oci_set_action — Sets the action name
  - oci_set_call_timeout — Sets a millisecond timeout for database calls
  - oci_set_client_identifier — Sets the client identifier
  - oci_set_client_info — Sets the client information
  - oci_set_db_operation — Sets the database operation
  - oci_set_edition — Sets the database edition
  - oci_set_module_name — Sets the module name
  - oci_set_prefetch — Sets number of rows to be prefetched by queries
  - oci_set_prefetch_lob — Sets the amount of data prefetched for each CLOB or BLOB.
  - oci_statement_type — Returns the type of a statement
  - oci_unregister_taf_callback — Unregister a user-defined callback function for Oracle Database TAF
- OCICollection — The OCICollection class
  - OCICollection::append — Hängt ein Element an eine Sammlung
  - OCICollection::assign — Weist einer Sammlung einen Wert aus einer anderen Sammlung zu
  - OCICollection::assignElem — Weist einem Element einer Sammlung einen Wert zu
  - OCICollection::free — Gibt die mit einem Sammelobjekt verknüpften Ressourcen frei
  - OCICollection::getElem — Liefert den Wert eines Elements
  - OCICollection::max — Liefert die maximale Anzahl der Elemente in einer Sammlung
  - OCICollection::size — Liefert die Größe der Sammlung
  - OCICollection::trim — Entfernt Elemente vom Ende einer Sammlung
- OCILob — The OCILob class
  - OCILob::append — Appends data from the large object to another large object
  - OCILob::close — Closes LOB descriptor
  - OCILob::eof — Tests for end-of-file on a large object's descriptor
  - OCILob::erase — Erases a specified portion of the internal LOB data
  - OCILob::export — Exports LOB's contents to a file
  - OCILob::flush — Flushes/writes buffer of the LOB to the server
  - OCILob::free — Frees resources associated with the LOB descriptor
  - OCILob::getBuffering — Returns current state of buffering for the large object
  - OCILob::import — Imports file data to the LOB
  - OCILob::load — Returns large object's contents
  - OCILob::read — Reads part of the large object
  - OCILob::rewind — Moves the internal pointer to the beginning of the large object
  - OCILob::save — Saves data to the large object
  - OCILob::saveFile — Alias von OCILob::import
  - OCILob::seek — Sets the internal pointer of the large object
  - OCILob::setBuffering — Changes current state of buffering for the large object
  - OCILob::size — Returns size of large object
  - OCILob::tell — Returns the current position of internal pointer of large object
  - OCILob::truncate — Truncates large object
  - OCILob::write — Writes data to the large object
  - OCILob::writeTemporary — Writes a temporary large object
  - OCILob::writeToFile — Alias von OCILob::export
- OCI8 - Veraltete Aliase und Funktionen
  - oci_internal_debug — Enables or disables internal debug output
  - ocibindbyname — Alias von oci_bind_by_name
  - ocicancel — Alias von oci_cancel
  - ocicloselob — Alias von OCILob::close
  - ocicollappend — Alias von OCICollection::append
  - ocicollassign — Alias von OCICollection::assign
  - ocicollassignelem — Alias von OCICollection::assignElem
  - ocicollgetelem — Alias von OCICollection::getElem
  - ocicollmax — Alias von OCICollection::max
  - ocicollsize — Alias von OCICollection::size
  - ocicolltrim — Alias von OCICollection::trim
  - ocicolumnisnull — Alias von oci_field_is_null
  - ocicolumnname — Alias von oci_field_name
  - ocicolumnprecision — Alias von oci_field_precision
  - ocicolumnscale — Alias von oci_field_scale
  - ocicolumnsize — Alias von oci_field_size
  - ocicolumntype — Alias von oci_field_type
  - ocicolumntyperaw — Alias von oci_field_type_raw
  - ocicommit — Alias von oci_commit
  - ocidefinebyname — Alias von oci_define_by_name
  - ocierror — Alias von oci_error
  - ociexecute — Alias von oci_execute
  - ocifetch — Alias von oci_fetch
  - ocifetchinto — Veraltete Variante von oci_fetch_array, oci_fetch_object, oci_fetch_assoc und oci_fetch_row
  - ocifetchstatement — Alias von oci_fetch_all
  - ocifreecollection — Alias von OCICollection::free
  - ocifreecursor — Alias von oci_free_statement
  - ocifreedesc — Alias von OCILob::free
  - ocifreestatement — Alias von oci_free_statement
  - ociinternaldebug — Alias von oci_internal_debug
  - ociloadlob — Alias von OCILob::load
  - ocilogoff — Alias von oci_close
  - ocilogon — Alias von oci_connect
  - ocinewcollection — Alias von oci_new_collection
  - ocinewcursor — Alias von oci_new_cursor
  - ocinewdescriptor — Alias von oci_new_descriptor
  - ocinlogon — Alias von oci_new_connect
  - ocinumcols — Alias von oci_num_fields
  - ociparse — Alias von oci_parse
  - ociplogon — Alias von oci_pconnect
  - ociresult — Alias von oci_result
  - ocirollback — Alias von oci_rollback
  - ocirowcount — Alias von oci_num_rows
  - ocisavelob — Alias von OCILob::save
  - ocisavelobfile — Alias von OCILob::import
  - ociserverversion — Alias von oci_server_version
  - ocisetprefetch — Alias von oci_set_prefetch
  - ocistatementtype — Alias von oci_statement_type
  - ociwritelobtofile — Alias von OCILob::export
  - ociwritetemporarylob — Alias von OCILob::writeTemporary

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open