Vous êtes sur la page 1sur 3

step to Create ASM Instance Manually on Windows

------------------------------------------------
1. Create Required RAW Partion (four 2048 Mb)
2. Create ASM Parameter file and SAVE it as INIT+ASM.ora
INSTANCE_TYPE=ASM
DB_UNIQUE_NAME=+ASM
LARGE_POOL_SIZE=8M
asm_power_limit=1
processes=200
background_dump_dest='G:\oracle\product\10.2.0\admin\+asm\bdump'
core_dump_dest='G:\oracle\product\10.2.0\admin\+asm\cdump'
user_dump_dest='G:\oracle\product\10.2.0\admin\+asm\udump'

3. create required folders in admin directory


4. create asm service
cmd > oradim -new -asmsid +asm -syspwd asmsys
5. Label RAW disk using asmtoolg
cmd > asmtoolg
label 2 disk as DATA
label 1 disk as RECO
to verify
cmd> asmtool -list
5. connect to asm instance
set oracle_sid=+asm
sqlplus "sys/asm sys as sysdba"
Connected to an idle instance.
SQL>
SQL>
SQL> startup
ORA-29701: unable to connect to Cluster Manager
SQL> exit
--Run the BAT file
G:\>oracle\product\10.2.0\db_1\bin\localconfig add
Step 1: creating new OCR repository
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'oracle', privgrp ''..
Operation successful.
Step 2: creating new CSS service
successfully created local CSS service
successfully added CSS to home

-- Again connect to instance


SQL> startup
ASM instance started
Total System Global Area 79691776 bytes
Fixed Size 1289004 bytes
Variable Size 53236948 bytes
ASM Cache 25165824 bytes
ORA-15110: no diskgroups mounted

SQL>
SQL>
SQL>
SQL> create diskgroup data normal redundancy disk '\\.\ORCLDISKDATA0', '\\.\ORCL
DISKDATA1';
Diskgroup created.

--Require 2 disk for normal Redundancy


SQL> create diskgroup reco normal redundancy disk '\\.\ORCLDISKRECO0';
create diskgroup reco normal redundancy disk '\\.\ORCLDISKRECO0'
*
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15072: command requires at least 2 failure groups, discovered only 1

SQL> create diskgroup reco external redundancy disk '\\.\ORCLDISKRECO0';


Diskgroup created.
SQL>
SQL>
SQL> shutdown immediate
ASM diskgroups dismounted
ASM instance shutdown
SQL>
SQL>
SQL> startup
ASM instance started
Total System Global Area 79691776 bytes
Fixed Size 1289004 bytes
Variable Size 53236948 bytes
ASM Cache 25165824 bytes
ORA-15110: no diskgroups mounted

Edit parameter asm pfile add the following parameter


---------------------------------------
asm_diskgroups=DATA,RECO
asm_diskstring='\\.\ORCLDISK*'
complte pfile
------------
INSTANCE_TYPE=ASM
DB_UNIQUE_NAME=+ASM
LARGE_POOL_SIZE=8M
asm_power_limit=1
processes=200
background_dump_dest='G:\oracle\product\10.2.0\admin\+asm\bdump'
core_dump_dest='G:\oracle\product\10.2.0\admin\+asm\cdump'
user_dump_dest='G:\oracle\product\10.2.0\admin\+asm\udump'
asm_diskgroups=DATA,RECO
asm_diskstring='\\.\ORCLDISK*'
shutdown and restart asm instance
SQL> conn sys as sysdba
Enter password:
Connected to an idle instance.
SQL>
SQL> startup
ASM instance started
Total System Global Area 79691776 bytes
Fixed Size 1289004 bytes
Variable Size 53236948 bytes
ASM Cache 25165824 bytes
ASM diskgroups mounted