getting below error when trying to connect to Teradata Db.
Exception in thread "main" java.lang.ClassNotFoundException: com.teradata.jdbc.TeraDriver
do I need to add teradata odbc .jar file? if yes then where can I find it?
You need to be able to see these two jars from your java code:
* terajdbc4.jar
* tdgssconfig.jar
I believe odbc is no longer supported to bridge from jdbc, so you need to run a thin jdbc connection.
Related
I have already running a project in production.
And .wdd is missing. I can't use server/client, for it.
Can I create .wdd file? Or connect to catalog without it?
I using pypyodbc and python3 for it
Only way to find wdd file is in the WinDev project directory.
But also if you don't have the project, you could connect to DB via ODBC using ODBC driver for HFSQL. With that you only have to connect to ODBC and the HFSQL driver do the rest.
https://help.windev.com/en-US/?3044179
I need to connect to a .fdb file (Navision database file 2009) through C#. Can anyone explain how can I connect to this file using ODBC/NODBC?
I have tried these links but found nothing useful.
https://dynamicsuser.net/nav/f/users/21774/nodbc-connection-with-net
https://dynamicsuser.net/nav/f/developers/19641/please-help-sample-c-code-to-access-navision-4-0-using-nodbc
https://dynamicsuser.net/nav/f/developers/72463/how-to-make-a-fdb-file
https://community.dynamics.com/nav/f/microsoft-dynamics-nav-forum/33767/can-you-read-fdb-and-fbk-file-without-using-nav?pifragment-101115=1#responses
https://dynamicsuser.net/nav/f/users/61737/connect-to-fdb
I haven't done it for C#, but Python. It all boils down to the following steps:
Install Navision ODBC Driver which is part of the Navision 2009 installation package.
Set up an ODBC connection to your Navision server. (The ODBC Driver also has a connection test included)
Use any ODBC library to connect to the ODBC DSN created in step 2.
Use regular SQL syntax to communicate with the database
edit/p.s.: Reading your question again. I think it's possible you are lacking the server part. As far as I know, you will need a running Navision server to interact with the fdb file.
I'm trying to find if one can connect to teradata using H2O. Upon reading some of the basic documentation on H2O, i found that H2O has the ability to connect to relational databases provided they supply a JDBC driver.
Link: http://docs.h2o.ai/h2o/latest-stable/h2o-docs/getting-data-into-h2o.html?highlight=jdbc
However, the documentation suggests: "Currently supported SQL databases are MySQL, PostgreSQL, and MariaDB"
So I'm wondering if H2O can connect to other databases like Teradata because they do have a jdbc driver
Link: https://downloads.teradata.com/download/connectivity/jdbc-driver
-Suhail
The core H2O function importSqlTable in water.jdbc.SQLManager class is called by both h2o.import_sql_table and h2o.import_sql_select (H2O R API - must be similar with Python counterparts). After inspecting importSqlTable source code I found a problem that will likely prevent you from loading with Teradata due to SELECT syntax.
Still I'd suggest trying and reporting in comments on result and error if it fails. When starting H2O server add the following to your command line:
-cp <path_to_h2o_jar>:<path_to_Teradata_jdbc_driver_jar> jdbc.drivers=com.teradata.jdbc.TeraDriver
UPDATE:
Use version Xia (3.22.0.1) - 10/26/2018 or later that fixed JDBC support for Teradata.
I was trying to connect to Oracle Database after validating one SQL query in IBM DB2 but getting an error RuntimeExceptionPyRaisable:java.lang.RuntimeException Class oracle.jdbc.driver.Oracle Driver not found.
However same script is running if I am commenting out the DB2 SQL connection and validation part but not working when both the steps are included and throwing class not found exception. Can anyone tell me what I am missing here?
jdbc driver is present in lib folder of my project and same I have mentioned in CLASSPATH as well
I am running above script in robotframework and connection is done through jaydebeapi
Run the test with jybot (RobotFramework using Jython).
I use Netbeans IDE (6.5) and I have a SQLite 2.x database. I installed a JDBC SQLite driver from zentus.com and added a new driver in Nebeans services panel. Then tried to connect to my database file from Services > Databases using this URL for my database:
jdbc:sqlite:/home/farzad/netbeans/myproject/mydb.sqlite
but it fails to connect. I get this exception:
org.netbeans.modules.db.dataview.meta.DBException: Unable to Connect to database : DatabaseConnection[name='jdbc:sqlite://home/farzad/netbeans/myproject/mydb.sqlite [ on session]']
at org.netbeans.modules.db.dataview.output.SQLExecutionHelper.initialDataLoad(SQLExecutionHelper.java:103)
at org.netbeans.modules.db.dataview.output.DataView.create(DataView.java:101)
at org.netbeans.modules.db.dataview.api.DataView.create(DataView.java:71)
at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.execute(SQLExecuteHelper.java:105)
at org.netbeans.modules.db.sql.loader.SQLEditorSupport$SQLExecutor.run(SQLEditorSupport.java:480)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
What should I do? :(
The current version of Zentus SQLiteJDBC is v053, based on SQLite 3.6.1. It will not open a 2.x SQLite database. Perhaps you can use SQLite 2.x command line tool to .dump your database, and the Sqlite3 command line tool to .load it. The use Zentus SQLiteJDBC to access the new SQLite 3.x database.
Alternatively, use a JDBC driver that supports SQLite 2 such as this one.
It's againg me...
I have made two mistakes during my first attempt. After setting CLASSPATH as a system variable (hope I didn’t broke smth else :)), putting sqlite_jni.dll to the system32 folder and correcting JDBC url I have got a success :)
I also have downloaded their SQLite ODBC wrapper. Installed it and made a connection to my SQLite2 database via ordinary and UTF8 based ODBC driver. I also used built in NetBeans JDBC-ODBC Bridge driver to be able to set up this connection.
All three connections have been created but:
ordinary ODBC driver: I see text data in a wrong encoding. All other columns are displayed correctly
UTF8 ODBC driver: I don’t see text data at all. All other columns are displayed correctly
JDBC driver: I don’t see any column at all. "Select * from my_any_table" always returns an empty single column
I have Russian based data in my database.
So...currently I have returned to sqlite command line interface :))