• 请不要在回答技术问题时复制粘贴 AI 生成的内容
YYYbw
V2EX  ›  程序员

oracle 数据库报错 17002

  •  
  •   YYYbw · Jun 22, 2021 via Android · 1994 views
    This topic created in 1816 days ago, the information mentioned may be changed or developed.
    求教一下各位
    在本地连接 plsql 没有问题,但是在 idea 里用 jdbc 连接就报错,网上查了几个方法都好像没什么作用,迫切求助!
    5 replies    2021-06-23 09:01:13 +08:00
    cnzjl
        1
    cnzjl  
       Jun 22, 2021
    看下连接串是不是没写对?
    换下数据库驱动试试呢?
    xnplus
        2
    xnplus  
       Jun 22, 2021
    ora-17002
    xnplus
        3
    xnplus  
       Jun 22, 2021
    本地 localhost 么? idea 是网络连接么? telnet ip 1521 看看通不通?
    YYYbw
        4
    YYYbw  
    OP
       Jun 22, 2021
    我是在 idea 里的 database 设置的 oracle 数据库连接,(我之前连接的 sql8.0 都是没有问题的)然后就出现了下面的提示

    [08006][17002] IO 错误: The Network Adapter could not establish the connection java.net.ConnectException: Connection refused: connect.
    andy2415
        5
    andy2415  
       Jun 23, 2021
    如果你用的是 ojdbc8 改成 6 就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2773 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 01:42 · PVG 09:42 · LAX 18:42 · JFK 21:42
    ♥ Do have faith in what you're doing.