Announcement

Collapse
No announcement yet.

Mirth connect 3.8 and Teradata

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mirth connect 3.8 and Teradata

    My name is Divya Jose. I am using 3.8 version of mirth connect. I am working on a project where in we need to write some of the fields from an HL7 message to Teradata. The 3.8 version has the custom database driver option. Can someone help me with configuring the Teradata driver for mirth.

  • #2
    It looks like they have a JDBC driver: https://downloads.teradata.com/downl...ty/jdbc-driver

    And a reference guide: https://teradata-docs.s3.amazonaws.c.../frameset.html

    The driver class name appears to be "com.teradata.jdbc.TeraDriver" and the JDBC URL template is "jdbc:teradata://DatabaseServerName". You can include other parameters in that template if you want, details are in their guide.
    Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

    Nicholas Rupley
    Work: 949-237-6069
    Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


    - How do I foo?
    - You just bar.

    Comment


    • #3
      Mirth connect 3.8 and Teradata

      Thank you for the reply. I have downloaded the .jar files for Teradata driver and placed in the C:\Program Files\Mirth Connect\server-lib\database location where the .jar files of other databases are present.

      But my question is how we should install this driver with mirth so as to communicate between Mirth Engine and Teradata.

      Comment


      • #4
        Mirth connect 3.8 and Teradata

        Pasting the error which I got after deploying the channel.
        I just moved the .jar files to the C:\Program Files\Mirth Connect\server-lib\database location and used the driver class and driver URL which you mentioned in the post. Please let me know if we need to install the driver with mirth engine.


        Error:

        Database Writer error
        ERROR MESSAGE: Failed to write to database
        com.mirth.connect.connectors.jdbc.DatabaseDispatch erException: Failed to write to database
        at com.mirth.connect.connectors.jdbc.DatabaseDispatch erQuery.send(DatabaseDispatcherQuery.java:133)
        at com.mirth.connect.connectors.jdbc.DatabaseDispatch er.send(DatabaseDispatcher.java:103)
        at com.mirth.connect.donkey.server.channel.Destinatio nConnector.handleSend(DestinationConnector.java:88 8)
        at com.mirth.connect.donkey.server.channel.Destinatio nConnector.process(DestinationConnector.java:518)
        at com.mirth.connect.donkey.server.channel.Destinatio nChain.doCall(DestinationChain.java:121)
        at com.mirth.connect.donkey.server.channel.Destinatio nChain.call(DestinationChain.java:63)
        at com.mirth.connect.donkey.server.channel.Channel.pr ocess(Channel.java:1759)
        at com.mirth.connect.donkey.server.channel.Channel.di spatchRawMessage(Channel.java:1221)
        at com.mirth.connect.donkey.server.channel.SourceConn ector.dispatchRawMessage(SourceConnector.java:192)
        at com.mirth.connect.donkey.server.channel.SourceConn ector.dispatchRawMessage(SourceConnector.java:170)
        at com.mirth.connect.connectors.file.FileReceiver.pro cessFile(FileReceiver.java:418)
        at com.mirth.connect.connectors.file.FileReceiver.pro cessFiles(FileReceiver.java:328)
        at com.mirth.connect.connectors.file.FileReceiver.pol l(FileReceiver.java:239)
        at com.mirth.connect.donkey.server.channel.PollConnec torJob.execute(PollConnectorJob.java:49)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:2 13)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.java:557)
        Caused by: java.sql.SQLException: [Teradata Database] [TeraJDBC 16.20.00.04] [Error 8017] [SQLState 28000] The UserId, Password or Account is invalid.
        at com.teradata.jdbc.jdbc_4.util.ErrorFactory.makeDat abaseSQLException(ErrorFactory.java:302)
        at com.teradata.jdbc.jdbc.GenericLogonController.run( GenericLogonController.java:617)
        at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSessio n.java:211)
        at com.teradata.jdbc.jdk6.JDK6_SQL_Connection.<init>( JDK6_SQL_Connection.java:36)
        at com.teradata.jdbc.jdk6.JDK6ConnectionFactory.const ructSQLConnection(JDK6ConnectionFactory.java:25)
        at com.teradata.jdbc.jdbc.ConnectionFactory.createCon nection(ConnectionFactory.java:181)
        at com.teradata.jdbc.jdbc.ConnectionFactory.createCon nection(ConnectionFactory.java:171)
        at com.teradata.jdbc.TeraDriver.doConnect(TeraDriver. java:236)
        at com.teradata.jdbc.TeraDriver.connect(TeraDriver.ja va:162)
        at com.mirth.connect.connectors.jdbc.CustomDriver.con nect(CustomDriver.java:153)
        at com.mirth.connect.connectors.jdbc.CustomDriver.con nect(CustomDriver.java:148)
        at com.mirth.connect.connectors.jdbc.DatabaseDispatch erQuery$SimpleDataSource.getConnection(DatabaseDis patcherQuery.java:203)
        at com.mirth.connect.connectors.jdbc.DatabaseDispatch erQuery.send(DatabaseDispatcherQuery.java:106)
        ... 15 more

        Comment


        • #5
          It looks like you're almost there! The driver is being used. The only remaining issue looks to be the credentials you're using. In the error you posted:

          Code:
          [Teradata Database] [TeraJDBC 16.20.00.04] [Error 8017] [SQLState 28000] The UserId, Password or Account is invalid.
          Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

          Nicholas Rupley
          Work: 949-237-6069
          Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


          - How do I foo?
          - You just bar.

          Comment


          • #6
            Mirth connect 3.8 and Teradata

            Thank you for he reply. We are using LDAP authentication mechanism. Could you let me know the what the driver URL should be in this case.

            Comment


            • #7
              Mirth connect 3.8 and Teradata

              I used the below URL but I am still getting the same username, password/account error.

              jdbc:teradata://dbservername/DATABASE=dbname,LOGMECH=LDAP,TMODE=TERA,CHARSET=UT F8

              Note: Gave the correct server name in the place of dbservernme and database name in the place of dbname.

              and the driver class below:

              com.teradata.jdbc.TeraDriver

              Comment


              • #8
                Mirth connect 3.8 and Teradata

                I created a new channel and then it worked.
                Thank you for the help.

                Comment

                Working...
                X