您的位置:首页 >> 数据库 >> Oracle >> 正文
Oracle RSS
 

自己整理的OCI文档,抛砖引玉

http://www.rdxx.com 05年11月10日 00:00 ChinaUnix.net 我要投稿

关键词: OCI , 文档

OCI_ATTR_USERNAME, errhp);
if(swResult != OCI_SUCCESS && swResult != OCI_SUCCESS_WITH_INFO)
return FALSE;

swResult = OCIAttrSet(usrhp, OCI_HTYPE_SESSION,    (text*) passwd, strlen(passwd), 
OCI_ATTR_PASSWORD, errhp);
if(swResult != OCI_SUCCESS && swResult != OCI_SUCCESS_WITH_INFO)
return FALSE;

  
sword OCIAttrGet(
dvoid *trgthndlp,  //需读取的句柄名
ub4  trghndltyp, //句柄类型
dvoid *attributep, //读取的属性名
ub4 *sizep, //属性值长度
ub4 attrtype,     //属性类型
OCIError *errhp   //错误句柄
)

4.连接/断开服务器
   多用户方式连接:
  sword  OCIServerAttach(
OCIServer     *srvhp,//未初始化的服务器句柄
                      OCIError      *errhp,
                          CONST text    *dblink,//服务器SID
                         sb4           dblink_len,
                        ub4           mode //=OCI_DEFAULT,系统环境将设为阻塞方式
);

   sword OCIServerDetach (
OCIServer   *srvhp,
                 OCIError    *errhp,
                         ub4         mode //OCI_DEFAULT
); 
单用户方式连接:
   sword OCILogon (
OCIEnv          *envhp,
                    OCIError        *errhp,
                   OCISvcCtx       **svchp,
                  CONST text      *username,
                  ub4             uname_len,

共16页  第1页 第2页 第3页 第4页 第5页 第6页 第7页 第8页 第9页 第10页 第11页 第12页 第13页 第14页 第15页 第16页


 
 
标签: OCI , 文档 打印本文
 
 
  热点搜索
 
 
 



Valid XHTML 1.0 Transitional
Copyright ©2005 - 2008 Rdxx.Com,All Rights Reserved
收藏本页
收藏本站