1)我在本地xp下用java写代码 连接数据库服务器 
2)数据库服务器好像是装在redhat下面(肯定不是windows)
3)我用jdbc:oracle:oci8:@service 可以连接。但是用jdbc:oracle:thin:@server ip: service 不行
4)用jdbc:oracle:thin:@server ip: service 连接其他windows下的oracle10数据库没有问题。请问是什么原因

解决方案 »

  1.   

    错误信息
    ORA-10505 TNS:listener dose not currently know of SID given in connect descriptor
      

  2.   

    上面的不对,应该是
    错误信息 
    ORA-12505 TNS:listener dose not currently know of SID given in connect descriptor 
     
      

  3.   

    把連接部分的代碼貼出來,looklook
      

  4.   

    知道什么原因了 真是郁闷 SID没有用实例名
    select instance_name from v$instance 查找了一下 
    SID名和SID实例名 不一样
    谢谢大家了