低版本Oracle

处处留心 2015-08-07 03:42:31
我用的Oci连接Oracle
#define OTL_ORA8I

现在碰到一种情况,有的Oracle数据库连不上,据客户说,是版本很低的Oracle。 PLSQL都连不上
现在我有几个问题不懂,请指教:
1.Oracle的哪个版本以下,PLSQL连不上
2.Oracle的OCI连接,我看到otlv4.h中支持很多版本,但每一个版本定义的宏不一样。有没有通用的连接方式可以支持所有版本的?如果没有,我这种问题怎么处理比较好呢?
//======================= CONFIGURATION #DEFINEs ===========================

// Uncomment the following line in order to include the OTL for ODBC:
//#define OTL_ODBC

// Uncomment the following line in order to include the OTL for
// MySQL/MyODBC for MyODBC 2.5 (pretty old). Otherwise, use OTL_ODBC
//#define OTL_ODBC_MYSQL

// Uncomment the following line in order to include the OTL for DB2 CLI:
//#define OTL_DB2_CLI

// Uncomment the following line in order to include the OTL for
// Oracle 7:
//#define OTL_ORA7

// Uncomment the following line in order to include the OTL for
// Oracle 8:
//#define OTL_ORA8

// Uncomment the following line in order to include the OTL for
// Oracle 8i:
//#define OTL_ORA8I

// Uncomment the following line in order to include the OTL for
// Oracle 9i:
//#define OTL_ORA9I

// Uncomment the following line in order to include the OTL for
// Oracle 10g Release 1:
//#define OTL_ORA10G

// Uncomment the following line in order to include the OTL for
// Oracle 10g Release 2:
//#define OTL_ORA10G_R2

// Uncomment the following line in order to include the OTL for
// Oracle 11g Release 1
//#define OTL_ORA11G


// The macro definitions may be also turned on via C++ compiler command line
// option, e.g.: -DOTL_ODBC, -DOTL_ORA7, -DOTL_ORA8, -DOTL_ORA8I, -DOTL_ODBC_UNIX
// -DOTL_ODBC_MYSQL, -DOTL_DB2_CLI
...全文
217 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
lzp982163212 2015-08-11
  • 打赏
  • 举报
回复
引用 6 楼 luxiaolai861227 的回复:
[quote=引用 5 楼 lzp982163212 的回复:] [quote=引用 4 楼 luxiaolai861227 的回复:] [quote=引用 3 楼 lzp982163212 的回复:] http://www.2cto.com/database/201109/102412.html 这里有你想要的
谢谢!我的事windows 下C++的[/quote] pl sql 需要你安装了oracle 的客户端,而且要正确配置tnsnames这个文件 也就是所谓的监听 PLSQL 里工具--首选项里要配置oracle主目录名 你试试看[/quote] 配置我会,其他的Oracle库都可以连上,客户说的是一个Oracle8的连不上[/quote] PLSQL Developer并不支持Oracle 64位客户端连接,你可以确认一下
处处留心 2015-08-11
  • 打赏
  • 举报
回复
引用 5 楼 lzp982163212 的回复:
[quote=引用 4 楼 luxiaolai861227 的回复:] [quote=引用 3 楼 lzp982163212 的回复:] http://www.2cto.com/database/201109/102412.html 这里有你想要的
谢谢!我的事windows 下C++的[/quote] pl sql 需要你安装了oracle 的客户端,而且要正确配置tnsnames这个文件 也就是所谓的监听 PLSQL 里工具--首选项里要配置oracle主目录名 你试试看[/quote] 配置我会,其他的Oracle库都可以连上,客户说的是一个Oracle8的连不上
卖水果的net 2015-08-10
  • 打赏
  • 举报
回复
不懂 OCI,LZ 可在到itpub 上去问问,那边有人研究这个。
lzp982163212 2015-08-10
  • 打赏
  • 举报
回复
引用 4 楼 luxiaolai861227 的回复:
[quote=引用 3 楼 lzp982163212 的回复:] http://www.2cto.com/database/201109/102412.html 这里有你想要的
谢谢!我的事windows 下C++的[/quote] pl sql 需要你安装了oracle 的客户端,而且要正确配置tnsnames这个文件 也就是所谓的监听 PLSQL 里工具--首选项里要配置oracle主目录名 你试试看
处处留心 2015-08-10
  • 打赏
  • 举报
回复
引用 3 楼 lzp982163212 的回复:
http://www.2cto.com/database/201109/102412.html 这里有你想要的
谢谢!我的事windows 下C++的
lzp982163212 2015-08-10
  • 打赏
  • 举报
回复
http://www.2cto.com/database/201109/102412.html 这里有你想要的
处处留心 2015-08-10
  • 打赏
  • 举报
回复
引用 1 楼 wmxcn2000 的回复:
不懂 OCI,LZ 可在到itpub 上去问问,那边有人研究这个。
谢谢!

17,090

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