Making ODBC connection - odbc

I'm trying to setup a ODBC connection from a Windows XP/Pro (32bit) client to a MySQL database running on a CentOS 6.3 64bit server.
Both systems are on the same subnet.
I have Samba installed and working on the CentOS server.
I can map the server directory that contains the database tables on the XP system.
The DB server is fully updated on all packages.
I can login to the server with myid:mypw via ssh, a standard user. Same user can make SELECTS from the database.
Can not ssh to root on CentOS server, root is excluded in the ssh config.
When I try to run the ODBC Data Source Administrator on the XP client, on the Create a New
Data Source to SQL Server screen, I select using a login ID entered by the user. I'm
entering the same ID:pw I use to ssh into the server. At that point I get an error,
SQLState = '08001';
SQL Server error: 17;
SQL Server does not exist or access denied"
The Server name I'm entering for "Which SQL Server do you want to connect to?", I've entered the host name of the CentOS that is defined in the XP's /etc/host file. It does appear in the drop down list for that question.
I have installed unixODBC*, mysql-connector-odbc & libtool* packages via yum.
On the server, odbc -q -d returns: [MySQL]
odbcinst.ini includes lines for Driver | Setup | Driver64 | Setup64. The 64 versions do point to /usr/lib64.....
odbc.ini includes: [MyDSN} & Driver = MySQL ODBC 5.1 Driver
Any idea what I've missed so far? Am I running into 32/64 bit system issues? And if so how do I solve this, I will have both 32 & 64 bit users most of them on Windows 7/Pro 64 bit, a few stuck on XP/Pro 32 bit.
I'm a bit lost in this task, so some detailed instructions would be great.
Thanks in advance..

Assuming you have not made a mistake and you really want to access a MySQL database on a remote Centos based system from Windows using ODBC you'll need to install the MySQL ODBC Driver on your Windows machine. You cannot use the MS SQL Server driver to access MySQL. Once you've done that you create a MySQL ODBC data source (although you can use DSNless connections) and not a SQL Server DSN.
2 and 3 are irrelevant as the MySQL ODBC driver is capable of talking directly to your MySQL Database server over the network assuming your server is set up to listen for external connections.
5 is also irrelevant as you'll need a MySQL database username and password and you database needs to allow connections from your windows machine.
(9-12) You also do not need to install unixODBC of the MySQL connector on your Centos box unless you want to access that same MySQL database with an application running on Centos that uses ODBC. 10 just tells you you've got an entry in your odbcinst.ini file for the MySQL ODBC driver which you don't need. 11 is the same info. 12 is a MySQL ODBC DSN which you also don't need.

Related

Create ODBC connection to MariaDB (Localhost)

I have set up a webserver (OS Raspbian, Apache, MariaDB) and now I want to read the database into Qlik Sense (on my desktop PC).
If I want to create a new ODBC connection in Windows, I get the following error message:
"[ma-3.1.4] Can't connect to MySQL server on 'localhost' (10061)"
I am using the "MariaDB ODBC 3.1 Driver". The specified user has all rights.
Do you have any idea where the error is? I am doing this for the first time. Please let me know if you are missing crucial information.
Greetings

FlameRobin: Not Responding While Establishing Connection

I have installed Firebird-2.5.6.27020_0x64 and Firebird_ODBC_2.0.4.155_x64 in a Windows 10 64 bit computer system architecture. I have set-up also ODBC configuration in ODBC Data Source Administrator (64 bit) and test connection was successful.
In the FlameRobin, I have created localhost as a Display Name and Host Name and register existing database.
When establishing connection, the FlameRobin is always not responding.
Where did I go wrong? I have already disabled my anti-virus.

Unable to connect to Oracle 12c from client machine

