- 浏览: 981506 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
孤星119:
好熟悉的数据库字段啊, 上家公司做的项目每天都跟这些字段打招呼 ...
Oracle exp compress参数引起的空间浪费 -
itspace:
quxiaoyong 写道遇到个问题,网上一搜,全他妈这篇文章 ...
数据库连接错误ORA-28547 -
quxiaoyong:
遇到个问题,网上一搜,全他妈这篇文章。你转来转去的有意思吗?
数据库连接错误ORA-28547 -
hctech:
关于version count过高的问题,不知博主是否看过ey ...
某客户数据库性能诊断报告 -
itspace:
invalid 写道写的不错,我根据这个来安装,有点理解错误了 ...
AIX 配置vncserver
主机环境:
WINDOWS 2008 X64+ORACLE 11G R2 x64+CYGWIN
初始安装时报以下错误:
经检查ORACLE 11G x64没有lib32目录,将ORACLE 11G 32bit的lib目录拷贝至ORACLE 11G x64的ORACLE_HOME下,取名为lib32,同时设置环境变量,再次安装时报如下错误
安装win32_11gR2_client.zip,同时修改环境变量,ORACLE_HOME。LD_LIBARAY_PATH。报如下错误:
将ORACLE 11G WIN32的OCI目录下面的子目录拷贝至/cygdrive/c/app/Administrator/product/11.2.0/client_1/sdk下安装成功
运行require,报错
可以看到ruby-oci8已经成功安装
将/cygdrive/c/app/Administrator/product/11.2.0/client_1/的oci.dll拷贝至tmp目录,环境变量恢复ORACLE 11G X64,在PATH前面加上/tmp,再次require
如果直接替换64位的oci.dll,会报如下错误
WINDOWS 2008 X64+ORACLE 11G R2 x64+CYGWIN
初始安装时报以下错误:
引用
$ gem install -l --no-doc --no-ri ruby-oci8-1.0.2.gem
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8-1.0.2.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
checking for load library path... (PATH)...
not found
checking for cc... ok
checking for gcc... yes
checking for LP64... no
checking for ruby header... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-instant-client
--without-instant-client
./oraconf.rb:642:in `get_home': RuntimeError (RuntimeError)
from ./oraconf.rb:520:in `initialize'
from ./oraconf.rb:238:in `new'
from ./oraconf.rb:238:in `get'
from extconf.rb:24
ok
---------------------------------------------------
error messages:
Set the environment variable ORACLE_HOME if Oracle Full Client.
Append the path of Oracle client libraries to PATH if Oracle Instant Client.
---------------------------------------------------
See:
* http://ruby-oci8.rubyforge.org/en/HowToInstall.html
* http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8-1.0.2.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
checking for load library path... (PATH)...
not found
checking for cc... ok
checking for gcc... yes
checking for LP64... no
checking for ruby header... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-instant-client
--without-instant-client
./oraconf.rb:642:in `get_home': RuntimeError (RuntimeError)
from ./oraconf.rb:520:in `initialize'
from ./oraconf.rb:238:in `new'
from ./oraconf.rb:238:in `get'
from extconf.rb:24
ok
---------------------------------------------------
error messages:
Set the environment variable ORACLE_HOME if Oracle Full Client.
Append the path of Oracle client libraries to PATH if Oracle Instant Client.
---------------------------------------------------
See:
* http://ruby-oci8.rubyforge.org/en/HowToInstall.html
* http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html
经检查ORACLE 11G x64没有lib32目录,将ORACLE 11G 32bit的lib目录拷贝至ORACLE 11G x64的ORACLE_HOME下,取名为lib32,同时设置环境变量,再次安装时报如下错误
引用
$ gem install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8-1.0.2.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
checking for load library path... (PATH)...
not found
checking for cc... ok
checking for gcc... yes
checking for LP64... no
checking for ruby header... ok
Get the version of Oracle from SQL*Plus... 1120
checking for OCIInitialize() in oci.h... no
nm: OCI.dll: File format not recognized
nm: OCI.dll: File format not recognized
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized...
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8-1.0.2.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
checking for load library path... (PATH)...
not found
checking for cc... ok
checking for gcc... yes
checking for LP64... no
checking for ruby header... ok
Get the version of Oracle from SQL*Plus... 1120
checking for OCIInitialize() in oci.h... no
nm: OCI.dll: File format not recognized
nm: OCI.dll: File format not recognized
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized
BFD: /cygdrive/c/app/Administrator/product/11.2.0/dbhome_1/OCI/LIB/MSVC/OCI.LIB(OCI.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: OCI.dll: File format not recognized...
安装win32_11gR2_client.zip,同时修改环境变量,ORACLE_HOME。LD_LIBARAY_PATH。报如下错误:
引用
$ gem install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8-1.0.2.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
checking for load library path... (PATH)...
found: /cygdrive/c/app/Administrator/product/11.2.0/client_1/oci.dll looks like an instant client.
checking for cc... ok
checking for gcc... yes
checking for LP64... no
checking for ruby header... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-instant-client
--without-instant-client
./oraconf.rb:863:in `initialize': RuntimeError (RuntimeError)
from ./oraconf.rb:236:in `new'
from ./oraconf.rb:236:in `get'
from extconf.rb:24
ok
---------------------------------------------------
error messages:
Could not compile with Oracle instant client.
/cygdrive/c/app/Administrator/product/11.2.0/client_1/sdk/lib/msvc/oci.lib could not be found.
---------------------------------------------------
See:
* http://ruby-oci8.rubyforge.org/en/HowToInstall.html
* http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/ext/oci8/gem_make.out
Administrator@BF /cygdrive/c/dbra/app/softs
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8-1.0.2.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
checking for load library path... (PATH)...
found: /cygdrive/c/app/Administrator/product/11.2.0/client_1/oci.dll looks like an instant client.
checking for cc... ok
checking for gcc... yes
checking for LP64... no
checking for ruby header... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-instant-client
--without-instant-client
./oraconf.rb:863:in `initialize': RuntimeError (RuntimeError)
from ./oraconf.rb:236:in `new'
from ./oraconf.rb:236:in `get'
from extconf.rb:24
ok
---------------------------------------------------
error messages:
Could not compile with Oracle instant client.
/cygdrive/c/app/Administrator/product/11.2.0/client_1/sdk/lib/msvc/oci.lib could not be found.
---------------------------------------------------
See:
* http://ruby-oci8.rubyforge.org/en/HowToInstall.html
* http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/ext/oci8/gem_make.out
Administrator@BF /cygdrive/c/dbra/app/softs
将ORACLE 11G WIN32的OCI目录下面的子目录拷贝至/cygdrive/c/app/Administrator/product/11.2.0/client_1/sdk下安装成功
引用
$ gem install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
Building native extensions. This could take a while...
Successfully installed ruby-oci8-1.0.2
1 gem installed
Administrator@BF /cygdrive/c/dbra/app/softs
$
Building native extensions. This could take a while...
Successfully installed ruby-oci8-1.0.2
1 gem installed
Administrator@BF /cygdrive/c/dbra/app/softs
$
运行require,报错
引用
$ irb
irb(main):001:0> require 'oci8'
LoadError: no such file to load -- oci8
from (irb):1:in `require'
from (irb):1
irb(main):001:0> require 'oci8'
LoadError: no such file to load -- oci8
from (irb):1:in `require'
from (irb):1
可以看到ruby-oci8已经成功安装
引用
$ gem list
*** LOCAL GEMS ***
actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.1.0, 2.0.2)
activerecord-oracle-adapter (1.0.0.9250)
activerecord-oracle_enhanced-adapter (1.1.8)
activeresource (2.0.2)
activesupport (2.1.0, 2.0.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.1)
gem_plugin (0.2.3)
gettext (1.93.0)
hoe (1.8.2)
log4r (1.0.5)
mongrel (1.1.4)
mongrel_cluster (1.0.5)
net-sftp (2.0.1)
net-ssh (2.0.3)
rails (2.0.2)
rake (0.8.3)
ruby-oci8 (1.0.2)
ruby-prof (0.7.3)
rubyforge (1.0.1)
*** LOCAL GEMS ***
actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.1.0, 2.0.2)
activerecord-oracle-adapter (1.0.0.9250)
activerecord-oracle_enhanced-adapter (1.1.8)
activeresource (2.0.2)
activesupport (2.1.0, 2.0.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.1)
gem_plugin (0.2.3)
gettext (1.93.0)
hoe (1.8.2)
log4r (1.0.5)
mongrel (1.1.4)
mongrel_cluster (1.0.5)
net-sftp (2.0.1)
net-ssh (2.0.3)
rails (2.0.2)
rake (0.8.3)
ruby-oci8 (1.0.2)
ruby-prof (0.7.3)
rubyforge (1.0.1)
将/cygdrive/c/app/Administrator/product/11.2.0/client_1/的oci.dll拷贝至tmp目录,环境变量恢复ORACLE 11G X64,在PATH前面加上/tmp,再次require
引用
$ irb
irb(main):001:0> require 'oci8'
=> true
irb(main
irb(main):001:0> require 'oci8'
=> true
irb(main
如果直接替换64位的oci.dll,会报如下错误
引用
$ irb
irb(main):001:0> require 'oci8'
LoadError: Permission denied - /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/lib/oci8lib.so
from /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/lib/oci8lib.so
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/lib/oci8.rb:20
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from (irb):1
irb(main):002:0> exit
irb(main):001:0> require 'oci8'
LoadError: Permission denied - /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/lib/oci8lib.so
from /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/lib/oci8lib.so
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/lib/oci8.rb:20
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from (irb):1
irb(main):002:0> exit
发表评论
-
参加Oracle勒索病毒防范专题培训会议
2019-09-27 17:15 5312019年7月22日,受邀参加Oracle勒索病毒防范专题培训 ... -
selinux引起的ftp故障
2011-10-18 13:11 1492linux开通gssftp之后,客户端连接linux出现以下问 ... -
vmware 网卡hostonly模式不能ping的问题
2010-12-01 11:58 2264因测试需要,开启虚拟机,网卡为hostonly模式,启动之后不 ... -
linux 5 x64上安装基础软件的一些错误修复
2010-11-25 12:23 1816因项目需要,以下为linux as 5 上安装基础软件时一些错 ... -
linux gcc rpm包安装过程
2010-11-25 12:02 4203系统中发现gcc未安装,以下为gcc安装过程中的依赖包 引用[ ... -
linux lvm创建文件系统
2010-11-25 12:00 1718以下仅为安装记录 1、创建lv 引用[root@Linux ~ ... -
linux 5 裸设备绑定
2010-11-17 14:33 1639在以前的redhat版本中,系统通过/etc/sysconfi ... -
oci8
2010-09-10 17:30 1802[dbra@shenjp ruby-oci8-1.0.7]$ ... -
OCI安装错误记录(二)
2010-07-31 15:22 1871由于Oracle 11g R2 X64在windo ... -
sudo安装错误/usr/bin/ld: cannot find -lpam
2010-05-10 17:10 4399centos 5.1版本为 引用[root@rztest su ... -
linux dmidecode 查看硬件信息
2010-03-03 11:21 2243在linux平台可以利用命令dmidecode查看硬件信息,以 ... -
linux 修改时区
2009-12-24 14:46 3432一、修改时区 1、查看当前使用的时区,可以看到当前系统使用美 ... -
linux 划分文件系统
2009-12-24 09:58 1166linux版本为 引用[root@hzmc ~]# uname ... -
tar压缩使用方法
2009-12-10 16:47 2225为了方便用户在打包解包的同时可以压缩或解压文件,tar提供了一 ... -
linux 共享内存段研究
2009-12-09 14:11 5461无论是在unix或者是linux都有命令查看主机共享内存段的使 ... -
Linux显示网卡流量
2009-09-03 14:24 2254Linux操作系统版本为: 引用[root@hzmc tmp] ... -
linux 绑定模式分别为冗余和均衡负载时信息显示
2009-08-19 16:46 1289linux绑定网卡在《linux as 4 bond网卡绑定》 ... -
linux as 4 bond网卡绑定
2009-08-19 15:48 2186理论不赘述,简而言之,网卡绑定就是多张网卡逻辑上作为一张网卡用 ... -
xinetd: unrecognized service
2009-08-17 10:21 13451linux xinetd 服务不能启动: [root@capa ... -
Linux RPM包简介
2009-08-16 15:56 2120安装rpm包十分便捷,省去了很多编译过程,但是很多情况下,我们 ...
相关推荐
6. **错误处理**:在实际应用中,源代码还会包含错误处理机制,例如oci_error函数用于获取错误信息,oci_handle_free释放资源,确保程序在遇到问题时能够正常运行并给出反馈。 7. **测试**:描述中提到示例代码经过...
6. **错误处理**:封装类应有一个良好的错误处理机制,如异常处理,将oci的错误信息转化为易于理解的字符串。 7. **内存管理**:由于OCI API使用了大量指针和内存分配,封装类需要确保正确释放分配的内存,避免内存...
oci.dll 是一个重要的动态链接库(Dynamic Link Library)文件,主要在64位操作系统环境下用于支持Oracle数据库的连接。在Windows系统中,DLL文件提供了一种方式,使得多个应用程序可以共享同一段代码和数据,从而...
OCI提供了丰富的错误处理机制,包括返回码、错误栈和诊断记录。通过`OCIGetError`和`OCIServerVersion`等函数,开发者可以捕获和报告错误信息。 8. 大型对象(LOBs) OCI提供对Oracle的BFILE、BLOB、CLOB和NCLOB...
- **删除(DELETE)**:删除操作是定位一条或多条记录并从表中移除它们,oci案例会包含这一功能的实现。 5. **事务管理**:oci案例可能会涉及到事务的开始、提交和回滚。`OCITransStart`用于开始事务,`...
2. **错误处理**:OCI提供了一个错误句柄(`OCI_HTYPE_ERROR`),用于记录OCI调用时产生的任何错误信息。可以通过`OCIErrorGet()`函数来获取这些错误信息。 3. **服务上下文句柄**(`OCI_HTYPE_SVCCTX`):用于表示...
- **错误句柄 (OCI_HTYPE_ERROR)**:作为某些OCI函数的参数,用于记录这些函数操作过程中产生的错误。 - **服务器环境句柄 (OCI_HTYPE_SVCCTX)**:定义OCI调用的服务器操作环境,包含了服务器、用户会话和事务等句柄...
在IT行业中,Linux操作系统、C语言和Oracle数据库的结合是常见的技术栈,特别是在需要进行高效、底层数据库操作的场景...记住,进行oci编程时,务必正确配置环境,理解oci接口的使用方式,以及正确处理错误和资源管理。
- **错误句柄** (`OCI_HTYPE_ERROR`):作为OCI函数的参数,用于记录函数操作过程中产生的错误。 - **服务器环境句柄** (`OCI_HTYPE_SVCCTX`):定义OCI调用的服务器操作环境,包含了服务器、用户会话和事务等信息。 -...
5. **异常处理**:在处理数据库操作时,oci_class 可能会封装Oracle OCI的错误处理,当出现错误时抛出C++异常,便于开发者捕获和处理。 6. **预编译语句和参数绑定**:oci_class 可能支持预编译SQL语句,提高执行...
lu.txt文件可能是运行oci导出工具时生成的输出日志,记录了导出过程的详细信息,包括成功操作、警告和错误,这对于排查问题和了解导出进度非常有帮助。 oci导出工具的优势在于它可以实现高效的数据导入导出,特别是...
- **错误句柄**: 记录OCI函数调用过程中产生的错误信息。通过`OCIErrorGet()`函数可以从错误句柄中获取具体的错误详情。 - **服务器环境句柄**: 包括服务器、用户会话和事务等不同层次的信息。 - **服务器句柄**: ...
6. 错误处理:在每个关键操作中添加适当的异常处理,捕获并记录Oracle数据库可能出现的错误。 7. 部署注意事项:封装后,虽然应用可以不再依赖Oracle客户端的全局安装,但用户仍需要在机器上安装Oracle Data Access...
oci-oracle.rar_OCI oracle_oci_oracle是一个与Oracle数据库交互的示例,它使用了Oracle Call Interface (OCI)技术来实现一个简单的图书馆管理系统。OCI是Oracle提供的C语言编程接口,允许开发者直接与Oracle数据库...
在开发应用程序时,我们经常需要与数据库进行交互,获取记录总数是一项基本但至关重要的任务。本篇文章将深入探讨如何在Visual C++ 6.0(简称VC6)环境下,利用MFC(Microsoft Foundation Classes)和OO4O(Object ...
错误的连接字符串或配置可能导致oci错误。 6. **权限问题**:运行应用程序的用户需要有足够的权限访问Instant Client的文件和执行网络连接。 解决这个问题的步骤可能包括: 1. 检查并调整系统资源,确保有足够的...
- **OCI错误句柄**(OCI_HTYPE_ERROR):用于记录OCI操作过程中的错误信息,可以通过`OCIErrorGet()`函数获取错误详情。 - **OCI服务上下文句柄**(OCI_HTYPE_SVCCTX):代表与数据库之间的连接。 - **OCI服务器句柄...
- **错误句柄**:用于记录OCI函数调用过程中产生的错误,可通过`COIErrorGet()`获取错误信息。 - **服务器环境句柄**:包含服务器、用户会话和事务信息,是执行数据库操作的主要句柄。 - **服务器句柄**:标识数据源...
8. **错误处理**:oci_error() 可以获取最近一次操作的错误信息,这对于调试和问题定位非常关键。 9. **性能优化**:oci_set_prefetch() 可以调整预取行数,减少网络往返次数;oci_handle_free() 释放不再使用的...