资源简介
ocilib4.3.3的压缩包,Github上荡的,荡了我一下午我的天!

代码片段和文件信息
#include “ocilib.h“
#if defined(_WINDOWS)
#define sleep(x) Sleep(x*1000)
#else
#include
#endif
void long_oracle_call(OCI_Thread *thread void *data)
{
clock_t t_start = clock();
int err_code = 0;
if (!OCI_ExecuteStmt((OCI_Statement *)data “begin dbms_lock.sleep(10); end;“))
{
OCI_Error *err = OCI_GetLastError();
if (err)
{
err_code = OCI_ErrorGetOCICode(err);
}
}
printf(“call duration %d expected oracle error is 1013 got %d“ clock() - t_start err_code);
}
int main(void)
{
OCI_Connection *cn;
OCI_Statement *st;
OCI_Thread *th;
if (!OCI_Initialize(NULL NULL OCI_ENV_THREADED | OCI_ENV_CONTEXT))
{
return EXIT_FAILURE;
}
th = OCI_ThreadCreate();
cn = OCI_ConnectionCreate(“db“ “usr“ “pwd“ OCI_SESSION_DEFAULT);
st = OCI_StatementCreate(cn);
OCI_ThreadRun(th long_oracle_call st);
sleep(1);
OCI_Break(cn);
OCI_ThreadJoin(th);
OCI_ThreadFree(th);
OCI_StatementFree(st);
OCI_ConnectionFree(cn);
OCI_Cleanup();
return EXIT_SUCCESS;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-05-16 08:36 demo\
文件 1184 2017-02-27 12:18 demo\abort.c
文件 935 2017-02-27 12:18 demo\abort.cpp
文件 1501 2017-02-27 12:18 demo\array.c
文件 1068 2017-02-27 12:18 demo\array.cpp
文件 1046 2017-02-27 12:18 demo\array_internal.c
文件 986 2017-02-27 12:18 demo\bind.c
文件 644 2017-02-27 12:18 demo\bind.cpp
文件 1902 2017-02-27 12:18 demo\coll.c
文件 2750 2017-02-27 12:18 demo\coll.cpp
文件 1134 2017-02-27 12:18 demo\collections.sql
文件 740 2017-02-27 12:18 demo\conn.c
文件 999 2017-02-27 12:18 demo\cursor.c
文件 874 2017-02-27 12:18 demo\cursor.cpp
文件 1273 2017-02-27 12:18 demo\date.c
文件 936 2017-02-27 12:18 demo\date.cpp
文件 101 2017-02-27 12:18 demo\dates.sql
文件 1151 2017-02-27 12:18 demo\desc.c
文件 1184 2017-02-27 12:18 demo\desc.cpp
文件 2564 2017-02-27 12:18 demo\dirpath.c
文件 144 2017-02-27 12:18 demo\dirpath.sql
文件 12661 2017-02-27 12:18 demo\dirpath_complete.c
文件 580 2017-02-27 12:18 demo\err.c
文件 504 2017-02-27 12:18 demo\err_ctx.c
文件 584 2017-02-27 12:18 demo\err_warning.c
文件 923 2017-02-27 12:18 demo\exec.c
文件 851 2017-02-27 12:18 demo\fetch.c
文件 751 2017-02-27 12:18 demo\fetch.cpp
文件 1358 2017-02-27 12:18 demo\fetch_struct.c
文件 1918 2017-02-27 12:18 demo\file.c
文件 238 2017-02-27 12:18 demo\file.sql
............此处省略451个文件信息
- 上一篇:人工智能(模糊算法)
- 下一篇:verilog交通灯设计
相关资源
- AE开发Windows最短路径分析
-
Windows em
bedded Compact 2013 应用开发调 - 黑苹果硬件兼容检测和查询软件
- Uninstall_Cortana_WINCLIENT.CN.rar
- VMware65_SLP_DeLLSLIC2.1
- Windows异步套接字网络编程
- WINDOWS98启动盘镜像Win98.IMA
- 仿windows记事本
- windows7用的,非常漂亮的透明计时器
- windows下制作macOS安装U盘,绝对简单好
- keil vcom windows 7 64bit 驱动
- windows ce 系统的GPIO驱动程序
- TCP 发包工具(windows)
- 微软的可以删除系统卸不干净的软件
- windows下生成MD5值的工具(WinMD5)
- windows cygwin ns2安装步骤
- WinAPI 函数库(大全)
- 解决在Windows XP SP2下不能显示验证码的
- 加快Windows XP操作系统开机速度
- Windows 1.0 软盘镜像
- Windows下访问LINUX的利器-SSH
- ChilledWindows.exe(玩笑病毒)
- NDK-R12B windows-x86_64百度云盘
- windows3.2简体中文版,虚拟机文件
- Windows 3.0 安装软盘(3.5 720k)
- WINDOWS内核安全编程 寒江独钓 光盘源
- 寒江独钓-Windows内核安全编程(完整版
- 实现Windows与Linux两系统间自由切换
- 如何删除Linux系统后找回Windows的启动
- 飞康NSS、CDP力保Windows Server 2008数据迁
评论
共有 条评论