The windows file tnsnames.ora had contrl characters that messed up SQLPLUS!!
find them and kill... ;)

解决方案 »

  1.   

    Cause: 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.
      

  2.   

    高手来看看啊
    我刚才配了一个网络服务,发现配置的时候报测试连接成功,但同时提示TNS:could not resolve the connect identifier specified。这是为什么呢?
    我的网络连接无法ping到要配置服务器的ip,但网络其实是通的,难道跟网络的某些设置有关系?顶

    高手帮看看啊