Connect oracle 11g client from windows 7 to Windows server 2008 - database

Good afternoon dear all. I am Shaiju.I need your advice on installing Oracle 11g database client software in my windows 7 64 bit OS workstation. The following is my scenario.
I have installed Oracle Database 11g 64 bit on my server (Windows 2008 R2 Standard 64 bit). It works well.
I have to access the database from my client machine (Windows 7 64bit). I have installed oracle database 32 bit client in the workstation. I chose Administrator mode method while installing the oracle client software.
I copied tnsnames.ora, listener.ora from the server and pasted them in workstation under network\admin folder.
When I tried to connect the database through sqlplus, it could not connect the database. It says "Error: ORA-12541: TNS:no listener".
If you have any idea what could be the problem, please advise me how to sort it out.

First I'll assume that the listener and database are up on your server (you can see them as windows services). If you don't know what you are doing I'd strongly recommend using the the oracle configuration assistant to modify the tns files and always keep a backup. They are very sensitive if you don't get the syntax right.
http://docs.oracle.com/cd/B16276_01/doc/server.102/b14196/network005.htm
You could also try easyconnect http://docs.oracle.com/cd/B19306_01/network.102/b14212/naming.htm#i498306

Related

SQL Server 2019 cannot see Oracle 12.2.0 OraOLEDB12.dll in Providers list

My SQL Server 2019 Enterprise is up and running on a Windows 2019 Core vm. Connections to SQL Server databases are A-OK.
I have installed the OLEDB driver OraOLEDB12.dll via the oui.exe in the ODTwithODAC122011.zip.
I checked only the Oracle Provider for OLE DB in the Component Name list.
It created the appropriate TNSNAMES.ORA file from the info I provided.
The installer added the appropriate paths to the environment var PATH.
After restarting the Windows 2019 Core VM, and reconnecting SSMS v18.8 to the SQL Server I could not see the provider in the Server Objects, Linked Servers, Providers list.
So I ran regsvr32.exe and got back DllRegisterServer in OraOLEDB12.dll succeeded. So I restarted the VM again, and reconnected to my SQL Server and still no joy.
What am I missing here? I've search through lots of google links, on StackOverflow itself and am finding the same results, path issues, registry issues, 32/64 issues. Our Ent SQL Server is x64, our SSMS locally is X64, the Oracle driver is x64.
Did you try to install more than one Oracle client? Oracle OLEDB driver can exist only once (i.e. once each for 32-bit and 64-bit).
Version of Oracle OLEDB driver must match exactly the Oracle client.
Maybe have a look at my Oracle Connection Tester, this may give you an indication whether your Oracle OLEDB driver is properly installed.
Gentlepersons,
My apologies, I did indeed install the 32 bit driver when I thought I was installing the 64 bit.
Have deinstalled (as Oracle calls it) the previous and am moving forward with the correct installation.
Again, my apologies for wasting time.
G

SQL Server 64-bit ODBC Connection to 32-bit Pervasive SQL v10

