zoukankan      html  css  js  c++  java
  • kettle 链接oracle12c

    jdbc连接cdb数据库时,url兼容以下2种模式:

      "jdbc:oracle:thin:@192.168.75.131:1521:oracle12c"

      "jdbc:oracle:thin:@192.168.75.131:1521/oracle12c"

    jdbc连接pdb数据库时url必须使用:" jdbc:oracle:thin:@192.168.75.131:1521/oracle12c"格式,
    若使用传统格式" jdbc:oracle:thin:@192.168.75.131:1521:oracle12c"则会报一下错误:

    java.sql.SQLException: Listenerrefused the connection with the following error:

    ORA-12505, TNS:listener does notcurrently know of SID given in connect descriptor
    Kettle 如果用Native(JDBC)方式连接Oracle,默认是第一种方式,是无法连接上的
    故我们采用JNDI方式连接:
    打开Keetle安装目录以下找到jdbc.properties文件,并输入以下内容:

    kettle/type=javax.sql.DataSource 
    kettle/driver=oracle.jdbc.driver.OracleDriver 
    kettle/url=jdbc:oracle:thin:@127.0.0.1:1535/szorcl
    kettle/user=ps_ztb
    kettle/password=ps_ztb
    

    kettle链接设置:

  • 相关阅读:
    poj1330 Nearest Common Ancestors
    poj3237 Tree
    spoj2798 QTREE3 Query on a tree again!
    spoj913 QTREE2 Query on a treeⅡ
    自动类型转换
    js "+"连接符号
    js parseFloat
    js字符串与数字的运算
    js prompt
    js数组排序
  • 原文地址:https://www.cnblogs.com/ckxlovejava/p/9134134.html
Copyright © 2011-2022 走看看