Eclipse cannot connect oracle 10g XE on windows 7

前端 未结 2 1451
孤城傲影
孤城傲影 2021-01-07 08:21

Eclipse is not able to connect to oracle 10g it is giving errors like:

Could not connect to New Oracle.
Error creating SQL Model Connection connection to New         


        
相关标签:
2条回答
  • 2021-01-07 09:00

    Port 8080 is not for the Oracle database itself, it is for viewing Oracle Application Express (Apex) via a web browser.

    I'm guessing you want Eclipse to connect to the database itself, so your JDBC URL should use port 1521 instead of 8080:

     jdbc:oracle:thin:@localhost:1521:XE
    
    0 讨论(0)
  • 2021-01-07 09:06

    Here is the answer. To fix this Go to SQL prompt type in "LSNRCTL SERVICES" this gives you a block of code look for "PORT=XXXXX" key word. its not always 1521. mine port '49160' instead of 1521 (surprisingly).

    use : "jdbc:oracle:thin:@localhost:XXXXX:ORCL";

    0 讨论(0)
提交回复
热议问题