成人精品一区二区三区中文字幕-成人精品一区二区三区-成人精品一级毛片-成人精品亚洲-日本在线视频一区二区-日本在线视频免费

導航首頁 ? 技術教程 ? PHP:oci_set_edition()的用法_Oracle函數
全站頭部文字 我要出現在這里
PHP:oci_set_edition()的用法_Oracle函數 713 2023-12-12   

oci_set_edition

(PHP 5.3.2, PECL OCI8 >= 1.4.0)

oci_set_edition — Sets the database edition

說明

bool oci_set_edition ( string $edition )

Sets the database "edition" of objects to be used by a subsequent connections.

Oracle Editions allow concurrent versions of applications to run using the same schema and object names. This is useful for upgrading live systems.

Call oci_set_edition() before calling oci_connect(), oci_pconnect() or oci_new_connect().

If an edition is set that is not valid in the database, connection will fail even if oci_set_edition() returns success.

When using persistent connections, if a connection with the requested edition setting already exists, it is reused. Otherwise, a different persistent connection is created

參數

edition

Oracle Database edition name previously created with the SQL "CREATE EDITION" command.

注釋

Note: Oracle version requirement

This function is available from Oracle 11gR2 onwards.

Caution Persistent connections

To avoid inconsistencies and unexpected errors, do not use ALTER SESSION SET EDITION to change the edition on persistent connections.

Caution DRCP Connection Pooling

To avoid inconsistencies and unexpected errors when using editions and DRCP with Oracle 11.2.0.1, keep a one-to-one correspondence between the oci8.connection_class and the edition name used by applications. Each pooled server of a given connection class should only be used with one edition. This restriction has been removed with Oracle 11.2.0.2.

返回值

成功時返回 TRUE, 或者在失敗時返回 FALSE

范例

Example #1 Two scripts can use different versions of myfunc() at the same time

<?php

// File 1

echo "Version 1 of applicationn";

oci_set_edition('ORA$BASE');
$c = oci_connect('hr', 'welcome', 'localhost/XE');

$s = oci_parse($c, "begin :r := myfunc(); end;");
oci_bind_by_name($s, ":r", $r, 20);
oci_execute($s);
echo "The result is $rn";

?>
<?php

// File 2

echo "Version 2 of applicationn";

oci_set_edition('E1');
$c = oci_connect('hr', 'welcome', 'localhost/XE');

$s = oci_parse($c, "begin :r := myfunc(); end;");
oci_bind_by_name($s, ":r", $r, 20);
oci_execute($s);
echo "The result is $rn";

?>


主站蜘蛛池模板: 顺风| 部队肩章等级排名图片| 爱的替身| 七下英语第二单元作文| 范海辛电影原声在线观看免费| 欧美一级毛片免费视频| 战长沙剧情介绍| 挠中国美女丝袜脚心| 速度与激情 电影| 吉泽明步 番号| busty buffy| 买买提个人资料简历| 伸舌头接吻脱裤子 | 蒋金| 违规吃喝研讨发言材料| cad| 人机头像| 军营医生 (1976)| 欧美变态sososo另类| 易烊千玺是哪里人| 戴安·梅尔致命诱饵电影上映时间| 奇米8888| 被抛弃的青春1982| 打电话简谱| 林栋浦| 理发师的情人电影| 理发店3| 少女模特电影| 桐谷| 电视剧《反击》主要演员| 第五单元初试身手| 招领启事的格式| 吴妍儿| 神经内科出科个人总结| 手绢舞蹈视频大全| 施华| 黑之教室| 电影《追求》| 德鲁| 爱之梦钢琴谱| 八年级上册三峡|

!!!站長長期在線接!!!

網站、小程序:定制開發/二次開發/仿制開發等

各種疑難雜癥解決/定制接口/定制采集等

站長微信:lxwl520520

站長QQ:1737366103