#ifndef ORACLE_ORAMTS
# define ORACLE_ORAMTS
#include <windows.h>
#include <oci.h>
#include <oratypes.h>
/*----------------------------------------------------------------------------*/
/* various error codes reoprted by the OraMTS<> functions */
/*----------------------------------------------------------------------------*/
/* All error codes here: */
/* 0 - - success */
/* 1 - 1000 - Public APIs (kpntsvcget(), kpntsvcrelease(), etc.) */
/* 1001 - 2000 - Dispenser component */
/* 2001 - 3000 - Database identifier object */
/* 3001 - 4000 - Server object */
/* 4001 - 5000 - Session object */
/* 5001 - 6000 - RPC-related */
/* 6001 - 7000 - Miscellaneous */
/*----------------------------------------------------------------------------*/
/* Error codes for the connection pool APIs. */
/*----------------------------------------------------------------------------*/
#define ORAMTSERR_NOERROR (0 ) /* success code */
/* ------------ dispenser object related errors ----------------------------- */
#define ORAMTSERR_NOMTXDISPEN (1001) /* no MTXDM.DLL available */
#define ORAMTSERR_DSPCREAFAIL (1002) /* failure to create dispen*/
#define ORAMTSERR_DSPMAXSESSN (1003) /* exceeded max sessions */
#define ORAMTSERR_DSPINVLSVCC (1004) /* invalid OCI Svc ctx */
#define ORAMTSERR_DSPNODBIDEN (1005) /* can't create new dbiden */
/*------------- database identifier related errors ---------------------------*/
#define ORAMTSERR_NOSERVEROBJ (2001) /* unable to alloc a server*/
/* ------------ server object related errors -------------------------------- */
#define ORAMTSERR_INVALIDSRVR (3001) /* invalid server object */
#define ORAMTSERR_FAILEDATTCH (3002) /* failed attach to Oracle */
#define ORAMTSERR_FAILEDDETCH (3003) /* failed detach from db */
#define ORAMTSERR_FAILEDTRANS (3004) /* failed to start trans. */
#define ORAMTSERR_SETATTRIBUT (3005) /* OCI set attrib failed */
#define ORAMTSERR_CONNXBROKEN (3006) /* conn to Oracle broken */
#define ORAMTSERR_NOTATTACHED (3007) /* not attached to Oracle */
#define ORAMTSERR_ALDYATTACHD (3008) /* alrdy attached to Oracle*/
/* ------------ session object related errors ------------------------------- */
#define ORAMTSERR_INVALIDSESS (4001) /* invalid session object */
#define ORAMTSERR_FAILEDLOGON (4002) /* failed logon to Oracle */
#define ORAMTSERR_FAILEDLOGOF (4003) /* failed logoff from db */
#define ORAMTSERR_TRANSEXISTS (4004) /* no transaction beneath */
#define ORAMTSERR_LOGONEXISTS (4005) /* already logged on to db */
#define ORAMTSERR_NOTLOGGEDON (4006) /* not logged on to Oracle */
/* ------------ RPC errors -------------------------------------------------- */
#define ORAMTSERR_RPCINVLCTXT (5001) /* RPC context is invalid */
#define ORAMTSERR_RPCCOMMUERR (5002) /* generic communic. error */
#define ORAMTSERR_RPCALRDYCON (5003) /* endpoint already connect*/
#define ORAMTSERR_RPCNOTCONNE (5004) /* endpoint not connected */
#define ORAMTSERR_RPCPROTVIOL (5005) /* protocol violation */
#define ORAMTSERR_RPCACCPTIMO (5006) /* timeout accepting conn. */
#define ORAMTSERR_RPCILLEGOPC (5007) /* invalid RPC opcode */
#define ORAMTSERR_RPCBADINCNO (5008) /* mismatched incarnation# */
#define ORAMTSERR_RPCCONNTIMO (5009) /* client connect timeout */
#define ORAMTSERR_RPCSENDTIMO (5010) /* synch. send timeout */
#define ORAMTSERR_RPCRECVTIMO (5011) /* synch. receive timedout */
#define ORAMTSERR_RPCCONRESET (5012) /* connection reset by peer*/
/* ------------ miscellaneous errors ---------------------------------------- */
#define ORAMTSERR_INVALIDARGU (6001) /* invalid args to function*/
#define ORAMTSERR_INVALIDOBJE (6002) /* an object was invalid */
#define ORAMTSERR_ILLEGALOPER (6003) /* illegal operation */
#define ORAMTSERR_ALLOCMEMORY (6004) /* memory allocation error */
#define ORAMTSERR_ERRORSYNCHR (6005) /* synchr. object error */
#define ORAMTSERR_NOORAPROXY (6006) /* no Oracle Proxy server */
#define ORAMTSERR_ALRDYENLIST (6007) /* session already enlisted*/
#define ORAMTSERR_NOTENLISTED (6008) /* session is not enlisted */
#define ORAMTSERR_TYPMANENLIS (6009) /* illeg on manuenlst sess */
#define ORAMTSERR_TYPAUTENLIS (6010) /* illeg on autoenlst sess */
#define ORAMTSERR_TRANSDETACH (6011) /* error detaching trans. */
#define ORAMTSERR_OCIHNDLALLC (6012) /* OCI handle alloc error */
#define ORAMTSERR_OCIHNDLRELS (6013) /* OCI handle dealloc error*/
#define ORAMTSERR_TRANSEXPORT (6014) /* error exporting trans. */
#define ORAMTSERR_OSCREDSFAIL (6105) /* error getting NT creds */
/*----------------------------------------------------------------------------*/
/* //////////// Connection flags on call OraMTSSvcGet() ///////////////////// */
/*----------------------------------------------------------------------------*/
#define ORAMTS_CFLG_ALLDEFAULT (0x00000000) /* default flags */
#define ORAMTS_CFLG_NOIMPLICIT (0x00000001) /* don't do implicit enlistment*/
#define ORAMTS_CFLG_UNIQUESRVR (0x00000002) /* need a separate Net8 connect*/
#define ORAMTS_CFLG_SYSDBALOGN (0x00000004) /* logon as a SYSDBA */
#define ORAMTS_CFLG_SYSOPRLOGN (0x00000010) /* logon as a SYSOPER */
#define ORAMTS_CFLG_PRELIMAUTH (0x00000020) /* preliminary internal login */
/*----------------------------------------------------------------------------*/
/* //////////// Enlistment flags on call kpntsvcenlist() //////////////////// */
/*----------------------------------------------------------------------------*/
#define ORAMTS_ENFLG_DEFAULT (0x00000000) /* default flags */
#define ORAMTS_ENFLG_RESUMTX (0x00000001) /* resume a detached transact. */
#define ORAMTS_ENFLG_DETCHTX (0x00000002) /* detached from the transact. */
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
/*----------------------------------------------------------------------------*/
/* /////////////////////// Public functions ///////////////////////////////// */
/*----------------------------------------------------------------------------*/
/* Name : OraMTSSvcGet() */
/* Purpose : Obtain a pooled connection from the OCI connection pool. */
/* Arguments : text *lpUname: (IN ) user name for session */
/* text *lpPsswd: (IN ) password for session */
/* text *lpDbnam: (IN ) database alias for connection */
/* OCISvcCtx **pOCISvc: (OUT) ptr to OCI svc context handle. */
/* OCIEnv **pOCIEnv: (OUT) ptr to OCI enironment handle. */
/* ub4 ConFlgs: (IN ) connection flags */
/* Returns : ORAMTSER
![avatar](https://profile-avatar.csdnimg.cn/8e7e6081cba84071a3d95f1d86864889_usoa.jpg!1)
24K老游
- 粉丝: 132
- 资源: 54
最新资源
- PFC开关电源仿真与全桥LLC串联谐振电源Simulink模型详解,PFC开关电源仿真与全桥LLC串联谐振模型:Simulink建模及参数计算说明,PFC开关电源仿真 全桥LLC 单相Boost PF
- IEEE 39节点系统中的双馈风机风电场:带有虚拟惯量与综合控制的一次调频技术分析与应用模拟,IEEE 39节点风电一次调频系统:含双馈风机与虚拟惯量、下垂控制及综合惯量控制的时空分布研究,IEEE3
- 双馈永磁同步风电机组并网仿真模型及其短路故障分析:一个可调容量的9MW风电场模拟研究报告,“kw级别双馈永磁风电机组与PMSG并网仿真模型:风电场短路故障分析与多风速模拟研究”,双馈永磁风电机组并网仿
- 小数分频锁相环与环形振荡器结构在smic 28nm工艺下的设计原理及版图详解,小数分频锁相环与环形振荡器结构设计:SMIC 28nm技术下的版图设计与原理解析,小数分频锁相环,环形振荡器结构,smic
- 基于python的区块链简单实现
- 基于VSG控制的MMC变流器模块化研究:电网频率电压模拟下的功率输出与调节策略,基于VSG控制的MMC变流器模块化研究:电网频率电压模拟下的功率输出与调节策略,基于VSG控制(同步发电机控制)的模块化
- 永磁同步电机旋转高频信号注入法:零低速无位置控制的优化仿真研究及其低噪声低损耗优势分析,永磁同步电机旋转高频信号注入法:零低速无位置控制的优化仿真研究及与高频方波信号注入法的对比分析,永磁同步电机旋转
- Simulink光伏并网与同步发电机优化:频率惯量支撑与波形效果卓越,光强、温度及减载率可灵活调整,Simulink光伏并同步发电机频率惯量支撑技术研究:光强、温度与减载率可调的优化波形效果探索,si
- 基于java的区块链简单实现
- **Qt CPP多列时间轴控件:故事大纲展示与自由编辑的强大工具**,QtCPP时间轴控件:多功能时间管理,事件故事线编排的完美工具,Qt CPP实现的多列时间轴控件、可与多段字符串格式自由转、也可手
- 基于DSP28377的三相并网双二阶锁相环(DSOGI-PLL)程序设计方法探讨,基于DSP28377的三相并网双二阶锁相环DSOGI-PLL程序设计解析与实现,基于DSP28377的三相并网双二阶锁
- MATLAB中基于DWA算法的机器人局部避障路径规划过程解析:速度控制优化与仿真实验结果,MATLAB动态窗口算法DWA实现机器人局部避障路径规划的优化与仿真研究:速度控制下的最优路线决策,MATLA
- 电气安装工 中级工.pdf
- 基于dq旋转坐标系的构网变流器功率控制策略:下垂控制实现功率准确跟踪与电压前馈双闭环控制,基于dq坐标系的构网变流器功率控制策略:下垂控制结合PI控制实现精准功率跟踪与电压稳定,构网变流器功率控制控制
- 电气安装工 高级工.pdf
- KR_70_R2100_E_ES 20240417(1).stp
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)