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

導航首頁 ? 技術教程 ? 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";

?>


主站蜘蛛池模板: 张俪作品| 秀人网 官网门户免费| 想想办法吧爸爸| 汪佳辉| 英雄重生| 那些年,那些事 电视剧| 许多组织都有自己的价值标准和行为理念 | 白鹿电影| 我的极品女神 电影| 包青天之真假包公| 央视7套| bb88| 《红色》电影| 《无人生还》电影在线观看| 牙狼魔界战记| 重启之极海听雷2免费版在线播放| 六级词汇电子版| 电影后妈| 亲子鉴定血型对照表| 韩国电影《致命的诱惑》| 猫小帅的故事| 打美女屁股免费| deathnote| 杨幂吻戏| 湖南卫视节目表| 李洋演员| 妈妈写给叛逆儿子的信看哭孩子| 红海行动2电影完整播放在线观看| 尤勇个人资料简介简历| 陈浩宇女演员| 少女椿电影| 季芹| 林智妍《邂逅》未删减| 又造句二年级上册| 人流后饮食| 闵度允参演的电影有哪些电视剧| 电影《三体》| 等着你电影韩版| 庞勇| borderland| 1988田螺姑娘|

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

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

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

站長微信:lxwl520520

站長QQ:1737366103