Professional Documents
Culture Documents
http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asminst.htm
IN CASE CREATING ASM INSTANCE MANNUALLY, THESE ARE THE CONTENTS OF THE init+ASM.ora
###########################################
###########################################
# _asm_allow_only_raw_disks=false
INSTANCE_TYPE=ASM
DB_UNIQUE_NAME=+ASM1
ASM_POWER_LIMIT=1
ASM_DISKGROUPS='dgroupA','dgroupB'
LARGE_POOL_SIZE=12M
ASM_DISKSTRING='\\.\ORCLDISK*'
###########################################
# Miscellaneous
###########################################
instance_type=asm
compatible=11.1.0.7.0
###########################################
# Pools
###########################################
large_pool_size=12M
###########################################
remote_login_passwordfile=exclusive
##########################END #######################
C:\>diskpart
2. Navigate to:
Control Pannel => Computer Management => Storage => Disk Management
[Control Panel => All Control Panel Items => Administrative Tools] => Storage => Disk Management
If the Disk is not initialized, right click on the disk an initialize it.
3. Identity the Disk Number for the raw/Unformatted Hard Disk Drive(s) – (currently unallocated) to
allocate to ASM.
Example: If you have only one Hard Disk Drive assigned Disk Number 1, Issue the following
Diskpart command:
RESPONSE:
4. Create some Primary Partitions, each 2 GB in size. In this example, we shall create FOUR partitions:
DISKPART> exit
Leaving DiskPart...
The Computer Management … Disk Management console now looks like below:
In this case, Disk3 was taken up by the USB Port splitter device as the HDD drives were attached via USB
ports.
6. Invoke asmtoolg (asmtoolg (ENSURE YOU INVOKED CMD AS ADMINISTRATOR TO AVOID “AN ACCESS
DENIED” ERROR ASSOCIATED WITH OS PERMISSIONS ) is the GUI version. The CLI version is asmtool):
C:\>asmtoolg
8. Click Next and the screen below will appear, showing the partitions created in step 4 above as
‘Candidate devices’ which are available for allocation to ASM.
9. Stamp the four partitions:
\Device\Harddisk1\Partition1
\Device\Harddisk1\Partition2
With the ‘DISKGROUPA’ AND ‘DISKGROUPB’ ASM stamp. This stamping of partitions by the asmtoolg
initializes the drive headers and marks those drives for use by ASM. This assists in reducing the risk of
overwriting a usable drive that is being used for normal operating system files.
10. Click Next and the following Window will pop up:
Rename as appropriate.
Operation successful.
ABOVE ERROR RESOLVED BY RUNNING localconfig delete AND RERUNNING localconfig add AS BELOW:
C:\Documents and Settings\lmwangi>localconfig delete
Operation successful.
Operation successful.
To stop the Oracle Cluster Services Synchronization (CSS) daemon, run the following
command:
On AIX:
/etc/init.cssd stop
On other platforms:
/etc/init.d/init.cssd stop
To start the CSS daemon, run the following command:
$ORACLE_HOME/bin/localconfig reset
This command stops the Oracle CSS daemon and then restarts it.
_____________________________________________________________________________________
ERROR ENCOUNTERED:
NOTE:
ASM can discover up to 10,000 disks. That is, if more than 10,000 disks match
the ASM_DISKSTRING initialization parameter, then ASM discovers only the first 10,000.
Note: ASM does not discover a disk that contains an operating system partition table, even if the disk
is in an ASM disk string search path and ASM has read and write permission for the disk.
GROUP_NUMBER NAME
------------ ------------------------------
1 DGROUPB
PATH NAME
------------------------------ ------------------------------
\\.\ORCLDISKDGROUPB2 DGROUPB_0002
\\.\ORCLDISKDGROUPB3 DGROUPB_0003
\\.\ORCLDISKDGROUPA2 DGROUPB_0000
\\.\ORCLDISKDGROUPA3 DGROUPB_0001
Diskgroup altered.
AFTER CREATING DISK GROUPS USING DBCA AND ASSIGNING DISKS TO THE DISK GROUP DGROUPA:
PATH NAME
------------------------------ ------------------------------
\\.\ORCLDISKDGROUPA0 DGROUPA_0000
\\.\ORCLDISKDGROUPA1 DGROUPA_0001
MOUNT/DISMOUNT COMMANDS:
Disk groups are mounted at ASM instance startup and unmounted at ASM instance shutdown. Manual
mounting and dismounting can be accomplished using the ALTER DISKGROUP statement as seen below.
TO DROP A DISKGROUP
Diskgroup dropped.
Recreate the disk group using DBCA and add disks (re-stamp them using asmtoolg). Then confirm the
new disk group (DGROUPB) has been created successfully as follows:
from v$ASM_DISKGROUP;
SQL> CREATE TABLESPACE USER_DATA DATAFILE '+DGROUPA' SIZE 100M AUTOEXTEND ON;
Tablespace created.
Tablespace created.
1 CREATE USER lenny identified by lenny default tablespace user_data temporary tablespace
temp_data
SQL> /
User created.
TO CREATE A DIRCTORY UTILISING ASM, ISSUE THE FOLLOWING SYNTAX FROM THE ASM INSTANCE:
Diskgroup altered.