ASM是Oracle 10g R2中為了簡化Oracle數據庫的管理而推出來的一項新功能,這是Oracle自己提供的卷管理器,主要用于替代操作系統所
1)ASM(自動存儲管理)的來由:
ASM是Oracle 10g R2中為了簡化Oracle數據庫的管理而推出來的一項新功能,這是Oracle自己提供的卷管理器,主要用于替代操作系統所提供的LVM,它不僅支持單實例,同時對RAC的支持也是非常好。ASM可以自動管理磁盤組并提供有效的數據冗余功能。使用ASM(自動存儲管理)后,數據庫管理員不再需要對ORACLE中成千上萬的數據文件進行管理和分類,,從而簡化了DBA的工作量,可以使得工作效率大大提高。
2)什么是ASM
ASM它提供了以平臺無關的文件系統、邏輯卷管理以及軟RAID服務。ASM可以支持條帶化和磁盤鏡像,從而實現了在數據庫被加載的情況下添加或移除磁盤以及自動平衡I/O以刪除“熱點”。它還支持直接和異步的I/O并使用Oracle9i中引入的Oracle數據管理器API(簡化的I/O系統調用接口)。
ASM是做為單獨的Oracle實例實施和部署,并且它只需要有參數文件,不需要其它的任何物理文件,就可以啟動ASM實例,只有它在運行的時候,才能被其它數據訪問。在Linux平臺上,只有運行了OCSSD服務(Oracle安裝程序默認安裝)了才能和訪問ASM。
如何修改ASM的sys密碼
如何將ASM中的數據文件復制到操作系統中
Oracle 11g RAC ASM磁盤全部丟失后的恢復
Oracle 11g從入門到精通 PDF+光盤源代碼
RHEL6 ASM方式安裝Oracle 11g R2
Oracle 10g 手工創建ASM數據庫
Ubuntu 12.04(amd64)安裝完Oracle 11gR2后各種問題解決方法
如何修改Oracle 10g ASM的sys密碼
3)安裝配置asm軟件
1.下載地址:otn 找對應內核的asm所需安裝包
2.以root用戶安裝asm包:
ps:kernel-debug kernel-PAE kernel-xen 是asm所需先前包,從linux安裝光盤中可以獲得
3.硬盤分區
[root@localhost temp]# fdisk -l
Disk /dev/sda: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 535 4192965 82 Linux swap / Solaris
/dev/sda3 536 26108 205415122+ 83 Linux
Disk /dev/sdb: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table
[root@localhost temp]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 26108.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-26108, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-26108, default 26108):
Using default value 26108
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@localhost temp]# fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 13054.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-13054, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-13054, default 13054):
Using default value 13054
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
更多詳情見請繼續閱讀下一頁的精彩內容:
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com