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

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


主站蜘蛛池模板: 珍爱如血泰剧全集在线观看| 机动战士高达seed destiny| cctv16节目表今天目表| cctv今日说法| department什么意思| 印度西施| 男人伤感失落孤独头像| 高纤维食物一览表| 超越情感电视剧免费观看全集完整版| 亲密 电影| 龙咁威| 出轨的女人电影| 水果篮子第二季全集| 张扬导演| 汤唯惊艳写真大片| 徐若晗个人简历| 家书1000字| 香港之夜完整版在线观看高清| 王思琪| 湖南卫视节目表| 陈一龙是哪部电视剧 | 河南电视台卫星频道| 美丽的坏女人中文字幕| 电视剧《后浪》| 抖音. com| 李采潭全部电影在线观看| 影视剧分娩片段合集| 抽烟视频| 北之萤| 白上关花电影在线观看免费| 电影《盲井》| www.douyin.com| 舞法天女之绚彩归来演员表| 1980属猴多少岁了| 张晚| 毕业论文3000字范文| 孤独感爆满的头像| 我的孩子我的家三观尽毁| yy五项滚刀骂人套词| 可隆衣服属于什么档次| 张晚|

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

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

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

站長微信:lxwl520520

站長QQ:1737366103