Toad 13.3.0.181 (32 bits) Connection Issue with oracle client 32 bit - toad

we have installed Toad 13.3 client Version in Windows 64 bit for oracle client 32 bit but trying to connect we are getting error "NAMES.DIRECTORY_PATH does not specify TNSNAMES in the sqlnet.ora file".
enter image description here
Kindly suggest for this issue.

Related

IIS 8.0 Detailed 500.0 Internal Server Error - The page cannot be displayed because an internal server error has occurred

I have a website that was running on 32 bit IIS 8.0. My website is built under "ANY CPU" configuration. Recently we had an issue where the memory was getting overflown. We wanted to run the website as a 64bit process so more memory becomes available to it.
I turned "Enable 32 bit application" to FALSE in IIS. When running the website I get the following error:
Enabling 32 bit as TRUE resolves the issue. Is there anything I have to do other than setting the app pool to use 64 bit to make the application run as a 64 bit process?
I found something similar here: stack overflow question but the Handler is different so I wanted to get some expert opinion on how to resolve this error.

Redshift ODBC 64-bit driver error

My system has both 32-bit and 64-bit Redshift ODBC drivers installed. It shows up in the ODBC Data Sources under System DSN tab. However, only 32-bit driver shows up in the Drivers tab.
Also, when I attempt to make a Redshift connection by specifying 64-bit in the connection string Driver={Amazon Redshift (x64)}, I get this error: "ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified".
Only the following in the connection string seems to work Driver={Amazon Redshift (x86)}.
I tried
Re-installing and repairing 64-bit driver.
Removing 32-bit driver from the System DSN tab
But none seemed to work.
Am I missing something?
We had the same problem using the Amazon Redshift driver in our ASP.NET application at our company.
If you're also using the Amazon Redshift driver in an ASP.NET application, I hope what we figured out (the hard way) might help you.
The solution to the problem is to use the 64-bit driver if you're running the application with the 64-bit IIS, and to use the 32-bit driver if you're using the 32-bit IIS. The thing that caught us off guard is that even on a 64-bit machine running 64-bit Visual Studio, the default IIS is 32-bit, not 64-bit. (https://www.jc-tech.info/2016/09/24/running-32-bit-or-64-bit-iis-express/)
This explains why only the 32-bit driver is found by your application. Regarding why the 64-bit driver does not appear in the Drivers tab of the ODBC Data Sources Manager, there are actually 2 versions of the ODBC manager: a 32-bit version, and a 64-bit version. The 64-bit driver will only show up in the 64-bit ODBC manager.
When debugging your application, if you want to make sure that Visual Studio is using the 64-bit IIS, go to Tools>Options>Projects and Solutions>Web Projects, and tick the "Use the 64 bit version of IIS Express" checkbox.
Similarly, when you deploy your application, make sure that your driver version (32 or 64 bit) matches the version of your production environment.
Had same problem,
I kept only 32 bit driver and uninstalled 64-bit and I put
Driver={Amazon Redshift (x86)}.
It worked fine.
More info can be found from below link.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/480db31c-b583-4c22-a7eb-bc37ad3a3e6d/data-source-name-not-found-and-no-default-driver-specified-error-in-report-builder-when-adding-an?forum=sqlreportingservices
If you are building a .NET application check the project properties for Build option to target x64 platform instead of using Any CPU option to target all

32 bit ODBC Driver to connect to a 64 bit Database

In order to connect to a 64 bit Database (Oracle / DB2 / Postgresql/ SQL Server) from a 32 bit Software via ODBC, do I need the 32 bit Database client or just the 32 bit ODBC Driver would suffice.
As an example from Oracle, when I am installing Oracle Server, the 32 bit ODBC Administrator, does not necessarily have an entry for Oracle as the 32 bit ODBC Driver does not exist. In order to connect, I had to install the 32 bit Oracle Client, after which I can see an ODBC entry.
So my question is, in order to connect to a 64 bit database from a 32 bit application, do I need the 32 bit database client (thin/full) or just there exist a 32 bit ODBC driver which can be installed to establish a connection.
Which client you use is dependent on the architecture of the client machine you are using, not the server.
IIRC, with Oracle you need to install the client AND the ODBC driver. The client actually handles the connection to the database while the ODBC layer translates ODBC-speak to something the client understands.
I assume other platforms are similar although it is possible some databases supply an unified client installer that can install both the client and the ODBC driver.
When using ODBC, it is important to use the ODBC architecture that matches your client application. For example, If you are using x86 Access you would need the 32 bit ODBC driver and client.
When I setup a SQL Linked Server to Oracle, I installed:
Net Configuration Assistant
Net Manager
ODBC Driver
OLE Driver
The driver architecture should match the machine architecture. In my case it was 64bit Windows Server, so I used the 64-bit driver (win64_11gR2_client.zip).
I then ran the Net Config. Assistant and setup the oracle config (host/port/user/pass/service name). Make sure you pass a connection test here. This will configure your tnsnames.ora file (%path%\product\11.2.0\client_1\network\admin\tnsnames.ora)
If you can't connect, look into the sqlnet.ora file. I had to alter mine to read SQLNET.AUTHENTICATION_SERVICES= (NONE) before I could connect successfully.
I then ran ODBC to setup a System DSN using the same name setup in the Net Config. Assistant.
Following is valid for Oracle, I don't know if it all applies also for other RDBMS.
Database server and client are independent from each other, i.e. you can connect with an 32-bit Oracle Client to a 64-bit Oracle database server.
However the architecture of ODBC-Driver and Oracle Client have to match, i.e. a 32-bit ODBC driver works only with an 32-bit Oracle Client, a 64-bit ODBC driver needs the 64-bit Oracle Client. This restriction applies also for other providers like OLE DB or ODP.
A 64-bit Oracle client requires a 64-bit Windows, of course. Installing a 32-bit Oracle client on 64-bit Windows is no problem.
It is also possible to have both 32-bit and 64-bit Oracle client (and thus both architectures of ODBC drivers) installed on the same machine. However, you have to do a few "tricks" to make them both working seamless.

Trying to connect a remote MySQL Database to Visual Studio 2010 Pro (C++)

Ok guys, I've been trying to get this working for a few weeks in my spare time, and all day today, and I have nothing to show for it, so here's my question.
First off, the end goal for this is to read and write basic information (id #s, names, etc.) from a remote mysql database, to a C++ program written in Visual Studio 2010 Pro, or something equivalent (and free). I access the server from my laptop with SSH, and I can call family members to mess with router settings and such.
I'm trying to use a MySQL database on a Ubuntu Server machine that I access remotely from a Windows 7 laptop. I have installed MySQL Connector C++ from the MySQL website (the msi installer). NOTE: I have not done anything with the Connector install except run the exe I downloaded. Didn't think I needed to compile anything, but I'm wrong a lot. I have created a database, a user who has privileges to the database, and this user can (in theory) connect from any ip, because it is declared as 'username#'%'. I also changed the my.cnf file so that the bind-address line is commented out. I used 'mysqladmin ping -h serveraddress -u username -p' and that gave me 'mysqld is alive', so I'm assuming the database is accessible from any ip remotely. So, I opened up VS 2010 Pro, made a new project, went to tools, and then 'Connect To Database'. I selected Microsoft MySQL Server and put in the information exactly as I did for mysqladmin. I clicked Test Connection and I get an error box that ends with 'provider: Named Pipes Provider, error 40 - Could not open a connection to SQL Server'. Sorry for the block of text, just want to give all the details I can.
Hopefully I'm close to making this work, I'm not pressed for time but I'm really tired of not being able to work on anything else in the project, since it all branches from this database connection.
Thanks you all! I'll reply with whatever you need me to during the day, I'm not much of a night owl anymore =)
UPDATE:
I have the sample code from the mysql site compiling correctly, it was just a matter of finally getting a few hours to sit down and fix linker/library errors one at a time, downloaded the boost libraries, and changed include directories to direct paths when I could get them to work correctly. Now all I need to do is learn how to use it lol
Thanks all!
Not sure if this is the problem but be sure to use the 32 bit ODBC Administrator if you are building a 32 bit application. If you are on a 64 bit PC, by default you are going to be using the 64 bit ODBC Administrator and consequently your 32 bit application won't actually see the DSN that you've created. Run the 32 bit ODBC Administrator using this path: C:\Windows\SysWOW64\odbcad32.exe and then create your DSN.

how to check whether services is running on 32 or 64 bit mode

I am using windows sever 2003 and it is 64 bit server, however there are some application whose services are running on 32 bit mode, I just want to check which are ther services are running on 32bit mode.
Is there any command in windows or there is any settings to find out this.
Thanks.
You can check the task manager, 32 bit processes have *32 appended to their name in the processes list.