![]() | oci_pconnectDescriptionresource oci_pconnect ( string username, string password [, string db [, string charset]] )oci_pconnect() creates a new persistent connection to an Oracle server and logs on. The optional third parameter can either contain the name of the local Oracle instance or the name of the entry in tnsnames.ora. If the third parameter is not specified, PHP uses environment variables ORACLE_SID and TWO_TASK to determine the name of local Oracle instance and location of tnsnames.ora accordingly. 使用 Oracle 服务器 9.2 或更高版本,可以指定 charset 参数,其将被用于新的连接。如果使用 Oracle 服务器低于 9.2 的版本,本参数将被忽略并以 NLS_LANG 环境变量替代之。 oci_pconnect() returns connection identifier or FALSE on error.
See also oci_connect() and oci_new_connect(). | ![]() |