Академический Документы
Профессиональный Документы
Культура Документы
–
Oracle Automatic Storage Management
What is ASM, Why it is used and where it used?What is needed to for ASM?How to Install and manage ASMASM is new option for
managing storage beginning with 10gR2, it reduces burden on Linux systemAdministrator and DBA to check for hot
spot as highly used data files and file layout, whenever thestorage configuration changes, the database storage is re-
balanced.ASM can also be used to provide redundancy, through the mirroring of database files on different
disks.ASM is self-tuning and self
–
managing storage solution for large and small databases. Once we startedusing ASM the DBA needs only manage the disk groups for setting
up a database. After setup, the DBAneed only be concerned with disk groups when monitoring and changing disk
allocations within the diskgroups.ASM is more used in RAC, but you can always use ASM without RAC. There is no relationship
ASM withRAC, it is self-sustaining storage solution.ASM needs its own oracle database (there is no data files gets
created with this database) instance tomanage storage solution for other database, other all the databases it managing
becomes clients for thisone ASM instance. One ASM instance can manage multiple Oracle Databases.When you install 10gR2 and use
OUI to do so, you get option of to install ASM database, you must haveASM instance running before using ASM for Oracle Database.
Best Practices
ASM is the volume manager for all databases that employ ASM on a given node. Therefore, onlyone ASM instance
is required per node regardless of the number of database instances on thenode.ASM instance managing the storage
for several database instances
ASM Files
Configure storage2.
/etc/init.d/oracleasm createdisk DISK1 /dev/sdb1 (for each disk required) /etc/init.d/oracleasm scandisks (on the
2nd node)Run DBCA to map the ASM disks to disk groups.1.
/etc/init.d/oracleaasm status2.
/etc/init.d/oracleaasm listdisk 3.
Fdisk
–
l /dev/sdd4.
/etc/init.d/oracleasm scandisk
Install ASM software/Database instance
Most of the input needed while installing ASM instance1.
I
t is need to be installed user ‘oracle ‘ dba privilege
2.
If cluster is installed already , OUI will automatically detect the cluster option4.
ASM instance can also running under cluster mode, thus eliminating storage as SPOF.5.
It will ask Disk Group Name - , Redundancy - and A candidate Disks , ( which we configured stepone)6.
Logs $ORACLEINVENTOYR/logs
What are the major parameters in init.ora for ASM INSTANCE?-
ASM instance is always names +ASM for non-rac or +ASM_<Node #> for RAC
-
INSTANCE_TYPE = ASM
-
ASM_POWER_LIMIT
= (0-11) defaults is 1
-
ASM_DISKSTRING
–
comma separated list of strings that limits the set of disksthat ASM discovers
-
ASM_DISKGROUPS
= List of disk groups to be mounted by an ASM
V$ASM_OPERATION
–
This view provides information that can be used for adjusting ASM_POWER_LIMIT ( 1-11),resulting power of
rebalance operation when adding disks to disk groupV$ASM_DISK_STATSV$ASM_DISKGROUP_STAT
ASM INSTANCE
DB INSTANCE
v$asm_diskgroupDescribes a disk group (number,name, size related info, state, andredundancy type)Contains one row
forevery open ASM disk inthe DB instance.
v$asm_fileContains one row for every ASMfile in every disk group mountedby the ASM instance.Contains rows only
forfiles that are currentlyopen in the DB instance.
v$asm_aliasContains one row for every aliaspresent in every disk groupmounted by the ASM instance.Empty
v$asm_operationContains one row for every activeASM long running operationexecuting in the ASM instance.Empty
v$asm_attribute
v$asm_disk_iostat