Guest_imported
New member
- Jan 1, 1970
- 0
I installed Teradata DB on Win(Demo version).
I can view Teradata objects through WinDDI utility.
Also I was able to write java app which connects to Teradata Database and retrieves some records: SELECT * FROM Reatailer.Region
I used jdbc to odbc bridge using sun.jdbc.odbc.JdbcOdbcDriver as jdbc driver
When I replaces
driver to com.ncr.teradata.TeraDriver
it fails on
Class.forName("com.ncr.teradata.TeraDriver"
Connection c = DriverManager.getConnection(url, name, pass);
where url is
String url = "jdbc:teradata://localhost:7060/localhost"
I playde with several different combinations, replacing localhost to my actual machine name, ading TMODE parameter, etc. but it didn't help
My jserver and all Teardata services are up and running
The error I have:
java.sql.SQLException: [NCR][Teradata CLIv2] : Failed while retrieving default
ransaction mode
at com.ncr.teradata.ComUtil.ThrowExcp(Unknown Source)
at com.ncr.teradata.TeraDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:457)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at JDBCTest.main(JDBCTest.java:32)
It is error 224 which corresponds to
Check the host file entry.
I did testcon.exe and got almost the same error:
Connection to demo1099 failed
224 : MOSI: ER_HOST (117): DBC name not found - possible HOSTS file problem.
I tried to chanhe /etc/host file but it didn't help either.
Everything running on WinNT
Any idea how to fix it?
I can view Teradata objects through WinDDI utility.
Also I was able to write java app which connects to Teradata Database and retrieves some records: SELECT * FROM Reatailer.Region
I used jdbc to odbc bridge using sun.jdbc.odbc.JdbcOdbcDriver as jdbc driver
When I replaces
driver to com.ncr.teradata.TeraDriver
it fails on
Class.forName("com.ncr.teradata.TeraDriver"
Connection c = DriverManager.getConnection(url, name, pass);
where url is
String url = "jdbc:teradata://localhost:7060/localhost"
I playde with several different combinations, replacing localhost to my actual machine name, ading TMODE parameter, etc. but it didn't help
My jserver and all Teardata services are up and running
The error I have:
java.sql.SQLException: [NCR][Teradata CLIv2] : Failed while retrieving default
ransaction mode
at com.ncr.teradata.ComUtil.ThrowExcp(Unknown Source)
at com.ncr.teradata.TeraDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:457)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at JDBCTest.main(JDBCTest.java:32)
It is error 224 which corresponds to
Check the host file entry.
I did testcon.exe and got almost the same error:
Connection to demo1099 failed
224 : MOSI: ER_HOST (117): DBC name not found - possible HOSTS file problem.
I tried to chanhe /etc/host file but it didn't help either.
Everything running on WinNT
Any idea how to fix it?