Sie sind auf Seite 1von 6

MacLochlainns Weblog

Michael McLaughlin's Technical Blog

Oracle 11gR2 on Windows 7

with 9 comments Here are step-by-step instructions for installing Oracle Database 11g Release 2 on Windows 7. Its 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 didnt work without intervention. I hadnt 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 didnt 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


1. 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). 2. Install Oracles SJDK and run time for Java 6 or 7 on Windows 7 (I installed Java 7).

3. Disable Microsofts 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. 4. Configure your C:\Windows\System32\drivers\etc\hosts file. Use lines 1 through 3 when youre using a DHCP IP address, and lines 1 through 4 when youre 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 ::1 127.0.0.1 172.26.126.131 localhost localhost McLaughlinMySQL McLaughlinMySQL.techtinker.com McLaughlinMySQL McLaughlinMySQL.techtinker.com

5. Create a user account name that doesnt have a white space, like McLaughlinM in
the screen shots, and assign it Administrator privileges.

Oracle 11g Release 2 Installation Steps 1. 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. Heres a screen shot of the directory after expanding both compressed files (done with WinZip 15). You should notice that the two expanded compressed files put everything into a database directory (or folder). Within that folder, you double click on the oui icon to launch (start) the Oracle Universal Installer. Itll open a command prompt that may dwell on the screen for a few seconds up to maybe fifteen seconds.

2. Its a good idea to provide an email address for security updates no matter what.
You can uncheck the box if you dont want updates via Oracle Support Services. Click the Next button to continue.

3. Most developers want to Create and configure a database. If thats your desire,
leave the default radio button checked. Click the Next button to continue.

4. Most developers install their test instance on a desktop or laptop. If thats your
desire, leave the defaultDesktop Class radio button checked. Click the Next button to continue.

5. These are default settings and generally the easiest to use. Id 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.

6. The next screen is a progress bar that checks for prerequisites. You shouldnt 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 youre much beyond 3 minutes there may be a resource problem with your Windows PC or virtual machine.

7. This shows you all the selected values for the installation. Unless you want to abort
the installation, click the Finish button to proceed.

8. This screen is the main progress bar, and youll 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 its a bad time to take a break.

9. The first popup screen requires you to authorize the Java runtime to call home. You
should click the Allow Access button to proceed.

10.

When the progress bar starts configuring the instance, failures can occur. The first may occur during the network configuration, which typically happens if you didnt preconfigure the hosts file. You dont need to do anything but watch here unless the installer triggers an error.

11. The following progress bar is launched by the Oracle Database Configuration Assistant. It typically runs without a problem. You dont 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.

12.

The second popup screen requires you to authorize the Java runtime to call home. You should click theAllow Access button to proceed.

13.

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.

14. The next dialog shows you that the network and database instances are configured. Its also running the OEM (Oracle Enterprise Manager) installation. You can wait here but it wont be a long wait.

15.

This is the last dialog and says youve installed Oracle Database 11g Release 2 successfully. You can theClose button to complete the installation.

Das könnte Ihnen auch gefallen