Customer Portal

<DBConnection> is not getting parsed/ saved

Comments 6

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    DBConnection is unknown graph element. DB Connection must be defined as Connection with type="JDBC" (see Connections), so your connection should look like:
    <Connection dbConfig="interbase.cfg" id="Interbase" type="JDBC"/>
    or
    <Connection type="JDBC" id="InterbaseDB" dbDriver="oracle.jdbc.OracleDriver" dbURL="jdbc:oracle://190.160.1.100/mydb" user="scott" password="tiger" />
  • Avatar
    priyadarshini
    0
    Comment actions Permalink
    I find dbConfig="interbase.cfg". Do we need this .cfg file when we are giving all database details in db connection node. What ned to be written in this cfg file ?
  • Avatar
    avackova
    0
    Comment actions Permalink
    DB connection can be defined internally in the graph - all needed properties are directly in graph or externally - all properties are in external file and in the graph you have only the path to this external file. So, as I've written above, your connection definition in graph should look like:
    <Connection dbConfig="interbase.cfg" id="Interbase" type="JDBC"/>
    with the interbase.cfg content:
    dbDriver=oracle.jdbc.OracleDriver
    dbURL=jdbc:oracle://190.160.1.100/mydb
    user=scott
    password=tiger

    or
    <Connection type="JDBC" id="InterbaseDB" dbDriver="oracle.jdbc.OracleDriver" dbURL="jdbc:oracle://190.160.1.100/mydb" user="scott" password="tiger" />
  • Avatar
    priyadarshini
    0
    Comment actions Permalink
    Thanks.
  • Avatar
    priyadarshini
    0
    Comment actions Permalink
    The update query in a graph with DB Execute is not getting executed where the same query is running form sql plus:

    <Node dbConnection="Connection0" enabled="enabled" guiName="DBExecute" type=DB_EXECUTE" id="DB_EXECUTE0">
    <attr name="sqlQuery"><![CDATA[UPDATE tableA set DATE_A = TO_DATE('12-12-2007 22:22:22', 'DD-MM-YYYY HH24:MI:SS') WHERE TABLE_NAME='abc']]></attr></Node>

    If I replace the update with insert query its running fine.


    any suggestion where can be the problem...
  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    I executed this node and the table was updated. Do you have proper name in where clause (lower/upper case)?
    What CloverETL version do you use?
    Can you show whole your graph?

Please sign in to leave a comment.