Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Mirth connect 3.8 and Teradata (http://www.mirthcorp.com/community/forums/showthread.php?t=219231)

Divya Jose 06-27-2019 11:53 AM

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.

narupley 06-27-2019 12:39 PM

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.

Divya Jose 06-28-2019 01:13 PM

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.

Divya Jose 06-28-2019 01:46 PM

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.


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] [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

narupley 06-28-2019 02:02 PM

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:


[Teradata Database] [TeraJDBC] [Error 8017] [SQLState 28000] The UserId, Password or Account is invalid.

Divya Jose 07-01-2019 07:06 AM

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.

Divya Jose 07-01-2019 07:40 AM

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:


Divya Jose 07-01-2019 01:47 PM

Mirth connect 3.8 and Teradata
I created a new channel and then it worked.
Thank you for the help.

All times are GMT -8. The time now is 04:56 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation