Oracle10g Installation with ASM in Oracle Virtual Box

--- Create ASM Disk --------

VBoxManage.exe createhd --filename asm1.vdi --size 4096 --format VDI --variant Fixed
VBoxManage.exe createhd --filename asm2.vdi --size 4096 --format VDI --variant Fixed

VBoxManage.exe storageattach ORALINUXASM --storagectl "SATA Controller" --port 1 --device 0 --type hdd --medium asm1.vdi --mtype shareable
VBoxManage.exe storageattach ORALINUXASM --storagectl "SATA Controller" --port 2 --device 0 --type hdd --medium asm2.vdi --mtype shareable

VBoxManage.exe modifyhd asm1.vdi --type shareable
VBoxManage.exe modifyhd asm2.vdi --type shareable


--- Output of the commands -------


C:\Program Files\Oracle\VirtualBox>VBoxManage.exe createhd --filename asm1.vdi --size 4096 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 67e80984-5851-4643-92d4-d6c56798d725

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe createhd --filename asm2.vdi --size 4096 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: e9f9c911-f6b1-4c59-958e-a83d998d4300

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe storageattach ORALINUXASM --storagectl "SATA Controller" --port 1 --device 0 --type hdd --medium asm1.vdi --mtype shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe storageattach ORALINUXASM --storagectl "SATA Controller" --port 2 --device 0 --type hdd --medium asm2.vdi --mtype shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd asm1.vdi --type shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd asm2.vdi --type shareable


-----------------------------------------


Start the VM and install oracleasm rpms from this server with exact kernel match:

http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html



If attachment is not done you can do it manually from virutal server's SATA controller option.
--------------------------------------------------------------------

Comments

Popular posts from this blog

SQL Server: Finding Query using SPID

Restoring Master, Model and MSDB from Netbackup