我用的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

解决方案 »

  1.   

    不懂 OCI,LZ 可在到itpub 上去问问,那边有人研究这个。
      

  2.   

    http://www.2cto.com/database/201109/102412.html
    这里有你想要的
      

  3.   

    谢谢!我的事windows 下C++的
      

  4.   

    谢谢!我的事windows 下C++的pl sql 需要你安装了oracle 的客户端,而且要正确配置tnsnames这个文件  也就是所谓的监听   PLSQL 里工具--首选项里要配置oracle主目录名    你试试看
      

  5.   

    谢谢!我的事windows 下C++的pl sql 需要你安装了oracle 的客户端,而且要正确配置tnsnames这个文件  也就是所谓的监听   PLSQL 里工具--首选项里要配置oracle主目录名    你试试看
    配置我会,其他的Oracle库都可以连上,客户说的是一个Oracle8的连不上
      

  6.   

    谢谢!我的事windows 下C++的pl sql 需要你安装了oracle 的客户端,而且要正确配置tnsnames这个文件  也就是所谓的监听   PLSQL 里工具--首选项里要配置oracle主目录名    你试试看
    配置我会,其他的Oracle库都可以连上,客户说的是一个Oracle8的连不上PLSQL Developer并不支持Oracle 64位客户端连接,你可以确认一下