pb中的连接文件如下,// Profile oracle
SQLCA2.DBMS = "O90 Oracle9i (9.0.1)"
SQLCA2.LogPass = 'sj2010'
SQLCA2.ServerName = "orcl"
SQLCA2.LogId = "sys"
SQLCA2.AutoCommit = False
SQLCA2.DBParm = "ConnectAs='SYSDBA',PBCatalogOwner='system'"在pb开发环境里运行正常,编译成exe文件运行后,运行提示错误:ORA-12154:TNS:could not resolve the connect identifier specified
我已经把所有pb动态支持库文件都拷贝在目录下了。我对oracle不太熟悉,请问是会是哪里的原因呢?

解决方案 »

  1.   

    转到PB版块吧,虽然做过PB,不过都还给SYSBASE公司了
    记得只要配置好是没有任何问题的,里面有个窗口可以配置,还有机器要安装ORACLE客户端
      

  2.   

    tnsping orcl,再看看path是否正确。
      

  3.   

    // Profile oracle
    SQLCA.DBMS = "O90 Oracle9i (9.0.1)"
    SQLCA.LogPass = 'sj2010'
    SQLCA.ServerName = "orcl"
    SQLCA.LogId = "sys"
    SQLCA.AutoCommit = False
    SQLCA.DBParm = ""