rac new

11g install

http://wenku.baidu.com/view/29eb323d0912a21614792997.html

 

linux 安装

ftp安装

/etc/init.d/network restart

service vsftpd status

 

mount -t vboxsf ora11ins /mnt/share

 

VBoxManage createhd --filename e:\asm\asm1.vdi --size 5120 --format VDI --variant Fixed

 

VBoxManage storageattach rac1 --storagectl "SATA Controller" --port 1 --device 0 --type hdd --medium e:\asm\asm1.vdi --mtype shareable

 

C:\Program Files\Oracle\VirtualBox>VBoxManage createhd --filename e:\asm\asm1.vd
i --size 5120 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 75d6498d-14a2-4475-bd8a-4bde8e074412

C:\Program Files\Oracle\VirtualBox>VBoxManage createhd --filename e:\asm\asm2.vd
i --size 5120 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 3200e5e2-e02b-4fa9-b070-76a990bf23da

C:\Program Files\Oracle\VirtualBox>VBoxManage createhd --filename e:\asm\asm3.vd
i --size 5120 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 77769e9d-c37d-4a99-916c-ab60f75067b8

C:\Program Files\Oracle\VirtualBox>VBoxManage createhd --filename e:\asm\asm4.vd
i --size 5120 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: dcd676f8-185b-408e-bf90-9185b3f00751

C:\Program Files\Oracle\VirtualBox>VBoxManage createhd --filename e:\asm\asm5.vd
i --size 5120 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 883976a7-c3f8-4dfe-9640-3fadc9795fc5

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac1 --storagectl "LsiLogic
" --port 1 --device 0 --type hdd --medium e:\asm\asm1.vdi --mtype
shareable
VBoxManage.exe: error: Could not find a controller named 'SATA Controller'

 

Storage Controller Name (1):            SCSI Controller
Storage Controller Type (1):            LsiLogic

change to

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac1 --storagectl "SCSI Controller"  --port 1 --device 0 --type hdd --medium e:\asm\asm1.vdi --mtype shareable

 

clone:

vboxmanage clonehd "D:\Documents and Settings\zjj\VirtualBox VMs\rac1\scsi1.vdi" f:\rac2\scsi2.vdi

C:\Program Files\Oracle\VirtualBox>vboxmanage clonehd g:\nrac1\new_rac1.vdi j:\n
rac2\new_rac2.vdi
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: 38e82a1b-b4e3-4fc7-ae01-2897f89e3
8af

asm加盘到第二个节点

VBoxManage storageattach rac2 --storagectl "SCSI Controller"  --port 1 --device 0 --type hdd --medium e:\asm\asm1.vdi --mtype shareable

 

单位的少了一个

session    required     pam_limits.so

(家里的)

VBoxManage createhd --filename e:\asm\asm1.vdi --size 5120 --format VDI --variant Fixed

VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 1 --device 0 --type hdd --medium e:\asm\asm1.vdi --mtype shareable

then clone

then rac2

VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 1 --device 0 --type hdd --medium e:\asm\asm1.vdi --mtype shareable

 

new company: 

192.168.56.11,12

192.168.56.21,22

install additional vbox parts....

mount -t vboxsf ora11ins /mnt/share

...

clone

 

new home:

要从性能而言, asm盘应该完全分开。

VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 1 --device 0 --type hdd --medium e:\asm\asm1.vdi --mtype shareable

 

rac1打开的时候 设置上面共享磁盘会出现错误提示:

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac2 --storagectl "S
ATA 控制器" --port 1 --device 0 --type hdd --medium e:\asm\asm1.vdi --mtype shar
eable
VBoxManage.exe: error: Medium 'e:\asm\asm1.vdi' is locked for reading by another
 task
VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), c
omponent Medium, interface IMedium, callee IUnknown
Context: "COMSETTER(Type)(mediumType)" at line 554 of file VBoxManageStorageCont
roller.cpp
VBoxManage.exe: error: Failed to set the medium type

 

