【问题标题】:Connect to an Oracle DB with sqldeveloper使用 sqldeveloper 连接到 Oracle 数据库
【发布时间】:2017-04-06 14:33:34
【问题描述】:

我的后端系统正在通过数据源连接到远程 Oracle 数据库:

dataSource_esb {

    dialect = org.hibernate.dialect.Oracle10gDialect
    driverClassName = 'oracle.jdbc.driver.OracleDriver'
    url : jdbc:oracle:thin:@x.x.x.x:1521/test
    username : username
    password : password

}

现在我正在尝试通过 sqldeveloper 连接到这个数据库,但我无法连接。下面是 sqldeveloper 配置:

  • 连接名称:测试
  • 用户名:用户名
  • 密码:密码
  • 连接类型:基本
  • 角色:默认
  • 主机名:x.x.x.x
  • 端口:1521
  • SID:-
  • 服务名称:测试

【问题讨论】:

    标签: oracle jdbc oracle-sqldeveloper


    【解决方案1】:

    根据您的数据库 URL jdbc:oracle:thin:@x.x.x.x:1521/test jdbc:oracle:thin 是您的驱动程序类型 @x.x.x.x:1521 是端口号 然后,如果 test 是配置中的数据库 SID,则应该使用 :test 而不是 /test。 希望你能理解

    谢谢 巴桑塔

    【讨论】:

      【解决方案2】:

      数据库test 应该在SID 而不是service name

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-08-27
        • 2015-04-11
        • 2012-04-11
        • 2011-11-12
        • 2013-03-17
        • 1970-01-01
        • 1970-01-01
        • 2014-03-18
        相关资源
        最近更新 更多