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

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

oci_set_module_name

(PHP 5.3.2, PECL OCI8 >= 1.4.0)

oci_set_module_name — Sets the module name

說明

bool oci_set_module_name ( resource $connection , string $module_name )

Sets the module name for Oracle tracing.

The module name is registered with the database when the next 'roundtrip' from PHP to the database occurs, typically when an SQL statement is executed.

The name can subsequently be queried from database administration views such as V$SESSION. It can be used for tracing and monitoring such as with V$SQLAREA and DBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE.

The value may be retained across persistent connections.

參數

connection

Oracle 連接標識,由 oci_connect(),oci_pconnect(),或 oci_new_connect() 返回。

module_name

User chosen string up to 48 bytes long.

返回值

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

注釋

Note: Oracle 版本需求

當 PHP 是與 Oracle 數據庫 10g 及更新版本的 擴展庫鏈接時,此函數可用。

Tip性能

使用舊版的 OCI8 或 ORACLE 數據庫 ,可使用 Oracle DBMS_APPLICATION_INFO 包來設置客戶端信息。這比使用 oci_set_client_info() 較低效。

CautionRoundtrip Gotcha

一些 OCI8 函數會導致 Roundtrips. 對數據庫來說當啟用結果緩存時,查詢可能不產生Roundtrips。

范例

Example #1 Setting the module name

<?php

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

// Record the module
oci_set_module_name($c, 'Home Page');

// Code that causes a roundtrip, for example a query:
$s = oci_parse($c, 'select * from dual');
oci_execute($s);
oci_fetch_all($s, $res);

sleep(30);
?>
// While the script is running, the administrator can see the
// modules in use:
sqlplus system/welcome
SQL> select module from v$session;

參見

oci_set_action() - Sets the action name oci_set_client_info() - Sets the client information oci_set_client_identifier() - Sets the client identifier


主站蜘蛛池模板: 白色橄榄树啥时候播出 | 泷泽萝拉第二部| 名字简写设计| 女村长| 二年级上册数学试卷题全套| 电影《天启》| reimei影虎| 彭丹最惊艳三部电影在线观看| 情动电影| 掐脖子的视频| 色在线播放| 5年级上册第1单元作文我的心爱之物| 布丽特妮·罗伯森| 鬼迷心窍1994| 阿尔罕布拉宫的回忆吉他谱| 李泽宇| 减肥喝什么榨汁减肥快| 赌侠演员表大全| 吻胸亲乳激情大尺度| 郭馨钰| 微信图像男| 傲娇与章经| 教师政治学习笔记| 樊梅生| 美人邦| 温暖的弦电视剧全集免费观看高清| 质量教育培训的首要内容是() (单选题) | 巨乳娇妻| 北京卫视今晚的电视剧是什么| 和平积弊| 回收名表价格查询| 陷入纯情| 社会主义改造理论ppt| 色蝴蝶| 横冲直撞好莱坞| 流行性感冒ppt课件| disturbia| 尹雪喜最好看的三部电影| 美女中刀| 寡妇高潮一级毛片情欲小说| 漆黑意志|

?。。≌鹃L長期在線接?。。?/p>

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

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

站長微信:lxwl520520

站長QQ:1737366103