grid安装时 提示:

提示ntp 没有运行。

root cause: 找到了, ntp设置的时候漏了一步。

mv /etc/ntp.conf /etc/ntp.conf.orig

 20:33开始安装,看看猛机如何。

 

安装到 updating library时候 hang掉. 很长时间没有动静。

 

ai,又重新来了一遍。 好像上次os忘记安装一些开发包了,,这次,,, yes, move on!!

 

C:\Program Files\Oracle\VirtualBox>vboxmanage createhd --filename d:\asm\asm1.vdi --size 5120 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: dc6d5da6-012b-43dd-8f25-66c747dfd664

C:\Program Files\Oracle\VirtualBox>vboxmanage createhd --filename e:\asm\asm2.vdi --size 5120 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 372e3e7e-9547-43ec-9427-7e26c8e1225c

C:\Program Files\Oracle\VirtualBox>vboxmanage createhd --filename f:\asm\asm3.vdi --size 5120 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 6d938ad2-f6ac-4003-9e8f-4820d8ca4159

C:\Program Files\Oracle\VirtualBox>vboxmanage createhd --filename g:\asm\asm4.vdi --size 5120 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 0c3d203e-706b-442a-a0b8-6e78d7eb3e63

C:\Program Files\Oracle\VirtualBox>vboxmanage createhd --filename g:\asm\asm5.vdi --size 5120 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 33bb6bd8-34ab-4cf2-a16a-9e35f833bce3

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 1 --device 0 --type hdd --medium d:\asm\asm1.vdi --mtype shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 2 --device 0 --type hdd --medium e:\asm\asm2.vdi --mtype shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 3 --device 0 --type hdd --medium f:\asm\asm3.vdi --mtype shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 4 --device 0 --type hdd --medium g:\asm\asm4.vdi --mtype shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 5 --device 0 --type hdd --medium g:\asm\asm5.vdi --mtype shareable

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

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

C:\Program Files\Oracle\VirtualBox>VBoxManage modifyhd f:\asm\asm3.vdi --type shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage modifyhd g:\asm\asm4.vdi --type shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage modifyhd g:\asm\asm5.vdi --type shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage clonehd d:\rac1\rac1.vdi e:\rac2\ac2.vdi

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: d0cb891e-bd03-489f-b0c9-79846b97875

C:\Program Files\Oracle\VirtualBox>VBoxManage clonehd d:\rac1\rac1.vdi f:\rac3\rac3.vdi

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 1 --device 0 --type hdd --medium d:\asm\asm1.vdi --mtype shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 2 --device 0 --type hdd --medium e:\asm\asm2.vdi --mtype shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 3 --device 0 --type hdd --medium f:\asm\asm3.vdi --mtype shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 4 --device 0 --type hdd --medium g:\asm\asm4.vdi --mtype shareable

C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 5 --device 0 --type hdd --medium g:\asm\asm5.vdi --mtype shareable

 

grid安装出现错误

/u01/app/oraInventory/logs/installActions2012-01-08_09-42-25AM.log

expected 18466200 but got 18466204 bytes

 

cksum 算了没错的

一百年前,清王朝惹了孙中山,结果……一千多年前的三国时代,曹操惹了孙权,结果……两千多年前的战国时代,庞涓惹了孙膑,结果……两千多年前的春秋时代,吴王的爱姬惹了孙武,结果……很久很久以前,玉皇大帝惹了孙悟空,结果……姓孙的,惹不起啊!

 

good 找到了以前建好的一套,重新load进来,修改ip, 加入新的共享的asm磁盘,很顺利的竟然起来了!!! -- 等有空再查查和现在的区别。

 

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

 

1)enable archivelog

alter database archivelog;

两个实例都做.

 

然后两个实例rman backup. 备份的时候看到了两个undo tbs.

 list backupset 两次备份都有。

 

test: GPnP

 

 

你可能感兴趣的:(oracle-HA)