I am using the 64-bit version of SQL Server 2016 Express, trying to connect to a 32-bit Pervasive SQL v10 database. I am setting up a Linked Server in SQL Server via ODBC connection, but I am receiving this error that has given me a lot of pain in the past:
The specified DSN contains an architecture mismatch between the Driver and Application
I had a similar issue not long ago trying to connect to a Microsoft Access database, but with help here I was able to obtain the 64-bit ODBC driver for Access. However, there does not seem to be one for Pervasive v10 at all, only for PSQL v11+, which does not help me in this case.
Previous question: SQL Server Linked Server to MS Access - DSN Architecture Mismatch Error
So if anyone has a suggestion for connecting to a 32-bit client from a 64-bit SQL Server installation, when there does not exist a 64-bit ODBC driver for this client, please let me know.
One of the suggested solutions was to use an OLEDB link instead (but no details provided on this, and I'm not sure how it would differ from the linked server I am already trying to create, which is already using OLEDB).
There was also mention somewhere of installing an entirely separate 32-bit SQL Express client, and chaining an additional ODBC link to point to the first one, but I would rather avoid all that overhead if possible, especially since this is a production server that is already running Sage 50 in addition to our own software and web services with SQL Server...
Other details: The client that is built on Pervasive SQL v10 that I am trying to connect to is Peachtree 2017 - Sage 50. This is all running on Windows Server 2012 R2 Standard.
More reading here:
https://support.na.sage.com/selfservice/viewdocument.do?noCount=true&externalId=12693&sliceId=1&cmd=displayKC&dialogID=50216&docType=kc&noCount=true&isLoadPublishedVer=&stateId=50217&docTypeID=DT_Article&ViewedDocsListHelper=com.kanisa.apps.common.BaseViewedDocsListHelperImpl
https://www.experts-exchange.com/questions/23995371/Installing-Pervasive-SQL-Client-on-Windows-2008-64bit-missing-ODBC-Driver.html
Edit:
Thanks for the comments! After further investigation... it looks like this IS actually PSQL v11, not v10. Now, I'm not sure why the 64-bit ODBC driver is not already installed... but I am looking into this now...

Can 2 Oracle database instances listen on the same port on the same machine

I have installed windows 7 64 bit os on my machine and installed oracle 12c database on the machine. Database software got installed properly and i'm able to connect using sql developer client. The database instance is listening on port 1521. I have also installed oracle xe 11g edition. During the installation i did not get any errors and I got the message that installation is successful and complete. However, when i try to access it using sqldeveloper tool, the listener seem to be refusing the connection. How can i make both xe and 12c work on the same machine. Please let me know your suggestions.
How can i make them work both at the same time. I have seen cases where 2 instances use same port on the same machine.
Thank you.

Error: ORA-12154 SQL Server Link Server with Oracle 11g in Windows Server 2012 R2

I need to create Link Server in SQL Server 2012 Enterprise 64 using Oracle ODAC.
I have done everything I know, including multiple re-installation of Windows Server 2012 Standard R2 64. The ODAC is also 64bit.
I am able to connect to Oracle 11g using Oracle SQL Developer using TNS as Connection Type.
I am beginning to think this may have something to do with Windows Server. Because I have never experience this issue on other systems not running Windows Server.
I get this error:
returned message "ORA-12154: TNS:could not resolve the connect identifier specified.
Thanks
After combining through hundreds of internet posts and install/reinstall. I discovered the problem was the ORACLE ODAC Components. Every article on the internet tells you to install 64bit ODAC if you are running 64bit database, however, this is not accurate.
After spending two days trying to get this to work, I decided to try the 32bit ODAC and it worked.
In case anyone is having this same issue.

64 bit SQL Server 2012 is not visible for other sytems on the network

I have brand new SQL Server 2012 installed on 64 bit windows 7 Pro system.
I wonder how I can make this SQL Server visible for the rest of the network?
Right now when I attempt to find it via SQL Server Management Studio on for example windows 2003 server - it just not there.
And I can not connect to it via ODBC either because that new SQL Server not no the list of available database engines on my network.
I can see shared files over windows explorer, so nothing wrong with Windows. And from new SQL Server Management Studio on Windows 7 I can connect to any of my existing SQL Server engines. We are running mix of 64 and 32 bit systems on the network.
What else should I do to make it work?
This is additional info: I have 32 bit application mix of legacy Classic ASP, VB6 and NET. My task is to start upgrading databases to most recent from 2005 and 2008 to 2012 edition.
#SaUce comment above is right on. To add more detail, check in the SQL Server Configuration Manager.
Expand SQL Server Network Configuration. Open TCP/IP. Go to IP Addresses tab. Scroll to bottom. Change TCP Dynamic Ports to nothing (blank) and change TCP Port to 1433
Ensure Windows Firewall is not blocking port 1433. Open a port in Windows 7 Firewall
Open Windows services and make sure the SQL Browser service is enabled and running. Start a service
Ok, here is a solution which I found bizarre at least.
as I mentioned in my original post our network is a mix of 32 and 64-bit OS running on the same network.
I could not see the SQL 2012 server (64 bit OS) until I shut down the firewall on the Server OS. Just opening ports on Server side did not do a thing to improve situation. Is this a bug on OS or a firewall? - I do not know.
So currently I am using AV firewall capability on the server as well as general network firewalls but not windows firewall on the server.
Thanks all of you who tried to help.
Installing the SQL Server Management studio alone will not help it. We need to install the SQL Express As well from below link microsoft.com/en-us/download/details.aspx?id=42299 and the Instance will now start showing in the Local Server list. –

Resources