没有合适的资源?快使用搜索试试~ 我知道了~
首页Oracle C++ Call Interface 11g Release 1 开发指南
Oracle C++ Call Interface 11g Release 1 开发指南
需积分: 9 2 下载量 28 浏览量
更新于2024-07-27
收藏 3.29MB PDF 举报
"Oracle® C++ Call Interface Programmer's Guide 11g Release 1 (11.1) 是Oracle公司发布的一份技术指南,主要面向使用C++开发与Oracle数据库交互的应用程序的程序员。该文档详细介绍了如何利用Oracle C++ Call Interface (OCCI) 这个API来实现对Oracle数据库的高效访问和操作。"
Oracle C++ Call Interface (OCCI) 是Oracle数据库提供的一种C++编程接口,允许开发者在C++应用程序中直接访问和操作数据库。通过OCCI,开发者可以构建高性能、低级别的数据库应用,同时保持C++的灵活性和效率。
在11g Release 1 (11.1) 版本中,OCCI可能包含以下关键知识点:
1. **安装与配置**:如何在开发环境中设置OCCI,包括库的链接和编译选项,以及确保开发环境支持Oracle数据库连接。
2. **连接管理**:创建和管理数据库连接,包括连接池的使用,以提高性能和资源利用率。
3. **SQL语句执行**:使用OCCI执行SQL查询,包括简单的SELECT、INSERT、UPDATE和DELETE语句,以及复杂的存储过程调用。
4. **结果集处理**:如何遍历和处理查询结果,包括提取数据、处理游标和异常处理。
5. **事务控制**:理解如何在C++代码中开始、提交、回滚事务,以及设置事务隔离级别。
6. **对象关系映射**:如果适用,OCCI可能提供了对Oracle对象类型的支持,允许开发者将数据库对象直接映射到C++类。
7. **性能优化**:关于如何优化OCCI应用程序的提示和最佳实践,以提高数据库操作的速度和效率。
8. **错误处理和异常**:OCCI的错误报告机制,包括异常处理和错误代码解析。
9. **安全性**:如何在OCCI中实现安全的数据库访问,如使用连接字符串、认证和权限管理。
10. **并发编程**:在多线程环境中使用OCCI的注意事项和最佳实践。
文档的作者和贡献者列表表明,这是一个由经验丰富的Oracle工程师团队编写的权威指南,涵盖了OCCI的各个方面,旨在帮助开发者充分利用这个接口进行数据库开发。
请注意,文档中的信息可能会随时间变化,因此实际使用时需要参考最新的文档或官方更新。如果在文档中发现任何问题,Oracle鼓励用户以书面形式向他们报告。
xvi
lastDay().......................................................................................................................................... 13-80
nextDay() ........................................................................................................................................ 13-80
operator=() ..................................................................................................................................... 13-81
operator==()................................................................................................................................... 13-81
operator!=() .................................................................................................................................... 13-81
operator>() ..................................................................................................................................... 13-82
operator>=()................................................................................................................................... 13-82
operator<() ..................................................................................................................................... 13-82
operator<=()................................................................................................................................... 13-83
setDate().......................................................................................................................................... 13-83
setNull() .......................................................................................................................................... 13-83
toBytes().......................................................................................................................................... 13-84
toText()............................................................................................................................................ 13-84
toZone() .......................................................................................................................................... 13-84
Environment Class .............................................................................................................................. 13-86
createConnection() ....................................................................................................................... 13-87
createConnectionPool() ................................................................................................................ 13-88
createEnvironment() .................................................................................................................... 13-89
createStatelessConnectionPool() ................................................................................................. 13-90
enableSubscription() ..................................................................................................................... 13-91
disableSubscription() .................................................................................................................... 13-91
getCacheMaxSize()........................................................................................................................ 13-91
getCacheOptSize()......................................................................................................................... 13-91
getCacheSortedFlush() ................................................................................................................. 13-92
getCurrentHeapSize()................................................................................................................... 13-92
getLDAPAdminContext()............................................................................................................ 13-92
getLDAPAuthentication()............................................................................................................ 13-92
getLDAPHost().............................................................................................................................. 13-92
getLDAPPort()............................................................................................................................... 13-92
getMap() ......................................................................................................................................... 13-92
getOCIEnvironment()................................................................................................................... 13-93
getXAConnection() ....................................................................................................................... 13-93
getXAEnvironment() .................................................................................................................... 13-93
releaseXAConnection()..........................................................................................................
....... 13-93
releaseXAEnvironment().............................................................................................................. 13-94
setCacheMaxSize() ........................................................................................................................ 13-94
setCacheOptSize() ......................................................................................................................... 13-94
setCacheSortedFlush().................................................................................................................. 13-94
setLDAPAdminContext()............................................................................................................. 13-95
setLDAPAuthentication() ............................................................................................................ 13-95
setLDAPHostAndPort() ............................................................................................................... 13-95
setLDAPLoginNameAndPassword()......................................................................................... 13-96
terminateConnection().................................................................................................................. 13-96
terminateConnectionPool().......................................................................................................... 13-96
terminateEnvironment()............................................................................................................... 13-96
terminateStatelessConnectionPool()........................................................................................... 13-97
IntervalDS Class.................................................................................................................................. 13-98
xvii
IntervalDS().................................................................................................................................. 13-100
fromText()..................................................................................................................................... 13-100
fromUText().................................................................................................................................. 13-101
getDay() ........................................................................................................................................ 13-101
getFracSec() .................................................................................................................................. 13-101
getHour() ...................................................................................................................................... 13-101
getMinute()................................................................................................................................... 13-101
getSecond()................................................................................................................................... 13-102
isNull() .......................................................................................................................................... 13-102
operator*() .................................................................................................................................... 13-102
operator*=().................................................................................................................................. 13-102
operator=() ................................................................................................................................... 13-102
operator==() ................................................................................................................................. 13-103
operator!=() .................................................................................................................................. 13-103
operator/() ................................................................................................................................... 13-103
operator/=() ................................................................................................................................. 13-104
operator>() ................................................................................................................................... 13-104
operator>=() ................................................................................................................................. 13-104
operator<() ................................................................................................................................... 13-104
operator<=() ................................................................................................................................. 13-105
operator-()..................................................................................................................................... 13-105
operator-=() ................................................................................................................................. 13-105
operator+() ................................................................................................................................... 13-106
operator+=() ................................................................................................................................. 13-106
set() ................................................................................................................................................ 13-106
setNull()........................................................................................................................................ 13-107
toText().......................................................................................................................................... 13-107
toUText()....................................................................................................................................... 13-107
IntervalYM Class............................................................................................................................... 13-108
IntervalYM()................................................................................................................................. 13-109
fromText()..................................................................................................................................... 13-110
fromUText().................................................................................................................................. 13-110
getMonth()....................................................................................................................................
13-111
getYear() ....................................................................................................................................... 13-111
isNull() .......................................................................................................................................... 13-111
operator*() .................................................................................................................................... 13-111
operator*=().................................................................................................................................. 13-111
operator=() ................................................................................................................................... 13-112
operator==() ................................................................................................................................. 13-112
operator!=() .................................................................................................................................. 13-112
operator/() ................................................................................................................................... 13-112
operator/=() ................................................................................................................................. 13-113
operator>() ................................................................................................................................... 13-113
operator>=() ................................................................................................................................. 13-113
operator<() ................................................................................................................................... 13-114
operator<=() ................................................................................................................................. 13-114
operator-()..................................................................................................................................... 13-114
xviii
operator-=() ................................................................................................................................. 13-115
operator+() ................................................................................................................................... 13-115
operator+=()................................................................................................................................. 13-115
set() ................................................................................................................................................ 13-115
setNull() ........................................................................................................................................ 13-116
toText().......................................................................................................................................... 13-116
toUText()....................................................................................................................................... 13-116
Listener Class ..................................................................................................................................... 13-117
Listener()....................................................................................................................................... 13-117
getAgentList() .............................................................................................................................. 13-117
getTimeOutForListen()............................................................................................................... 13-118
listen() ........................................................................................................................................... 13-118
setAgentList()............................................................................................................................... 13-118
setTimeOutForListen() ............................................................................................................... 13-118
Map Class............................................................................................................................................ 13-119
put()............................................................................................................................................... 13-119
Message Class .................................................................................................................................... 13-120
Message()...................................................................................................................................... 13-121
getAnyData()................................................................................................................................ 13-121
getAttemptsToDequeue() .......................................................................................................... 13-122
getBytes()...................................................................................................................................... 13-122
getCorrelationId()........................................................................................................................ 13-122
getDelay() ..................................................................................................................................... 13-122
getExceptionQueueName() ....................................................................................................... 13-122
getExpiration()............................................................................................................................. 13-122
getMessageEnqueuedTime() ..................................................................................................... 13-123
getMessageState()........................................................................................................................ 13-123
getObject() .................................................................................................................................... 13-123
getOriginalMessageId().............................................................................................................. 13-123
getPayloadType() ........................................................................................................................ 13-123
getPriority().................................................................................................................................. 13-123
getSenderId() ............................................................................................................................... 13-124
isNull() .......................................................................................................................................... 13-124
operator=() ................................................................................................................................... 13-124
setAnyData() ................................................................................................................................ 13-124
setBytes()....................................................................................................................................... 13-124
setCorrelationId()........................................................................................................................ 13-125
setDelay()...................................................................................................................................... 13-125
setExceptionQueueName()........................................................................................................ 13-125
setExpiration() ............................................................................................................................. 13-126
setNull() ........................................................................................................................................ 13-126
setObject()..................................................................................................................................... 13-126
setOriginalMessageId() .............................................................................................................. 13-126
setPriority() .................................................................................................................................. 13-127
setRecipientList()......................................................................................................................... 13-127
setSenderId()................................................................................................................................ 13-127
MetaData Class .................................................................................................................................. 13-128
xix
MetaData().................................................................................................................................... 13-137
getAttributeCount() .................................................................................................................... 13-137
getAttributeId() ........................................................................................................................... 13-137
getAttributeType() ...................................................................................................................... 13-137
getBoolean() ................................................................................................................................. 13-138
getInt()........................................................................................................................................... 13-138
getMetaData() .............................................................................................................................. 13-138
getNumber()................................................................................................................................. 13-139
getRef().......................................................................................................................................... 13-139
getString()..................................................................................................................................... 13-139
getTimeStamp() ........................................................................................................................... 13-139
getUInt() ....................................................................................................................................... 13-140
getUString().................................................................................................................................. 13-140
getVector().................................................................................................................................... 13-140
operator=() ................................................................................................................................... 13-140
NotifyResult Class ............................................................................................................................ 13-142
getConsumerName() .................................................................................................................. 13-142
getMessage() ................................................................................................................................ 13-142
getMessageId()............................................................................................................................. 13-142
getPayload() ................................................................................................................................. 13-142
getQueueName()......................................................................................................................... 13-142
Number Class..................................................................................................................................... 13-143
Number() ...................................................................................................................................... 13-146
abs() ............................................................................................................................................... 13-147
arcCos()......................................................................................................................................... 13-147
arcSin() .......................................................................................................................................... 13-147
arcTan()......................................................................................................................................... 13-147
arcTan2()....................................................................................................................................... 13-148
ceil()............................................................................................................................................... 13-148
cos() ............................................................................................................................................... 13-148
exp()............................................................................................................................................... 13-148
floor()............................................................................................................................................. 13-148
fromBytes()................................................................................................................................... 13-148
fromText().....................................................................................................................
................ 13-149
hypCos() ....................................................................................................................................... 13-149
hypSin() ........................................................................................................................................ 13-150
hypTan() ....................................................................................................................................... 13-150
intPower()..................................................................................................................................... 13-150
isNull() .......................................................................................................................................... 13-150
ln().................................................................................................................................................. 13-150
log() ............................................................................................................................................... 13-150
operator++() ................................................................................................................................. 13-151
operator--() ................................................................................................................................. 13-151
operator*() .................................................................................................................................... 13-151
operator/() ................................................................................................................................... 13-152
operator%() .................................................................................................................................. 13-152
operator+() ................................................................................................................................... 13-152
xx
operator-()..................................................................................................................................... 13-152
operator-()..................................................................................................................................... 13-153
operator<() ................................................................................................................................... 13-153
operator<=()................................................................................................................................. 13-153
operator>() ................................................................................................................................... 13-154
operator>=()................................................................................................................................. 13-154
operator==()................................................................................................................................. 13-154
operator!=() .................................................................................................................................. 13-155
operator=() ................................................................................................................................... 13-155
operator*=().................................................................................................................................. 13-155
operator/=()................................................................................................................................. 13-155
operator%=() ................................................................................................................................ 13-156
operator+=()................................................................................................................................. 13-156
operator-=() ................................................................................................................................. 13-156
operator char() ............................................................................................................................. 13-156
operator signed char() ................................................................................................................ 13-157
operator double()......................................................................................................................... 13-157
operator float()............................................................................................................................. 13-157
operator int() ................................................................................................................................ 13-157
operator long()............................................................................................................................. 13-157
operator long double()................................................................................................................ 13-157
operator short()............................................................................................................................ 13-158
operator unsigned char()............................................................................................................ 13-158
operator unsigned int()............................................................................................................... 13-158
operator unsigned long() ........................................................................................................... 13-158
operator unsigned short() .......................................................................................................... 13-158
power().......................................................................................................................................... 13-158
prec() ............................................................................................................................................. 13-159
round() .......................................................................................................................................... 13-159
setNull() ........................................................................................................................................ 13-159
shift() ............................................................................................................................................. 13-159
sign().............................................................................................................................................. 13-160
sin()................................................................................................................................................ 13-160
squareroot().................................................................................................................................. 13-160
tan() ............................................................................................................................................... 13-160
toBytes()........................................................................................................................................ 13-160
toText().......................................................................................................................................... 13-160
trunc()............................................................................................................................................ 13-161
PObject Class ..................................................................................................................................... 13-162
PObject() ....................................................................................................................................... 13-163
flush() ............................................................................................................................................ 13-163
getConnection() ........................................................................................................................... 13-163
getRef().......................................................................................................................................... 13-163
getSQLTypeName() .................................................................................................................... 13-164
isLocked() ..................................................................................................................................... 13-164
isNull() .......................................................................................................................................... 13-164
lock().............................................................................................................................................. 13-164
剩余509页未读,继续阅读
2013-06-09 上传
2009-10-21 上传
2013-07-15 上传
2017-03-29 上传
2023-06-18 上传
2013-02-22 上传
点击了解资源详情
点击了解资源详情
点击了解资源详情
lixueyong1981
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Angular实现MarcHayek简历展示应用教程
- Crossbow Spot最新更新 - 获取Chrome扩展新闻
- 量子管道网络优化与Python实现
- Debian系统中APT缓存维护工具的使用方法与实践
- Python模块AccessControl的Windows64位安装文件介绍
- 掌握最新*** Fisher资讯,使用Google Chrome扩展
- Ember应用程序开发流程与环境配置指南
- EZPCOpenSDK_v5.1.2_build***版本更新详情
- Postcode-Finder:利用JavaScript和Google Geocode API实现
- AWS商业交易监控器:航线行为分析与营销策略制定
- AccessControl-4.0b6压缩包详细使用教程
- Python编程实践与技巧汇总
- 使用Sikuli和Python打造颜色求解器项目
- .Net基础视频教程:掌握GDI绘图技术
- 深入理解数据结构与JavaScript实践项目
- 双子座在线裁判系统:提高编程竞赛效率
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功