zoukankan      html  css  js  c++  java
  • Hive中导入Oracle数据错误:Listener refused the connection with the following error: ORA-12505

    问题:

          今天往Hive中导入Oracle数据的时候碰到了如下错误:Listener refused the connection with the following error:

    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor


    解决办法:

    导入数据的语句如下:

    /usr/bin/sqoop import --connect jdbc:oracle:thin:@20.20.20.20:1521:jh --username *** --password *** --table *** -m 1 --fields-terminated-by "," --hive-database *** --hive-table *** --hive-import --hive-overwrite

    修改导入语句@20.20.20.20:1521:jh中的jh为数据库安装目录tnsnames.ora下SERVICE_NAME的名字。因为这里导入语句中需要的是SERVICE_NAME的名字为而不是SID。80378
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    Python中的memoryview
    Python常见陷阱
    特殊方法 之 len __repr__ __str__
    collections模块
    使用math中的hypot实现向量
    Ellipsis对象
    array
    标准库heapq的使用
    Mysql常用命令
    使用npm查看安装的包
  • 原文地址:https://www.cnblogs.com/wpcnblog/p/10974306.html
Copyright © 2011-2022 走看看