Oracle 11gR2 on Windows 7
Here are step-by-step instructions for installing Oracle Database 11g Release 2 on Windows 7. It’s provided in response to questions posted on my step-by-step instructions for installing Oracle 11gR1 on Windows 7. For reference, I posted the former because it didn’t work without intervention. I hadn’t updated step-by-step instructions because Oracle Database 11g Release 2 has always worked for me when installing on Windows 7.
A number of students and blog readers have mentioned that it didn’t work for them. My guess is that they had configuration issues within the Windows 7 environment. There are some Windows 7 configuration caveats before you perform this installation, and they are:
Windows 7 Configuration Steps
- Make sure you have at least 3 GB of memory on your Windows PC, or that you can allocate 4 GB of memory to your virtual machine (the latter typically requires 8 GB of real memory to avoid extensive disk caching of memory).
- Install Oracle’s SJDK and run time for Java 6 or 7 on Windows 7 (I installed Java 7).
- Disable Microsoft’s User Access Controls (UAC). I blogged about a set of Windows 7 gripes, and the second point shows you the screen shots that let you disable UAC on Windows 7.
- Configure your
C:\Windows\System32\drivers\etc\hostsfile. Use lines 1 through 3 when you’re using a DHCP IP address, and lines 1 through 4 when you’re using a static IP address. If you want to set a static IP address, check this old post on how to set a static IP address.
1 2 3 4 | 127.0.0.1 localhost
::1 localhost
127.0.0.1 McLaughlinMySQL McLaughlinMySQL.techtinker.com
172.26.126.131 McLaughlinMySQL McLaughlinMySQL.techtinker.com |
- Create a user account name that doesn’t have a white space, like
McLaughlinMin the screen shots, and assign it Administrator privileges.
Oracle 11g Release 2 Installation Steps
- The Oracle Database 11g Release 2 files are broken down into two zip files on the Oracle site. That means you need to download both files, and then expand them into an installation directory. I called my installation directory
C:\OracleInstall, but you can call it whatever works for you. Here’s a screen shot of the directory after expanding both compressed files (done with WinZip 15).
database directory (or folder). Within that folder, you double click on the oui icon to launch (start) the Oracle Universal Installer. It’ll open a command prompt that may dwell on the screen for a few seconds up to maybe fifteen seconds.
- It’s a good idea to provide an email address for security updates no matter what. You can uncheck the box if you don’t want updates via Oracle Support Services. Click the Next button to continue.
- Most developers want to Create and configure a database. If that’s your desire, leave the default radio button checked. Click the Next button to continue.
- Most developers install their test instance on a desktop or laptop. If that’s your desire, leave the default Desktop Class radio button checked. Click the Next button to continue.
- These are default settings and generally the easiest to use. I’d suggest you change the Character Set drop down to Unicode. Then, enter a password twice. Oracle requires that you use at least one capital letter and one number in a 6 character or more long password. Click the Next button to continue.
- The next screen is a progress bar that checks for prerequisites. You shouldn’t have to do anything here because it automatically advances you to the next dialog screen. This generally takes less than a minute to run but can take two or so. If you’re much beyond 3 minutes there may be a resource problem with your Windows PC or virtual machine.
- This shows you all the selected values for the installation. Unless you want to abort the installation, click the Finish button to proceed.
- This screen is the main progress bar, and you’ll be here somewhere between 5 and 10 minutes. The downside is that there are some dialogs that will popup during this phase and you need to authorize them, so it’s a bad time to take a break.
- The first popup screen requires you to authorize the Java runtime to call home. You should click the Allow Access button to proceed.
- When the progress bar starts configuring the instance, failures can occur. The first may occur during the network configuration, which typically happens if you didn’t preconfigure the
hostsfile. You don’t need to do anything but watch here unless the installer triggers an error.
- The following progress bar is launched by the Oracle Database Configuration Assistant. It typically runs without a problem. You don’t need to do anything but watch here unless the installer triggers an error. This takes a few minutes, and unfortunately requires you to stick aroung to again authorize Java.
- The second popup screen requires you to authorize the Java runtime to call home. You should click the Allow Access button to proceed.
- The third and last popup screen asks you to whether you want to open other scheme. Generally, you should click the OK button to proceed.
- The next dialog shows you that the network and database instances are configured. It’s also running the OEM (Oracle Enterprise Manager) installation. You can wait here but it won’t be a long wait.
- This is the last dialog and says you’ve installed Oracle Database 11g Release 2 successfully. You can the Close button to complete the installation.
As always, I hope this helps folks.














[...] Oracle 11g Release 1 on Windows 7 [...]
Oracle 11gR1 Installation on Windows 7
29 Dec 11 at 9:25 pm
Thanks a lot for putting this info out. It helped a lot.
vikash
5 Feb 12 at 12:32 am
Thanks a lot. It is very helpful.
Krishna
22 Feb 12 at 4:09 pm
Thank you. It heped. There is one thing though, I had a problem with the path check. I got an error that said the length of the path specified was longer than 1026 or something. I tried to use different paths to no avail. I eventually saw the ‘ignore’ button and it worked. I am running win 7 on my laptop. Hope it helps somebody.
Joe
27 Feb 12 at 5:23 pm
Great job! Works like a charm! Thank you!
Michal
1 Mar 12 at 2:30 pm
If both different folder part1 and part2 is inserted inside one folder,does it display duplicate file or somehow it will need us to merge the files.Is it ok to proceed with that(merging the files)
shafiq
2 Mar 12 at 4:21 am
It merges them without duplicates.
maclochlainn
2 Mar 12 at 8:10 am
Prerequisite checks failed even though there was ample space on my laptop. Installing oracle was unsuccessful. Please help
ash
13 Mar 12 at 6:14 pm
Did any folder in the path have a white space?
maclochlainn
14 Mar 12 at 5:56 pm
Excellent instructions. Installed without any issues.
Well, unitl I tried to launch SQL developer.
It is asking for userid/password but I dont remember creating any of those in the installation process.
Where might I have gone wrong ?
Thanks for your help in advance!!
Ramesh
10 Apr 12 at 9:23 am
what should i exactly put on the host file?
127.0.0.1 localhost ::1 localhost 127.0.0.1 Hisham-PCIs that ok, or did i miss something?
Hisham
15 Apr 12 at 4:23 am
That should work.
maclochlainn
15 Apr 12 at 9:26 am
Do I need a loopback adapter?
TracJone
19 Apr 12 at 8:59 am
Most OS configurations support loopback but it’s only necessary when you don’t have a network connection.
maclochlainn
19 Apr 12 at 11:59 pm
This should work, you could add the domain at the end of Hisham-PC
hostname.maclochlainn
20 Apr 12 at 12:08 am
Thanks for the detailed steps.It really made my installation easy.
Neeta
7 May 12 at 2:00 pm
[...] finally got around to installing Oracle 11g on Windows 7 Professional Edition, 64-bit (click here for Oracle 11g Release 2 on Windows 7). The only catch was that the Oracle 11g (11.1.0.7) installer validates only against Windows 5.0, [...]
Oracle 11g on Windows 7 | Tran Nguyen Chinh
8 May 12 at 7:36 am