My boss has asked me to set up a connection to our oracle Database (not local).
My first step was to download a oracle ODBC driver to use.
I downloaded and installed "ODBC Driver for Rdb, Release 3.3.2.0 64-bit (odbc3320_64.zip)".
I then decided to set up the DNS as I have done before using ODBC manager in windows 7.
Unfortunatly its not as easy as setting up a connection to a sql server.
Im wondering could some one walk me through the process or has anyone got a video link?
Many thanks
heres TNSPING result
Assuming that you are trying to connect to an Oracle database, not an Oracle RDB database (RDB is a database that Oracle the company acquired from DEC), and assuming that the Oracle database is a reasonably recent version, and assuming that you do not have a version of the Oracle client installed on your machine now, the simplest approach is likely to download and install the 11.2 Oracle client on your machine and to choose to install the Oracle ODBC driver as part of that installation.
If you look at the Oracle Database Software Downloads page, under Oracle Database 11g Release 2, there will be a set of links for both 32- and 64-bit Windows. Choose the "See All" option for whatever version of Windows you have. That should give you an option to download something called the "Oracle Database 11g Release 2 Client" which is going to be a ~600 MB download. Once you have that, run the installer and make sure to include the Oracle ODBC driver as part of the installation (you may need to do a custom install, I don't recall which of the client installation options includes an ODBC driver by default).
Related
I need to install both 32 and 64 bit client for Oracle 11g but at the following links I can just find the Oracle instant client, while I need the full installer:
https://www.oracle.com/it/database/technologies/instant-client/microsoft-windows-32-downloads.html
https://www.oracle.com/it/database/technologies/instant-client/winx64-64-downloads.html
E.g.: I can find 11.2.0.4.0 version (instant client) but not the previous (11.2.0.3.0), which was available with the full installer.
At the moment it seems that Oracle has completely abandoned the full installer (now unavailable on official sites), but still useful for those who need to quickly establish connections between systems (e.g. connected servers, ODBC data sources, etc.)
I hope someone can help me
You can download it from the Oracle edevlivery Cloud
(you need an Oracle Account in order to download it)
It's a bit tricky to find, but you have to search for the Database 11g (11.2.0.4) and when you "check out" you have to choose which software you want to download, just uncheck Database and Clusterware, choose the platform and download your full client
Here's a screenshot from the site
So I downloaded Oracle 19c DBMS. Then I downloaded Sql Developer. When I try to add a new connection, I get the message
How do I get past this. I have seen some other threads on this but none of the solutions that I understand seem to fix it. I need to keep the connection type as local. Is there somewhere I can go and just adjust this path?
EDIT
I used just a basic connection and the name database name in the service name box and it worked. The initial setup instructions I had were dated and not set up for 19c. One of the comments in the answer below suggested this.
For 20.4.1 and bequeath connection you must have a 21c instant client as we're using a 21c jdbc driver.
If you're not on Linux, that means you'll need version 20.4.0 so you can use a 19c Instant Client.
Windows 21c Clients should be available later this Summer.
Edit/Update: Version 21.2.1 now supports 19c and 21c Clients. 21c Instant Clients are rolling out across supported platforms. Currently avail for Linux, soon to include Windows and OS X.
In my case, the DB connection changed from Network Alias to Connect Identifier post a company pushed update, simple fix after hours /days of trouble shooting.
enter image description here
Ran into this error with Oracle SQL Developer and the fix for us was to in Oracle SQL Developer:
Tools -> Preferences
In the tree view on the left Expand Database and select Advanced
In Use Oracle Client click Configure...
Set the path to your Oracle home (should looks something like C:\Path\To\Oracle\19.n)
Check the Use Oracle Client box
In the Tnsnames Directory set it to the folder containing the tnsnames.ora file (should looks something like C:\Path\To\Oracle\19.n\network\admin)
Click OK
Relaunch Oracle SQL Developer
To perform tests in advance of an upgrade from Oracle 11gR2 to 12c on our production systems, I tried to update the database of a developer virtual machine (Windows 7). The current Oracle Database version of this old developer machine is 11.2.0.1.0.
The setup file of Oracle 12c then told me to patch to 11.2.0.2, 11.2.0.3 or 11.2.0.4 first. So I tried to find and download the Patch to 11.2.0.4 for Windows x64. The official Oracle page only lists 11.2.0.1, so I did a quick search that lead me to this page, which in turn lead me to this page.
I am used to be forced to login to download stuff from Oracle, but the second page tells me I need special support privileges. Seriously? Oracle allows me to setup a developing machine with their enterprise editions but I need support privileges to download a patch to the most recent version of Oracle 11?
Did I miss something? How am I supposed to test the upgrade process on my developing machine(s)?
Thanks for any help!
There is another way to update your database version to version 12c.
Install the new version in a different HOME, export the full database 11g with expdp tool and then import it into the new updated data instance with impdp tool.
Do you happen to know which "Customer Service Identifier" (CSI) you're using when you attempt to download the patch?
See if you can determine the "Customer User Administrator" (CUA) for your company's My Oracle Support (MOS) Account associated with that CSI.
Then send that party a request to grant you download privileges on that CSI.
You may encounter additional hurdles if the CSI in question has moved into "extended support required" status.
I had this very adventure a few months ago.
And note that though I am writing this in 2020 when Oracle 11g is out of support, my aim here is to help people work through the "not authorized to download" issue the question references - which can pertain to Oracle versions new and old.
I have installed Oracle Database 11.2.0.1 Win64 and also Client 11.2.0.1 Win64 in my windows 7 Ultimate and I was able to access Oracle database using Sql*plus
using sqlplus / as sysdba. After that I installed ODP.NET ODTwithODAC1120320_32bit to work with Oracle using C# in Visual Studio 2010. When i tried to add connection to Oracle database using ODP it pops out ora-12560 :TNS: protocol adapter error and even during logging to Oracle using SqlPlus / as sysdba.
I have read several articles that say stopped service will cause but mine is running.
What could be the problem???
The main problem that I faced Connecting to Oracle 11g using Server explorer in VS 2010 was not version compatibility of ODP with Oracle database but it's architecture. After such errors I uninstalled Oracle Database 11g using deinstall.bat file then cleaned Registry Key ../Software/Oracle and cleaned up temp files, did a system restart. Then installed Oracle 11g Database x32 Database server, ODP.NET x32, checked Env vars.
First success was that I was able to connect to DB using SQL*Plus. After that started VS 2010 and tried to connect ..... Connected! wow has worked in VS IDE. I was so happy :)
I remember how many times I reinstalled Oracle(cleaning,configuring checking listeners, restarting services). Then my hard work really paid off.
here is a screenshot
Generally, I advise to install Oracle server under different credentials than what you usually use. The Oracle server (under Windows) makes use of a few environment variables; and the same is the case with ODP.NET as well. And while you can't easily switch between different sets of env variables in your user profile, you can assign different env var values to a (different) user under which the Oracle server is installed and/or being run.
If you already have your Oracle server installed (which, I suspect, is your case), then try:
Create a new user in your Windows, make him sufficiently privileged. ("Admin" rights will do fine. :-))
Log in as the new user.
Set up ORACLE_HOME, ORACLE_SID, NLS_LANGUAGE and PATH environment variables for that particular user (not globally for the whole Windows!) to point to your Oracle server.
Log in as the original user.
Start the Services management console ("services.msc").
Change "Log On" credentials for the OracleServiceSOMETHING and Oracle SOMETHING VSS Writer Service and OracleJobSchedulerSOMETHING and OracleOraDb11g_home1TNSListener to that new user+password you just created. (... where SOMETHING is usually the name of your instance)
Stop all Oracle services.
Set up ORACLE_HOME and PATH env var to point to your ODP.NET root and root\bin folders respectively; set up the ORACLE_SID and NLS_LANGUAGE vars to whatever values you need.
Start all Oracle services. (After this moment they should be running under their own credentials.)
Let's pray that it works.
I myself would have to improvise, too, if this scenario didn't work. But so far I have successfully run two Oracle servers and one Oracle client on the same machine this way with no problems, so I hope it works for you too. If it does not, then there's still the option of reinstalling your Oracle server completely.
Don't forget about backing up your database ... just in case something horrible happens.
Is it possible to install both Oracle XE and Oracle 11g in my machine? What is the difference between the two? I want to connect to Oracle using Access. Does this require Oracle 11g or can I also use Oracle XE?
You should be able to install as many (vaguely recent) versions of Oracle as you would like so long as you install them in separate Oracle Homes. There can be a bit of complexity in having multiple versions of Oracle installed because each Oracle Home will have a separate client installation with separate configuration files by default (though you can centralize some of that with appropriate environment variables). That can cause a bit of confusion if you're using the "wrong" client where, for example, you haven't configured a connection to a particular database.
Oracle XE is a free product that has various limits that make it sufficient for a smaller system (4 GB of user data, 1 GB of RAM, 1 CPU core if memory serves). Oracle 11g is a family of different database products that Oracle sells (enterprise, standard, and standard edition one). The feature difference between 10g and 11g is incremental-- probably nothing to be terribly concerned with if you're just building a simple system with an Access front end.
You should be able to connect to essentially any version of Oracle using Access by configuring an appropriate ODBC connection. During the installation process, you will want to ensure that the Oracle ODBC driver is installed for whatever database(s) you use-- that's probably not in the default install.