PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

oci_register_taf_callback - Register a user-defined callback function for Oracle Database TAF | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

oci_register_taf_callback

(PHP >= 7.0.21, PHP >= 7.1.7, PHP 7.2, PECL OCI8 >= 2.1.7)

oci_register_taf_callbackRegister a user-defined callback function for Oracle Database TAF

説明

bool oci_register_taf_callback ( resource $connection , mixed $callbackFn )

Registers a user-defined callback function to connection. If connection fails due to instance or network failure, the registered callback function will be invoked for several times during failover. See OCI8 Transparent Application Failover (TAF) Support for information.

When oci_register_taf_callback() is called multiple times, each registration overwrites the previous one.

Use oci_unregister_taf_callback() to explicitly unregister a user-defined callback.

TAF callback registration will NOT be saved across persistent connections, therefore the callback needs to be re-registered for a new persistent connection.

パラメータ

connection

An Oracle connection identifier.

callbackFn

A user-defined callback to register for Oracle TAF. It can be a string of the function name or a Closure (anonymous function).

The interface of a TAF user-defined callback function is as follows:

int userCallbackFn ( resource $connection , int $event , int $type )

See the parameter description and an example on OCI8 Transparent Application Failover (TAF) Support page.

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

参考


忘却曲線を使ってこの関数を確実に記憶に残す

フォーラムで「oci_register_taf_callback - Register a user-defined callback function for Oracle Database TAF」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | oci_register_taf_callback - Register a user-defined callback function for Oracle Database TAF」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: