Dear Friends,

The below link is having useful information. Thanks to Tomasz.

http://dbaora.com/install-oracle-11g-11-2-0-3-on-windows/

==============================

This article presents how to quickly install Oracle Database 11G Release 2 (11.2.0.3) and as Oracle Grid 11G Release 2(11.2.0.3) on Windows.

Software used:

  • Oracle Database 11G Release 2(11.2.0.3) – 64 bit for Windows
  • Oracle Grid 11G Release 2(11.2.0.3) – 64 bit for Windows
  • Windows 8 Pro 64 bit

You can download Oracle Database 11G Release 2(11.2.0.3) and Oracle Grid 11G Release 2(11.2.0.3). You can download them on Oracle support formerly MetaLink.

p10404530_112030_MSWIN-x86-64_1of7.zip - database software
p10404530_112030_MSWIN-x86-64_2of7.zip - database software
p10404530_112030_MSWIN-x86-64_1of7.zip - grid software

Hardware and software requirements for database and grid software:

  • at least 4GB ram as minimum,  20G space for binaries and 40G for ASM devices
  • Windows Server 2003 – all x64 editions
  • Windows Server 2003 R2 – all x64 editions
  • Windows XP Professional x64 Edition
  • Windows Vista x64 – Business, Enterprise, and Ultimate editions
  • Windows Server 2008 x64 and Windows Server 2008 R2 x64 – Standard, Enterprise, Datacenter, Web, and Foundation editions
  • Windows 7 x64 – Professional, Enterprise, and Ultimate editions

In case you are not planning to install grid 2GB ram is enough.

ASM devices

To run ASM on Windows you need to create at least one RAW logical partition. For this presentation I have created 2 logical partitions each 20GB using diskpart.exe program.

RAW means not formated partition and without assigned letter.

Another option is to use “Computer management” interface which is user graphical interface. It includes “Disk management” tool to manage partitions.

It’s just example for diskpart.exe

1. List available disks on computer. There is only one disk with 40GB free space.

DISKPART> list disk
Disk ###  Status      Size     Free     Dyn  Gpt
 --------  ----------  -------  -------  ---  ---
 * Disk 0  Online      80 GB    40 GB

2. As first step you need to select disk before making any changes on it. In my case there is only one disk so it’s not necessary step but I wanted to show how to do it.

DISKPART> select disk 0
Disk 0 is now the selected disk.

3. List partitions. There is only one primary partition on disk.

DISKPART> list partition
Partition ###  Type             Size     Offset
 -------------  ----------------  -------  -------
 Partition 1    Primary           40 GB  1024 KB

4. Add new extended partition and 2 logical partitions.

DISKPART> create partition extended
DiskPart succeeded in creating the specified partition.
DISKPART> list partition
Partition ###  Type              Size     Offset
 -------------  ----------------  -------  -------
 Partition 1    Primary           40 GB  1024 KB
 * Partition 0  Extended         40 GB    40 GB
DISKPART> create partition logical size=20480
DiskPart succeeded in creating the specified partition.
DISKPART> create partition logical size=20480
DiskPart succeeded in creating the specified partition.

5. Verify new partitions.

DISKPART> list partition
Partition ###  Type              Size     Offset
-------------  ----------------  -------  -------
Partition 1    Primary             40 GB  1024 KB
Partition 0    Extended            40 GB    40 GB
Partition 2    Logical             20 GB    40 GB
* Partition 3  Logical             20 GB    60 GB

Install grid software

This presentation shows how to install grid software as standalone version which is nice to have to find out how ASM works. Unzip grid binaries to a directory and run setup.exe.

unzip p10404530_112030_MSWIN-x86-64_1of7.zip
cd grid
setup.exe

1. You should see following screen. Select “Skip software updates” and click “Next” button.

11gr2_win_grid1

2. Select “Configure Oracle Grid Infrastructure for Standalone Server” and click “Next” button.

11gr2_win_grid2

3. Select language and click “Next” button.

11gr2_win_grid3

4. It’s time to create ASM diskgroup DATA. First you need to make created earlier partitions with diskpart.exe visible by ASM binaries. Click “Stamp Disk” button.

11gr2_win_grid4

5. It will start asmtool. The tool is used to stamp devices(partitions) to be visible by Oracle binaries. Stamp means write some raw informations on the beginning of selected partition. Click “Next” button. Ye ye ye my bad “Dalej” ;).  I use Polish windows :).

11gr2_win_grid5

6. Select device which you want to stamp and enter label “DATA” for it. Then click “Next” button.

11gr2_win_grid6

7. ASM will see this partition as “ORCLDISKDATA0″. Just click “Next” button.

11gr2_win_grid7

8. Just click “OK”(Polish “Zakoncz”) button.

11gr2_win_grid8

9. Repeat step 5,6,7,8 for another device and stamp it with label “BACKUP”. Once it’s done you should see 2 devices. Select redundancy to “External” and select device “ORCLDISKDATA0″ and click “Next” button.

11gr2_win_grid9

10. From security point of view you should specify separate password for user SYS and ASMSNMP. I set for both user the same password. Click “Next” button.

11gr2_win_grid9a

11. On this screen you can specify directory for grid binaries. If you have already some Oracle binaries it makes sense to select already defined Oracle Base.

11gr2_win_grid10

12. Summary screen just before installation begin. Click “Install” button.

11gr2_win_grid11

13. Boring installation …

11gr2_win_grid12

11gr2_win_grid13

15. Installation completed. Just click “Close” button.

11gr2_win_grid14

ASM configuration assistant ASMCA

So far we have created only one ASM group DATA. I want to show how-to quickly add extra group to ASM instance.

1. Run “Automatic Storage Management Configuration Assistant” from Windows menu. Once it’s started click “Create” button.

11gr2_win_grid15

2. Enter disk group name BACKUP, select redundancy to “External”, check checkbox for “\\.\ORCLDISKBACKUP0″ device and click “OK” button.

11gr2_win_grid16

3. Soon new disk group should be created.

11gr2_win_grid17 11gr2_win_grid18

4. Two ASM disk groups “BACKUP” and “DATA” should be visible. Click “Exit” button.

11gr2_win_grid19

Verify in sqlplus that two ASM diskgroups exist.

d:\app\oracle\product\11.2.0\grid\BIN>set ORACLE_SID=+ASM
d:\app\oracle\product\11.2.0\grid\BIN>sqlplus
SQL*Plus: Release 11.2.0.3.0 Production on Wed Jul 17 20:41:40 2013
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Enter user-name: / as sysasm
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 
- 64bit Production With the Automatic Storage Management option
SQL> select name from v$asm_diskgroup;
NAME
------------------------------
BACKUP
DATA

Install database software

Unzip database software to a directory and run setup.exe

unzip p10404530_112030_MSWIN-x86-64_1of7.zip
unzip p10404530_112030_MSWIN-x86-64_2of7.zip
cd database
setup.exe

1. Uncheck checkbox “I wish to recive security updates via My Oracle Support” and click “Next” button.

11gr2_win_db1

2. Ignore this message and click “Yes”

11gr2_win_db2

3. Select “Skip software updates” and click “Next” button.

11gr2_win_db3

4. Select “Create and configure a database” and click “Next” button.

11gr2_win_db4

5. Select “Server Class” and click “Next” button.

11gr2_win_db5

6. Select “Single instance database installation” and click “Next” button.

11gr2_win_db6

7. Select “Advanced install” and click “Next” button.

11gr2_win_db7

8. Select language and click “Next” button.

11gr2_win_db8

9. You can select here type of binaries to install. Once it’s done click “Next” button.

11gr2_win_db9

10. Define directories for database binaries and click “Next” button. The best is to select the same ORACLE_BASE as for grid software.

11gr2_win_db10

11. Accept default settings “General Purpose/Transaction Processing” and click “Next” button.

11gr2_win_db11

12. Enter global database name and SID for your database. Once it’s done click “Next” button.

11gr2_win_db12

13. Specify more details about your database on 4 tabs where you can define memory settings, character set, security settings and if to install sample schema on your database. Once you are happy with your settings click “Next” button.

11gr2_win_db13

11gr2_win_db14

11gr2_win_db15

11gr2_win_db16

17. On this page you can register your database in Oracle Enterprise Manager or create local EM version like in the example below. Click “Next” button.

11gr2_win_db17

18. Select “Oracle Automatic Storage Management” to install database on ASM devices and enter password for user ASMSNMP(the password was defined during grid binaries installation). If you have skipped ASM grid installation select first option “File System” and specify directory where database files should be installed.

11gr2_win_db18

19. Here you can define automatic backups and directory or ASM where backups should be stored. Once you are happy with your selection click “Next” button.

11gr2_win_db19

20. Select diskgroup “DATA” for database datafiles. click “Next” button.

11gr2_win_db20

21. Specify password for each user or enter the same for all. Once it’s done click “Next” button.

11gr2_win_db21

22. If everything is right click “Install” button. It’s the last moment to come back to each of previous point and make changes.

11gr2_win_db22

23. Installation in progress … it will take some time so talk to your girlfriend or pet :)

11gr2_win_db23

24. Database Configuration Assistant will start automatically and create database for you.

11gr2_win_db24

25. When database is ready you should see summary window. You can click “Password Management” to change passwords for many accounts in database. Once it’s done click “OK” button to continue.

11gr2_win_db25

26. You are lucky 11G installation is completed. Click “Close” button.

11gr2_win_db26

Have a fun :)

Tomasz