#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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Oracle 9i 客户端绿色版配置步骤<br><br>1.解压 Oracle*_Base.rar 到指定目录,如 E:\Oracle<br><br>2.将 oracle.reg 中的路径改为相应路径,完成后双击 oracle.reg ,导入注册信息到注册表<br> (用户路径中已经有其它的程序路径请手工配置,以免覆盖其它程序设置)<br><br>3.将你的 tnsnames.ora 文件复制到 E:\Oracle\ora92\NETWORK\Admin 目录<br><br>4.使用前检查环境变量是否生效<br><br><br>本版本支持常用的sqlplus,exp,imp及使用oci连接数据库的程序。 补充:bin\ORACLE.KEY 里的键值要与oracle.reg里的路径相符,否则运行会有问题。
资源推荐
资源详情
资源评论
收起资源包目录
Oracle9i_Base.rar (76个子文件)
oracle.reg 474B
ora92
bin
orantcp9.dll 48KB
EXP.EXE 376KB
sqlplus.exe 448KB
TNSPING.EXE 38KB
IMP.EXE 144KB
orannzsbb9.dll 548KB
oraunls9.dll 68KB
orantns9.dll 28KB
orancrypt9.dll 92KB
oraslax9.dll 28KB
orannts9.dll 52KB
ORATRACE9.dll 240KB
oranms.dll 28KB
OCIW32.DLL 36KB
oracommon9.dll 576KB
oracore9.dll 632KB
oci.dll 112KB
oraldapclnt9.dll 144KB
oranhost9.dll 24KB
oranmsp.dll 64KB
oran9.dll 716KB
orancds9.dll 24KB
oraxsd9.dll 124KB
oranbeq9.dll 32KB
orasql9.dll 464KB
oranro9.dll 216KB
oranoname9.dll 24KB
oraxml9.dll 500KB
oranldap9.dll 68KB
ORACLIENT9.DLL 1.47MB
oranls9.dll 480KB
oranl9.dll 176KB
orasnls9.dll 64KB
sqlldr.exe 356KB
orageneric9.dll 2.33MB
orawtc9.dll 24KB
orapls9.dll 3.07MB
ORACLE.KEY 23B
oravsn9.dll 24KB
NETWORK
Admin
mesg
tnszhs.msb 35KB
tnsus.msb 46KB
oci
include
oramts.h 20KB
lib
msvc
oramts.lib 4KB
SQLPlus
mesg
cpyzhs.msb 4KB
cpyus.msb 4KB
spwzhs.msb 6KB
sp2zhs.msb 25KB
sp1us.msb 11KB
sp1zhs.msb 10KB
spwus.msb 6KB
sp2us.msb 31KB
ORACORE
mesg
lrmzhs.msb 4KB
lrmus.msb 5KB
zoneinfo
timezone.dat 145KB
ocommon
nls
admin
data
lx10035.nlb 754B
lx507d01.nlb 43KB
lx1boot.nlb 20KB
lx10001.nlb 748B
lx00023.nlb 565B
lx607d01.nlb 121KB
lx20354.nlb 423KB
lx00001.nlb 721B
lx60354.nlb 50KB
lx207d01.nlb 104KB
lx20001.nlb 6KB
RDBMS
mesg
impzhs.msb 12KB
expzhs.msb 12KB
ulus.msb 34KB
ocius.msb 16KB
ulzhs.msb 26KB
ocizhs.msb 12KB
oraus.msb 643KB
impus.msb 15KB
orazhs.msb 448KB
expus.msb 16KB
共 76 条
- 1
资源评论
- linx1234562013-04-28要用9i的exp功能,能用
24K老游
- 粉丝: 130
- 资源: 54
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Cisco Packet Tracer实用技巧及网络配置指南
- 国际象棋棋子检测8-YOLO(v5至v11)、COCO、CreateML、Paligemma、TFRecord、VOC数据集合集.rar
- jQuery信息提示插件
- 电动蝶阀远程自动化控制系统的构建与应用
- 基于python和协同过滤算法的电影推荐系统
- Hadoop复习资料题库.zip
- 国际象棋棋子检测3-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord数据集合集.rar
- Python毕业设计基于知识图谱的电影推荐系统源码(完整项目代码)
- 基于C++的简易图书管理系统(含exe可执行文件)
- 使用python爬取数据并采用Django搭建系统的前后台,使用Spark进行数据处理并进行电影推荐项目源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功