位置: 编程技术 - 正文

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函数

  • 股权转让需要缴纳企业所得税吗
  • 百望税控软件下载
  • 收到退回的留抵退税怎么做账
  • 一般纳税人收到普票可以抵扣吗
  • 企业所得税如何抵扣
  • 实收资本印花税税率多少
  • 预付押金是否可以作为成本
  • 租地建厂房合同
  • 原材料被盗计入什么科目
  • 核定征收可以享受小微企业税收优惠吗
  • 企业的车辆购置税计入哪个科目
  • 房屋维修专用发票图片
  • 退货后发票还能拿去抵税吗
  • 印花税零申报怎么填样本
  • 一次性发放几个月的工资怎么申报
  • 凭证类别不合法怎么处理
  • 金融机构可以采取什么措施
  • 企业收到损坏赔偿金
  • 财务部门固定资产修理费计入什么科目
  • win10专业版如何改为家庭版
  • win11开始菜单怎么设置成左下角
  • 姑娘果的功效与作用百度百科
  • 代扣代缴的城建税和教育费附加按委托方所在地的税率
  • 一般纳税人增值税税率
  • 折旧可以计入主体成本吗
  • win10为什么每次开机都要输入微软密码
  • 全额拨款事业单位工资待遇
  • php str函数
  • 办理发票缴销需要提供的资料
  • 硬盘最小的存储单位
  • 资本公积转增股本需要缴纳个人所得税吗
  • vue兼容性
  • php编程入门教程
  • Vue--》Vue3打造可扩展的项目管理系统后台的完整指南(一)
  • easyui分页
  • 工作服列支什么科目
  • 将织梦dedecms转换到wordpress
  • photo-sphere-viewer中文文档
  • 智慧工厂协同管控下载
  • 中兴网管操作手册
  • vscode的常用插件
  • wordpress修改数据库
  • 长期借款利息是流动负债吗
  • Linux下MySQL卸载和安装图文教程
  • python怎么用
  • 租店铺需要什么流程需要注意什么事项?
  • 一次性用品可以做什么东西
  • 工程施工企业转账手续费计入什么会计科目
  • 改变记帐方式的原因
  • 佣金是买卖股票都收吗
  • 公司年底奖金怎么计算
  • 增值税计提多了已经跨年度怎么办
  • 低值易耗品如何摊销
  • 样板房装修可以住人吗
  • 补缴以前年度企业年金可以税前扣除吗
  • 进项税认证未抵扣怎么做账
  • 坏账准备计入营业外支出什么明细
  • sql如何实现
  • 微软6月24号
  • win8怎么打开系统设置
  • 搜索不到WiFi信号是怎么回事
  • win7命令提示符怎么打开
  • win7系统鼠标右键无法弹出菜单
  • win10预览版和正式版
  • 苹果mac电脑不会关机
  • linux用
  • 如何刷硬盘使用时间
  • linux ftp创建文件夹命令
  • 仿客齐集首页导航条DIV+CSS+JS [代码实例]
  • python tcp socket
  • 置顶的朋友圈屏蔽的人能看到吗
  • opengl glu
  • qt配置opengl
  • 响应鼠标变换表怎么用
  • js实现功能
  • xmpp client
  • 土地增值税有哪些征收方式
  • 企业吸收合并资质转移办理
  • 广西电子税务局电话人工客服电话
  • 贵州企业申报系统
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设