ORA-12505, TNS:listener does not currently know of SID given in connect descriptor. Eclipse and Fedora 20 via JDBC

前端 未结 3 616
梦如初夏
梦如初夏 2020-12-11 10:19

I\'ve installed Oracle 11g XE on a Fedora 20 Virtual Machine, configured it and set the enviroment variables (running the oracle_env.sh). I\'ve got this error w

3条回答
  •  自闭症患者
    2020-12-11 10:59

    Troubleshooting:

    1. remove listener.ora (for this initial setup, you don't need it. make a backup of it)
    2. lsnrctl reload

    or

    add XE to your SID_LIST like:

    SID_LIST_LISTENER = 
      (SID_LIST = 
         (SID_DESC =
           (SID_NAME = XE)
           (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe)
         )    
         (SID_DESC = 
          (SID_NAME = PLSExtProc) 
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe) 
          (PROGRAM = extproc) 
        ) 
      )
    

    lsnrctl reload

    check the alert log for messages.

提交回复
热议问题