没有合适的资源?快使用搜索试试~ 我知道了~
首页Oracle C++ Call Interface Programmer's Guide for 10g Release 2
Oracle C++ Call Interface Programmer's Guide for 10g Release 2
4星 · 超过85%的资源 需积分: 10 5 下载量 174 浏览量
更新于2024-07-29
收藏 8.08MB PDF 举报
"Oracle C++ Call Interface是Oracle公司提供的一种API,用于C++开发者与Oracle数据库进行交互。该接口提供了丰富的功能,使得程序员能够用C++语言高效地执行SQL语句、管理数据库连接、处理结果集等操作。文档《Oracle C++ Call Interface Programmer's Guide 10g Release 2 (10.2) B14294-02》由Roza Leyderman为主的一系列作者编写,并在2005年12月发布。文档详细阐述了如何使用Oracle C++ API进行数据库编程,并包含版权信息和使用限制。"
Oracle C++ Call Interface(OCCI)是Oracle数据库提供的一种C++编程接口,它允许开发人员利用C++的强大特性和效率来访问和操作Oracle数据库。OCCI的核心目标是简化数据库应用程序的开发,提高性能,同时保持代码的可读性和可维护性。
1. **连接管理**:OCCI提供了连接池的概念,可以有效地管理数据库连接,减少创建和销毁连接的开销。开发人员可以创建、获取和释放连接,以适应不同的应用程序需求。
2. **SQL执行**:通过OCCI,C++程序员可以直接执行SQL语句,包括DML(数据操纵语言)和DDL(数据定义语言)。此外,还可以使用预编译的SQL语句以提高性能。
3. **结果集处理**:OCCI支持对查询结果的迭代处理,可以方便地遍历和提取结果集中的每一行数据。它提供了游标(Cursor)对象来管理和移动结果集。
4. **事务处理**:OCCI允许开发人员控制事务的开始、提交、回滚等操作,以确保数据的一致性和完整性。
5. **异常处理**:Oracle C++ API提供了异常处理机制,当数据库操作出现错误时,会抛出相应的异常,便于程序捕获和处理。
6. **类型映射**:OCCI将Oracle数据库的数据类型映射到C++的数据类型,使得在数据库和应用程序之间传输数据更加便捷。
7. **对象关系映射**:对于支持的对象关系数据库,OCCI允许直接操作数据库中的对象,包括对象类型、集合类型等。
8. **安全性**:OCCI提供了安全的认证和授权机制,允许开发者根据需要设置访问权限。
9. **性能优化**:OCCI支持绑定变量和批处理,这两种技术都可以显著提升数据库操作的性能。
10. **兼容性**:OCCI接口设计考虑了与其他软件的互操作性,允许开发者与其他独立创建的软件协同工作,如需要获取与非Oracle系统的兼容性。
文档《Oracle C++ Call Interface Programmer's Guide》详细介绍了这些概念和使用方法,包括示例代码,帮助开发者快速上手并熟练掌握OCCI。在使用过程中,如果遇到文档中未涵盖的问题,用户可以通过书面形式向Oracle公司报告。
xvi
operator*=().................................................................................................................................... 12-99
operator=() ..................................................................................................................................... 12-99
operator==()................................................................................................................................... 12-99
operator!=() .................................................................................................................................. 12-100
operator/() ................................................................................................................................... 12-100
operator/=()................................................................................................................................. 12-100
operator>() ................................................................................................................................... 12-101
operator>=()................................................................................................................................. 12-101
operator<() ................................................................................................................................... 12-101
operator<=()................................................................................................................................. 12-102
operator-()..................................................................................................................................... 12-102
operator-=() ................................................................................................................................. 12-102
operator+() ................................................................................................................................... 12-102
operator+=()................................................................................................................................. 12-103
set() ................................................................................................................................................ 12-103
setNull() ........................................................................................................................................ 12-103
toText().......................................................................................................................................... 12-103
toUText()....................................................................................................................................... 12-104
IntervalYM Class............................................................................................................................... 12-105
IntervalYM()................................................................................................................................. 12-106
fromText()..................................................................................................................................... 12-107
fromUText().................................................................................................................................. 12-107
getMonth().................................................................................................................................... 12-108
getYear() ....................................................................................................................................... 12-108
isNull() .......................................................................................................................................... 12-108
operator*() .................................................................................................................................... 12-108
operator*=().................................................................................................................................. 12-108
operator=() ................................................................................................................................... 12-108
operator==()................................................................................................................................. 12-109
operator!=() .................................................................................................................................. 12-109
operator/() ................................................................................................................................... 12-109
operator/=()................................................................................................................................. 12-110
operator>() ...................................................................................................................................
12-110
operator>=()................................................................................................................................. 12-110
operator<() ................................................................................................................................... 12-111
operator<=()................................................................................................................................. 12-111
operator-()..................................................................................................................................... 12-111
operator-=() ................................................................................................................................. 12-111
operator+() ................................................................................................................................... 12-112
operator+=()................................................................................................................................. 12-112
set() ................................................................................................................................................ 12-112
setNull() ........................................................................................................................................ 12-112
toText().......................................................................................................................................... 12-113
toUText()....................................................................................................................................... 12-113
Listener Class ..................................................................................................................................... 12-114
Listener()....................................................................................................................................... 12-114
getAgentList() .............................................................................................................................. 12-114
xvii
getTimeOutForListen()............................................................................................................... 12-115
listen() ........................................................................................................................................... 12-115
setAgentList()............................................................................................................................... 12-115
setTimeOutForListen() ............................................................................................................... 12-115
Map Class............................................................................................................................................ 12-116
put()............................................................................................................................................... 12-116
Message Class .................................................................................................................................... 12-117
Message()...................................................................................................................................... 12-118
getAnyData() ............................................................................................................................... 12-118
getAttemptsToDequeue() .......................................................................................................... 12-118
getBytes()...................................................................................................................................... 12-119
getCorrelationId()........................................................................................................................ 12-119
getDelay() ..................................................................................................................................... 12-119
getExceptionQueueName() ....................................................................................................... 12-119
getExpiration()............................................................................................................................. 12-119
getMessageEnqueuedTime() ..................................................................................................... 12-119
getMessageState()........................................................................................................................ 12-120
getObject() .................................................................................................................................... 12-120
getOriginalMessageId().............................................................................................................. 12-120
getPayloadType() ........................................................................................................................ 12-120
getPriority().................................................................................................................................. 12-120
getSenderId() ............................................................................................................................... 12-120
isNull() .......................................................................................................................................... 12-120
operator=() ................................................................................................................................... 12-121
setAnyData()................................................................................................................................ 12-121
setBytes()....................................................................................................................................... 12-121
setCorrelationId()........................................................................................................................ 12-121
setDelay()...................................................................................................................................... 12-122
setExceptionQueueName()........................................................................................................ 12-122
setExpiration() ............................................................................................................................. 12-122
setNull()........................................................................................................................................ 12-123
setObject()..................................................................................................................................... 12-123
setOriginalMessageId() .............................................................................................................. 12-123
setPriority() .................................................................................................................................. 12-123
setRecipientList()......................................................................................................................... 12-124
setSenderId()................................................................................................................................ 12-124
MetaData Class .................................................................................................................................. 12-125
MetaData().................................................................................................................................... 12-134
getAttributeCount() .................................................................................................................... 12-134
getAttributeId() ........................................................................................................................... 12-134
getAttributeType() ...................................................................................................................... 12-134
getBoolean() ................................................................................................................................. 12-135
getInt()........................................................................................................................................... 12-135
getMetaData() .............................................................................................................................. 12-135
getNumber()................................................................................................................................. 12-135
getRef().......................................................................................................................................... 12-136
getString()..................................................................................................................................... 12-136
xviii
getTimeStamp() ........................................................................................................................... 12-136
getUInt() ....................................................................................................................................... 12-136
getUString().................................................................................................................................. 12-137
getVector().................................................................................................................................... 12-137
operator=() ................................................................................................................................... 12-137
NotifyResult Class ............................................................................................................................ 12-138
getConsumerName() .................................................................................................................. 12-138
getMessage() ................................................................................................................................ 12-138
getMessageId()............................................................................................................................. 12-138
getPayload() ................................................................................................................................. 12-138
getQueueName()......................................................................................................................... 12-138
Number Class..................................................................................................................................... 12-139
Number() ...................................................................................................................................... 12-142
abs() ............................................................................................................................................... 12-143
arcCos()......................................................................................................................................... 12-143
arcSin() .......................................................................................................................................... 12-143
arcTan()......................................................................................................................................... 12-143
arcTan2()....................................................................................................................................... 12-143
ceil()............................................................................................................................................... 12-144
cos() ............................................................................................................................................... 12-144
exp()............................................................................................................................................... 12-144
floor()............................................................................................................................................. 12-144
fromBytes()................................................................................................................................... 12-144
fromText()..................................................................................................................................... 12-145
hypCos() ....................................................................................................................................... 12-145
hypSin() ........................................................................................................................................ 12-145
hypTan() ....................................................................................................................................... 12-145
intPower()..................................................................................................................................... 12-146
isNull() .......................................................................................................................................... 12-146
ln().................................................................................................................................................. 12-146
log() ............................................................................................................................................... 12-146
operator++()................................................................................................................................. 12-146
operator--() .................................................................................................................................
12-147
operator*() .................................................................................................................................... 12-147
operator/() ................................................................................................................................... 12-147
operator%()................................................................................................................................... 12-148
operator+() ................................................................................................................................... 12-148
operator-()..................................................................................................................................... 12-148
operator-()..................................................................................................................................... 12-148
operator<() ................................................................................................................................... 12-149
operator<=()................................................................................................................................. 12-149
operator>() ................................................................................................................................... 12-149
operator>=()................................................................................................................................. 12-150
operator==()................................................................................................................................. 12-150
operator!=() .................................................................................................................................. 12-150
operator=() ................................................................................................................................... 12-151
operator*=().................................................................................................................................. 12-151
xix
operator/=() ................................................................................................................................. 12-151
operator%=() ................................................................................................................................ 12-151
operator+=() ................................................................................................................................. 12-152
operator-=() ................................................................................................................................. 12-152
operator char() ............................................................................................................................. 12-152
operator signed char() ................................................................................................................ 12-152
operator double()......................................................................................................................... 12-152
operator float()............................................................................................................................. 12-153
operator int() ................................................................................................................................ 12-153
operator long()............................................................................................................................. 12-153
operator long double()................................................................................................................ 12-153
operator short()............................................................................................................................ 12-153
operator unsigned char()............................................................................................................ 12-153
operator unsigned int()............................................................................................................... 12-154
operator unsigned long() ........................................................................................................... 12-154
operator unsigned short() .......................................................................................................... 12-154
power().......................................................................................................................................... 12-154
prec() ............................................................................................................................................. 12-154
round() .......................................................................................................................................... 12-155
setNull()........................................................................................................................................ 12-155
shift() ............................................................................................................................................. 12-155
sign().............................................................................................................................................. 12-155
sin()................................................................................................................................................ 12-155
squareroot().................................................................................................................................. 12-156
tan() ............................................................................................................................................... 12-156
toBytes()........................................................................................................................................ 12-156
toText().......................................................................................................................................... 12-156
trunc()............................................................................................................................................ 12-157
PObject Class ..................................................................................................................................... 12-158
PObject() ....................................................................................................................................... 12-159
flush() ............................................................................................................................................ 12-159
getConnection() ........................................................................................................................... 12-159
getRef()..........................................................................................................................................
12-159
getSQLTypeName() .................................................................................................................... 12-160
isLocked() ..................................................................................................................................... 12-160
isNull() .......................................................................................................................................... 12-160
lock().............................................................................................................................................. 12-160
markDelete() ................................................................................................................................ 12-160
markModified() ........................................................................................................................... 12-160
operator=() ................................................................................................................................... 12-161
operator delete() .......................................................................................................................... 12-161
operator new() ............................................................................................................................. 12-161
pin() ............................................................................................................................................... 12-162
setNull()........................................................................................................................................ 12-162
unmark()....................................................................................................................................... 12-162
unpin() .......................................................................................................................................... 12-162
Producer Class.................................................................................................................................... 12-164
xx
Producer()..................................................................................................................................... 12-165
getQueueName()......................................................................................................................... 12-165
getRelativeMessageId() .............................................................................................................. 12-165
getSequenceDeviation().............................................................................................................. 12-165
getTransformation().................................................................................................................... 12-165
getVisibility() ............................................................................................................................... 12-166
isNull() .......................................................................................................................................... 12-166
operator=() ................................................................................................................................... 12-166
send()............................................................................................................................................. 12-166
setNull() ........................................................................................................................................ 12-167
setQueueName().......................................................................................................................... 12-167
setRelativeMessageId()............................................................................................................... 12-167
setSequenceDeviation() .............................................................................................................. 12-167
setTransformation() .................................................................................................................... 12-168
setVisibility()................................................................................................................................ 12-168
Ref Class.............................................................................................................................................. 12-169
Ref() ............................................................................................................................................... 12-170
clear()............................................................................................................................................. 12-170
getConnection() ........................................................................................................................... 12-170
isClear()......................................................................................................................................... 12-170
isNull() .......................................................................................................................................... 12-170
markDelete() ................................................................................................................................ 12-171
operator->() .................................................................................................................................. 12-171
operator*() .................................................................................................................................... 12-171
operator==()................................................................................................................................. 12-171
operator!=() .................................................................................................................................. 12-172
operator=() ................................................................................................................................... 12-172
ptr()................................................................................................................................................ 12-172
setLock() ....................................................................................................................................... 12-172
setNull() ........................................................................................................................................ 12-173
setPrefetch().................................................................................................................................. 12-173
unmarkDelete()............................................................................................................................ 12-173
RefAny Class...................................................................................................................................... 12-174
RefAny() ....................................................................................................................................... 12-174
clear()............................................................................................................................................. 12-174
getConnection() ........................................................................................................................... 12-175
isNull() .......................................................................................................................................... 12-175
markDelete() ................................................................................................................................ 12-175
operator=() ................................................................................................................................... 12-175
operator==()................................................................................................................................. 12-175
operator!=() .................................................................................................................................. 12-176
unmarkDelete()............................................................................................................................ 12-176
ResultSet Class................................................................................................................................... 12-177
cancel() ......................................................................................................................................... 12-179
closeStream()................................................................................................................................ 12-179
getBDouble() ................................................................................................................................ 12-180
getBfile()........................................................................................................................................ 12-180
剩余473页未读,继续阅读
2016-12-22 上传
2008-07-30 上传
2011-02-21 上传
2012-01-21 上传
2013-02-22 上传
2013-07-15 上传
2023-06-18 上传
点击了解资源详情
点击了解资源详情
lifuxin1125
- 粉丝: 14
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的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直接复制
信息提交成功