位置: 编程技术 - 正文

PHP:oci_set_module_name()的用法_Oracle函数

编辑:rootadmin
oci_set_module_name

推荐整理分享PHP:oci_set_module_name()的用法_Oracle函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(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 PHP:oci_set_module_name()的用法_Oracle函数

User chosen string up to bytes long.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE。

注释

Note: Oracle 版本需求

当 PHP 是与 Oracle 数据库 g 及更新版本的 扩展库链接时,此函数可用。

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');//Recordthemoduleoci_set_module_name($c,'HomePage');//Codethatcausesaroundtrip,forexampleaquery:$s=oci_parse($c,'select*fromdual');oci_execute($s);oci_fetch_all($s,$res);sleep();?>

参见

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

PHP:oci_set_prefetch()的用法_Oracle函数 oci_set_prefetch(PHP5,PECLOCI8=1.1.0)oci_set_prefetch设置预提取行数说明booloci_set_prefetch(resource$statement[,int$rows])在成功调用oci_execute()之后设定预提取的行数。rows的

PHP:oci_set_client_identifier()的用法_Oracle函数 oci_set_client_identifier(PHP5.3.2,PECLOCI8=1.4.0)oci_set_client_identifierSetstheclientidentifier说明booloci_set_client_identifier(resource$connection,string$client_identifier)Setstheclientidentifi

PHP:oci_set_edition()的用法_Oracle函数 oci_set_edition(PHP5.3.2,PECLOCI8=1.4.0)oci_set_editionSetsthedatabaseedition说明booloci_set_edition(string$edition)Setsthedatabaseeditionofobjectstobeusedbyasubsequentconnections.OracleEditionsallo

标签: PHP:oci_set_module_name()的用法_Oracle函数

本文链接地址:https://www.jiuchutong.com/biancheng/275229.html 转载请保留说明!

上一篇:PHP:oci_statement_type()的用法_Oracle函数

下一篇:PHP:oci_set_prefetch()的用法_Oracle函数

  • 合伙企业税务筹划点
  • 简易计税方法和免税该怎么选择
  • 计提环境保护税怎么计算
  • 两处以上取得工资如何交社保
  • 个税系统中的离线算税和在线算税结果一样吗
  • 税控盘抵扣增值税有时间限制吗
  • 年底向员工客户发放、赠送实物的怎么缴个税
  • 国外租赁行业都包括哪些
  • 多项固定资产能否合并入账
  • 金融负债
  • 小规模纳税人财务报表是按季还是按月申报
  • 补交以前年度印花税记到哪个会计科目
  • 冲减成本怎么做会计分录
  • 结转上年度的企业所得税会计分录?
  • 厂家核销费用直接抵扣
  • 物业管理企业主营业务收入
  • 增值税专用发票可以开电子发票吗
  • 资产置换税务处理案例
  • 怎么让资产负债率下降
  • 没收到电费账单怎么办
  • 分配的水电费属于什么会计要素
  • php adodb
  • 哪些行业可以简易征收增值税
  • 处置子公司的收益
  • PHP:file_put_contents()的用法_Filesystem函数
  • post请求params
  • 位于Praprotno村之上的圣托马斯教堂 (© Guy Edwardes/Minden Pictures)
  • php close
  • js进阶视频教程
  • 【JavaScript 刨根问底之】requestAnimationFrame以及延时器
  • python连接网络
  • 增量留抵税额退还举例
  • java hash()
  • dedecms转其他cms
  • 经营一家淘宝店铺,自然就应该做好
  • 普票不能抵扣要他干嘛
  • file文件对象
  • mysql错误提示
  • 对公转账需要填备注吗
  • 一次还本付息债券定价公式
  • 资本公积和盈余公积是什么意思
  • 无追索权保理的例外
  • 医院如何开票
  • 税控服务费如何入账
  • 厂家给经销商的活动方案怎么写
  • 公司基本账户有银行卡吗
  • 本月取得的发票入账后次月对方能红冲吗
  • 多收客户购置税怎么处理
  • 企业列支非本单位费用
  • 医院床单被套尺寸
  • 结账时如何划线进去
  • sqlserver连接失败怎么办
  • mysql分区是什么意思
  • win7系统运行在哪里
  • winxp教程
  • 用户账户限制
  • win7系统鼠标右键菜单设置
  • windows用户注册
  • win10怎么进去
  • 删掉sam文件后无法开机
  • linux单个文件夹文件数量
  • fstab文件详解修改
  • win10系统如何删除用户账户
  • 滚小球的实验过程和材料
  • quick cocos2dx lua 网络图片 下载
  • python使用mysql数据库示例代码
  • django中的model