web stats
Mirth connect 3.8 and Teradata - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2019, 11:53 AM
Divya Jose Divya Jose is offline
Mirth Newb
 
Join Date: Jun 2019
Posts: 15
Divya Jose is on a distinguished road
Exclamation 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.
Reply With Quote
  #2  
Old 06-27-2019, 12:39 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 06-28-2019, 01:13 PM
Divya Jose Divya Jose is offline
Mirth Newb
 
Join Date: Jun 2019
Posts: 15
Divya Jose is on a distinguished road
Exclamation 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.
Reply With Quote
  #4  
Old 06-28-2019, 01:46 PM
Divya Jose Divya Jose is offline
Mirth Newb
 
Join Date: Jun 2019
Posts: 15
Divya Jose is on a distinguished road
Exclamation 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
Reply With Quote
  #5  
Old 06-28-2019, 02:02 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 07-01-2019, 07:06 AM
Divya Jose Divya Jose is offline
Mirth Newb
 
Join Date: Jun 2019
Posts: 15
Divya Jose is on a distinguished road
Exclamation 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.
Reply With Quote
  #7  
Old 07-01-2019, 07:40 AM
Divya Jose Divya Jose is offline
Mirth Newb
 
Join Date: Jun 2019
Posts: 15
Divya Jose is on a distinguished road
Exclamation 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
Reply With Quote
  #8  
Old 07-01-2019, 01:47 PM
Divya Jose Divya Jose is offline
Mirth Newb
 
Join Date: Jun 2019
Posts: 15
Divya Jose is on a distinguished road
Exclamation Mirth connect 3.8 and Teradata

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:36 AM.


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