I have spent 3 days now trying to figure out why I can't connect to my Oracle 12 database from a client machine. I have read lots of articles and Googling around but haven't been able to find a solution yet. I have tried everything possible and know of already. So I am hoping someone maybe able to point me in the right direction.
Here are some details:
Win7 x64 with Oracle 12c installed.
Windows Server 2012 R2 (client, yes this setup isn't ideal. will explain why later).
Windows Server 2012 R2 (domain controller)
All machines are VM's and part of a domain.
All VM's are running under ESXI 6.0
I can do the following without any issues:
Logon to oracle server.
ORCL is my oracle isntance (global database identifier).
6.1 run tnsping orcl
6.2 lsnrctl status (up and running)
6.3 stop and restart the listner service from the Windows Services snap-in.
6.4 sqlplus system/xyz#orcl
Connects w/o any problems.
6.5 Oracle SQL Developer can connect to ORCL
6.6 can ping client machine.
However I CAN NOT do the following:
Logon to client machine
7.1 copied tnsnames.ora from oracle server to this client machine and placed under [ORACLE_HOME]\network\admin where it should be. replaced "localhost" with the oracle sserver IP.
7.2 Using sqlplus system/xyz#orcl or Oracle SQL Developer to connect
I get TNS: no listener found.
7.3 can ping oracle server.
7.4 tnsping orcl (failed)
7.4 already disabled all firewalls (domain, private and public) on oracle server.
There shouldn't be any issues with firewalls or ports.
No matter what I do, I just can't connect from the client machine. Can someone tell me what I'm doing wrong? As a side note, I was not able to install Oracle 12c on Win2012R2. So I installed on a Win7x64. But eventually
all the VM's will run on Windows Server 2012R2. This setup is my home lab.
Thank you!
replaced "localhost" with the oracle sserver IP
It looks like the listener is only listening on localhost (127.0.0.1); you can confirm that with lsnrctl status, or with netstat -an | find "1521" (or your actual port number if you aren't using the default).
It isn't listening on the server's external IP address, so when you try to connect to post 1521 (or whatever you have configured) on that IP there is nothing there listening - which is why you get "no listener found".
You need to modify your listener.ora to either listen to both localhost and the server IP address, or to only listen to the external address. But the latter has side-effects - your existing connections and tnsnames.ora entries would need to change to refer to that address (or, even if it is static, a DNS name that resolves to that address), and your database may need to be modified so it knows the listener address to register against, via the LOCAL_LISTENER initialisation parameter. After changing the listener.ora you will need to bounce the listener, and you can then check netstat again.

Configuring DNS entry on unix for SQL Azure with DataDirect6.1

Could you please advise me, how to configure a DSN entry for SQL Azure on UNix AIX box with DataDirect 6.1 to connect from PowerCenter 9.1.0.
Aix Server: 10.10.10.10 : 2222
On this Port, ABCXYZ9PQR(Database Server name) Database is configured.
Database name: TestDatabase
Telent is working from application server. Telnet 10.10.10.10 2222 --> Connected
Able to connect to the SQL server from Windows.
Please advise me what are the tests do I need to perform, and configure the DSN entry in ODBC.ini.
Thanks,
Sarat
Below steps are necessary for configuring odbc:
Ensure that the env variables ODBCHOME & ODBCINI are set. These has to be set before Informatica Services are started. Else they wont get picked up.
configure DNS in obdc.ini file for the DB server.
Use ssgbodbc utility (download from mysupport site) to test if the odbc connection goes through
Copy the DNS name from the entry in odbc.ini variable and paste it in the Connection String section of the ODBC connection in Workflow Manager.
I'm not clear from your description though:
Can you clarify if the Informatica Services is installed on AIX box (10.10.10.10)? how did you configure the connection to azure on windows box?
-Sadagopan

d Oracle connection couldnot open error from asp.net

I have installed oracle express 10 on my localmachine in which all oracle client tools were already installed to connect to a remote oracle server before.After replicating the databses from remote server in the local when I try to connect to the local version or remote version from asp.net it throws an exception telling connection couldnot open.I can use the same connection parameters and connect in SQLdeveloper/toad.When I uninstall oracle express I can connect to remote server again.I am running windows xp 64 bit version.Can someone help me with this?
..installing oracleXE after installing oracle client was the problem.The real issue was in the order of the paths variable

Resources