位置: 编程技术 - 正文

PHP:oci_set_client_identifier()的用法_Oracle函数

编辑:rootadmin
oci_set_client_identifier

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

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

(PHP 5.3.2, PECL OCI8 >= 1.4.0)

oci_set_client_identifier — Sets the client identifier

说明 bool oci_set_client_identifier ( resource $connection , string $client_identifier )

Sets the client identifier used by various database components to identify lightweight application users who authenticate as the same database user.

The client identifier is registered with the database when the next &#;roundtrip&#; from PHP to the database occurs, typically when an SQL statement is executed.

The identifier can subsequently be queried, for example with SELECT SYS_CONTEXT(&#;USERENV&#;,&#;CLIENT_IDENTIFIER&#;) FROM DUAL. Database administration views such as V$SESSION will also contain the value. It can be used with DBMS_MONITOR.CLIENT_ID_TRACE_ENABLE for tracing and can also be used for auditing.

The value may be retained across page requests that use the same persistent connection.

参数 PHP:oci_set_client_identifier()的用法_Oracle函数

connection

Oracle 连接标识,由oci_connect(),oci_pconnect(),或oci_new_connect() 返回。

client_identifier

User chosen string up to bytes long.

返回值

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

范例

Example #1 Setting the client identifier to the application user

<?php//Findtheapplicationuser'sloginnamesession_start();$un=my_validate_session($_SESSION['username']);$c=oci_connect('myschema','welcome','localhost/XE');//TellOraclewhothatuserisoci_set_client_identifier($c,$un);//Thenextroundtriptothedatabasewillpiggybacktheidentifier$s=oci_parse($c,'selectmydatafrommytable');oci_execute($s);//...?>

注释 CautionRoundtrip Gotcha

一些 OCI8 函数会导致 Roundtrips. 对数据库来说当启用结果缓存时,查询可能不产生Roundtrips。

参见

oci_set_module_name() - Sets the module name oci_set_action() - Sets the action name oci_set_client_info() - Sets the client information

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_client_info()的用法_Oracle函数 oci_set_client_info(PHP5.3.2,PECLOCI8=1.4.0)oci_set_client_infoSetstheclientinformation说明booloci_set_client_info(resource$connection,string$client_info)SetstheclientinformationforOracletracing.The

PHP:oci_set_action()的用法_Oracle函数 oci_set_action(PHP5.3.2,PECLOCI8=1.4.0)oci_set_actionSetstheactionname说明booloci_set_action(resource$connection,string$action_name)SetstheactionnameforOracletracing.Theactionnameisregisteredwiththe

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

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

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

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

  • 印花税不足1元需要缴纳吗
  • 个人所得税个人信息怎么填写
  • 印花税的填报方法
  • 企业中征码全称
  • 用友如何结转本年利润到未分配利润
  • 预付款项包括哪些项目
  • 接受长期股权投资的条件
  • 补缴去年地税社保的会计分录怎么写?
  • 企业生产成本核算的一般程序为
  • 如何处理没有录音的人
  • 股东借款利息代扣代缴增值税是怎样算的?
  • 作废的发票怎么复制开新票
  • 保险公司如何计算车辆折旧
  • 加油发票税号错误怎么补救
  • 关于金融行业的经典句子
  • 资产损失申报方式
  • 库存商品淘汰报告模板
  • 工资中的话费补助是什么
  • 最新w10系统专业版
  • 商品房买卖合同面积差3%法律规定
  • 借款人约定分期还款中途可以起诉吗
  • php中split
  • php实现修改功能
  • php笔记程序
  • codecline
  • 使用PHP+MySql+Ajax+jQuery实现省市区三级联动功能示例
  • uniapp获取window对象
  • 今天中秋节
  • 如何免费使用超级简历
  • 卷卷卷卷卷
  • 小帽科技
  • vue鼠标悬浮菜单
  • php原生类
  • phpcms默认密码
  • 固定资产清理是什么意思
  • 预提费用待摊费用改为什么科目
  • 企业向合伙企业分红怎么交税
  • vue 生产环境
  • 研发费用计入科目
  • 开发公司出租未开发发票
  • 个人所得税专项附加扣除赡养老人
  • 房地产开发企业建造的商品房,在出售前
  • SqlServer 2005 T-SQL Query 学习笔记(1)
  • 全资子公司注销的账务处理
  • 实际购入成本包括增值税吗
  • 库存商品一直没有销售怎么办
  • 坏账准备贷方余额期末如何处理
  • 工地水包水
  • 预付卡销售和充值怎么做账
  • 发票认证申报期是什么时候
  • 旅客运输进项税申报漏了
  • 长期股权投资的成本法和权益法区别
  • 如何设置sqlserver数据库用户名密码
  • mysql 免安装版
  • linux命令实现
  • 电脑开机怎么设置默认系统
  • win8.1应用商店还能用吗
  • windows10怎么隐藏工具栏
  • upromise0.exe - upromise0进程是什么文件
  • 电脑删除ie后怎么恢复
  • win10打开命令提示符窗口
  • win7升级win10系统要多久
  • linux中关闭系统命令
  • linux内核编程指南
  • 你需要windows7sp1才能安装ie11
  • 蓝牙鼠标不能动了
  • echarts怎么用
  • android中的布局分为6种,分别是
  • xcode配置opencv
  • 利用python读取文件
  • vrbrations
  • 谈谈关于中华文明的五个突出特性
  • 你知道什么是布
  • js dom操作方法
  • 非常棒的jQuery图片轮播效果
  • 合肥税务局招聘信息
  • 河南热力公司收费标准
  • 期间费用如何分摊到成本中
  • 单据整理方法
  • 核定土地增值税的条件
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设