我的QQ是:20387760,如果有兴趣的话请到QQ里跟我交流也可以。谢谢!

解决方案 »

  1.   

    通过错误代码看,原因是你的SID 指定不正确。请检查你的链接字符串。 
         
        Oracle9i 对 错误 12505 的解释是: 
         
        TNS-12505 TNS:listener could not resolve SID given in connect descriptor 
         
        Cause: The SID in CONNECT_DATA was not found in the listener's tables. 
         
        Action: Check to make sure that the SID specified is correct. The SIDs that are currently registered with the listener can be obtained by typing "LSNRCTL SERVICES listener_name". These SIDs correspond to SID_NAMEs in TNSNAMES.ORA, or DB_NAMES in the INIT.ORA file
      

  2.   

    不会吧。我还能用这个SID:CLSCDD,username:CLSCDD,password:clscb 登录SQL*PLUS呢!怎么说SID不正确呢!请指点。数据库也应是户用的呀。
      

  3.   

    登陆到SQL*PLUS不等于数据库打开,确认你的实例开启,你的数据库处于打开的状态吗?
      

  4.   

    此用户对数据库操作分配了足够的权限了吧。在SQL*PLUS中执行你的sql语句,可以检索到结果吗?
      

  5.   

    while(rs.next()) 
    {
        out.println("I Love You!");
    }
      

  6.   

    应该是SID错误所导致!看看是否应该是hqf而你写成了hqf_pc