I am trying to connect it to Eclipse Luna with Mysql for performing operation.
I am trying to connect ODBC Driver 3.5 32bit & its giving me error , when I try with ODBC 3.5 driver 64bit is connected to the database.
My system is 64bit. I think the issue is with compatibility. Is there a solution for this issue?
Related
I am getting the following error on Tableau:
"ERROR: current transaction is aborted, commands ignored until end of transaction block; Error while executing the query"
I reinstalled the latest version of PostgreSQL (13.3) as recommended in this article but I get the same error
I think I have the wrong Postgres ODBC driver installed and I need to uninstall it. There may also be a problem with how the JDBC driver is installed.
How can I uninstall Postgres ODBC/JDBC driver on Mac (iOS)?
I had the similar problem & issue was with the driver.
I downloaded the driver from : https://www.tableau.com/support/drivers?_ga=2.40526434.1567909167.1642407920-2139636933.1641279633
and placed it in the Driver folder(~Library/Tableau/Drivers).
This resolved my issue.
I started learning Java EE, and I decided to develop my small application in simulated "real world production" environment:
I decoupled the development and deployment environment into a laptop (with Eclipse IDE) and a server (Raspberry Pi with Tomcat/TomEE and MariaDB).
With this environment I can learn not only EE development but the deployment phase, too.
The problem
After installation of MariaDB I realized that the MariaDB's JDBC connector doesn't work properly. I successfully made a connection in Eclipse via Generic JDBC (I used MariaDB's default connector). Pinging the server was also successful, but every query returned void results.
I tried the following queries:
show tables in dbName;
select * from tableName;
show databases;
When I tried to make entities from tables in a new JPA project, Eclipse didn't offered any tables.
Can somebody please help me to make a complete working connection to MariaDB.
What did I try (until this moment, without result)?
Updated the Raspbian system by apt-get update, moreover I did the same after installing MariaDB.
Tried to install MySql 5.6 with apt-get and dpkg, but the armhf version is not available on Raspbian Stretch
In Eclipse's Preferences/Data Management/Connectivity/Driver Definitions I tried to install MySql driver instead Generic JDBC
In properties (in Edit Driver Definition) tried the following Connection URL-s:
jdbc:mysql://hostName:port/
jdbc:mariadb://hostName:port/
jdbc:mysql://hostName:port/dbName
jdbc:mariadb://hostName:port/dbName
jdbc:mysql://hostName:port/dbName?user=userName&password=password
jdbc:mariadb://hostName:port/dbName?user=userName&password=password
Tried older version of JDBC connectors, too (mariadb-java-client-2.1.0.jar), without good result.
I installed MySQL on local machine, I could connect it in Eclipse successfully.
I could successfully connect, create, insert, alter tables in MariaDB from locally installed MySqlWorkbench.
I installed MariaDB on local machine. Despite the connection ping was successful in Eclipse, the void query result was the same as the remote MariaDB connection.
I installed NetBeans to check whether I can connect MariaDB with it's driver. The result was SUCCESS (screenshot is attached)
One more weird thing: in Data Source Explorer the tree structure is different between MySQL and MariaDB (see the screenshot)
The environment
Server:
Raspbian Stretch (Debian 9.1)
Java: openJKD 1.8.0_141, OpenJDK Runtime Environment build 1.8.0_141-8u141-b15-1~deb9ul-b15, OpenJDK Zero VM build 25.141-b15-1~deb9ul-b15
MariaDB Ver 15.1 Distrib 10.1.23-MariaDB, for debian-linux-gnueabihf (armv71)
Local machine:
Windows 10 Pro 64bit, version: 1703, build: 15063.674 (Hungarian language local)
MySqlWorkbench 6.3CE, 6.3.9 build 10690321 CE(64 bits)
Eclipse Neon.3 Release (4.6.3), Build id: 20170314-1500
NetBeans IDE 8.2, Build 201705191307
Java: JDK 1.8.0_151 (x86_64 architecture)
JDBC: mariadb-java-client-2.1.2.jar (This worked successfully with NetBeans)
To summarize, in Eclipse I can make a connection to MariaDB via Generic JDBC, the ping is successful, but I cannot get any result from queries (and cannot generate entities from tables).
Solved:
In Eclipse you don't have to use MariaDB's JDBC 2.1.2. connector. It is fully MySQL compatible just use MySQL JDBC 5.1 default (mysql-connector-java-5.1.41-bin.jar). Now it works fine!
I am trying to install oracle 10g client version 10.2.0.0 on windows server 2008 standard 32 bit machine with service pack 2. The oracle 10g client is getting installed but when i try to connect to oracle 9i server on another machine it is giving error "test does not succeeded". I have tested same using windows 7. On that it is working fine and getting connected to oracle 9i server. But i want this to be done on windows server 2008 standard only. Please suggest what i can do in this case?
I've installed both the 32bit and 64bit versions of psqlODBC 9.1. When I configure both a 32bit and a 64bit System DSN they get written to the ODBC.ini file incorrectly:
[ODBC 32 bit Data Sources]
pg_crdb_latest=PostgreSQL Unicode (32 bit)
pg_crdb_latest_32=PostgreSQL Unicode(x64) (32 bit)
[pg_crdb_latest]
Driver32=C:\Program Files (x86)\psqlODBC\0901\bin\psqlodbc35w.dll
[pg_crdb_latest_32]
Driver32=C:\Program Files\psqlODBC\0901\bin\psqlodbc35w.dll
The pg_crdb_latest DSN was added using the 64bit ODBC Data Source Administrator. The pg_crdb_latest_32 DSN was added with the 32bit one.
FYI - I installed the 32bit version first, then the 64bit version.
The outcome is I get this error when trying to connect to PostgreSQL 9.1 64bit in SAS 9.2 64bit:
ERROR: CLI error trying to establish connection: [Microsoft][ODBC
Driver Manager] The specified DSN contains an architecture mismatch
between the Driver and Application
Any ideas how to set this right? I'm running Windows 7 Pro 64bit.
This link explains it all
http://www.easysoft.com/developer/interfaces/odbc/64-bit.html#odbc-windows
So two things:
Windows has very poor file and directory naming conventions regarding ODBC - hence the confusion
64bit PostgreSQL ODBC is currently very slow (10x slower than SAS to SQL 64bit via OLEDB) - I'll investigate this further
I am using the operating system Windows Home Basic Premium. I installed Oracle 10g Express Edition also 11g, it installed correctly but when I would go for adding driver from ODBC I didn't find any Express driver.
That's why I can't run any Java database project; it shows me driver not loaded. This is first I face problem using any software.
First off, in general, you should not be using ODBC if you are developing a Java application. Java applications generally use the JDBC driver to connect to the database. It is possible to use a JDBC to ODBC bridge driver but that was really only appropriate years ago when not every database had a JDBC driver. There would be no reason to use a JDBC to ODBC bridge driver to connect to an Oracle database in an application built today.
That being said, are you using a 32-bit version of Windows or a 64-bit version of Windows? Did you install 32-bit versions of Oracle or 64-bit versions of Oracle? If you are using a 64-bit version of Windows, the default ODBC Driver Administrator will only display the 64-bit ODBC drivers that are installed. If you installed 32-bit versions of Oracle, you'll need to open the 32-bit ODBC Driver Administrator at C:\Windows\SysWOW64\odbcad32.exe in order to access the 32-bit ODBC drivers.