如果用sqlplus可以连接,说明net8配置的没有问题
只能是pb中数据源设置的不正确
检查一下,看是不使用的连接字符串不正确

解决方案 »

  1.   

    1、首先确认你的机的用sqlplus可以连接上Oracle
    2、在做profile配置时,在"connect information"栏中的server窗的的服务名前加入@
     像这样子的@bill
      

  2.   

    sqlplus连接没有问题,我刚才又试了一遍。按hrb_qiuyb说的在服务名前加入@,试过了,还是报原来的错。
      

  3.   

    把pb重装一次看看,如果其它pc上可以,而你的不可以,我想肯定是你机子的问题?
      

  4.   

    重装过n次了,不管用。
    系统也重装过了,也不管用。
    很大的影响了本人的工作,所以急阿!!能否告知ora-12154,ora-12222是什么错误?
      

  5.   

    TNS-12154 TNS:could not resolve service nameCause: The service name specified is not defined correctly in the TNSNAMES.ORA file.Action: Make the following checks and correct the error: Verify that a TNSNAMES.ORA file exists and is in the proper place and accessible. See the operating system specific manual for details on the required name and location. Check to see that the service name exists in one of the TNSNAMES.ORA files and add it if necessary. Make sure there are no syntax errors anywhere in the file. Particularly look for unmatched parentheses or stray characters. Any error in a TNSNAMES.ORA file makes it unusable. See the SQL*Net V2 Administrator's Guide. If possible, regenerate the configuration files using the Oracle Network Manager.TNS-12222 TNS:no such protocol adapterCause: The protocol adapter requested (by way of the "(PROTOCOL=..)" keyword-value pair in a TNS address) is unknown. If the supplied address is typographically correct then the protocol adaptor is not installed.Action: Install the protocol adapter or correct typographically error, as appropriate. Note: if the supplied address was derived from resolving the service name, check the address in the appropriate file (TNSNAMES.ORA, LISTENER.ORA or TNSNET.ORA).
      

  6.   

    最好把你的tnsnames.ora,listener.ora文件贴上来,分析分析。
      

  7.   

    本人机器上安装的是oracle客户端,tnsnames.ora文件如下:nt6000 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.4.5.253)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = nt6000)
        )
      )但sqlplus可以连接成功的啊,没道理到了pb里头就不行了的。同样的pb程序在别的机器上可都是可以运行的。
      

  8.   

    可能是配置odbc不正确,检查一下odbc的配置情况
      

  9.   

    ODBC配置如何检查,可以具体说一下么?