用oracle->Network Administration->net configration assistent配置一下 监听程序
并查看tnsnames.ora文件里面的service name是否配置正确

解决方案 »

  1.   

    没有配置好 Net.
    按  oklida(JAVA战士) 的方法来做就可以~
    在配置的时候,"主机名" 改为 IP 地址的方式来试试要改文件的话,可以参考一下:
    http://expert.csdn.net/Expert/topic/2342/2342439.xml?temp=.8971826
      

  2.   

    tnsping 服务名 
     看下网络是否畅通,检查你的监听和数据库服务是否正常。
    接下来就是检查你的服务名。
      

  3.   

    主机的名称是中文照成的。
    更改ora文件
      

  4.   

    TNS-12516 TNS:listener could not find instance with matching protocol stackCause: None of the known instances for the matching SERVICE_NAME support the client's protocol stack: protocol, presentation, and session.Action: Check that desired instances are up, and that the service handlers (for example, dispatchers) are properly configured to support the desired protocols and presentations.你的LISTENER在你配置的监听名中找不到相关的数据库实例。你可以检查一下你配置的数据库实例名称是否正确,以及看一下你是否使用了正确的协议及端口号。。