| Laptop ASM for Windows |
|
|
| Written by amit poddar | |
| Thursday, 07 June 2007 | |
|
1.0 Introduction In 10g Oracle introduced its own volume manager Automatic Storage Management (ASM). There was a lot of hoopla surrounding it. Many notable authors have praised it and have said that ASM is the future of storing database files. So obviously many oracle technicians, including me wanted to learn this new technology.
But ASM needs raw devices which I can provide by attaching some unformatted hard drive to my desktop. I can also install Vmware and use the guest operating system to install ASM since I can easily fake raw devices in Vmware virtual machine. But I didn’t want to go through all that pain I wanted to be able to install and learn ASM on my desktop without buying anything or installing anything extra except Oracle. I came across a very creative way of simulating ASM which I am going to describe in this article.
This article assumes that you are running professional version of windows and you are using Oracle version 10g release 2 i.e. 10.2.0.1. Also this article has been written and tested for 32 bit windows only. I have not done this on 64 bit windows, so I don’t know whether this will work on 64 bit windows or not.
This article will go through the following:
So if you are running any professional version of windows, and are planning to use 10g release 2 Oracle, then please read on to implement ASM on your humble desktop.
2.0 Hard disk faking methods
ASM takes units of physical disks and wraps them up into a logical volume which is then presented to databases as a single chunk of available storage. To create an ASM storage array on a laptop or desktop PC, therefore, we need to be able to present Oracle with a number of 'chunks' of physical disks. There are many ways to do this which I am going to describe in detail.
As I mentioned before 10g release 2 comes with an executable called asmtool which can be used to create solid files to be used as physical storage devices. When I say solid I mean they are filled with zeroes as opposed to empty or sparse file i..e all the space in the file is really allocated and each byte in the file is 0. ASM demands “solid” files to treat them as physical storage.
This executable is located in ORACLE_HOME/bin directory, which should already be in your path after installing Oracle software. You should therefore be able to invoke this executable from anywhere. Following commands will create 8 files of size 1GB each to be treated as 8 physical devices by ASM.
|
|
| Last Updated ( Saturday, 10 November 2007 ) |






