Professional Documents
Culture Documents
Les 12
Les 12
12
Copyright 2008, Oracle. All rights reserved.
Objectives
After completing this lesson, you should be able to: Identify the features of Automatic Storage Management (ASM) Set up initiali ation parameter files for ASM and database instances !"ecute S#$ commands %ith ASM file names Start up and shut do%n ASM instances Administer ASM dis& groups 'se (MA) to migrate your database to ASM
12 - 2
ASM
Operating system
12 - 3
12 - 4
,2 instance SI,0sales
,240 ASM2 -/ (2A$
(2A$ A(20
A(2A
ASM dis&s
ASM dis&s
ASM dis&s
ASM dis&s
ASM dis&s
ASM dis&s
12 - )
12 - *
12 - ,
12 - 8
INSTANCE_TYPE = ASM DB_UNIQUE_NAME = +ASM ASM_POWER_LIMIT = 1 ASM_DISKSTRING = '/dev/ d!"/#!$'% '/dev/ d!"/&1#' ASM_DISKGROUPS = d' ()*A% d' ()*B LARGE_POOL_SI+E = ,MB
12 - -
12 - 10
0 e1*( 2 ORACLE_SID='+ASM' 0 !34*4)! /5(4(' SQL6 CONNECT / AS !7!d89 C(55e&2ed 2( 95 :d4e :5!295&e; SQL6 STARTUP< ASM :5!295&e !29 2ed T(294 S7!2e= G4(894 A e9 ,>,,?@,@ /:1ed S:Ae 1$?@$1? .9 :984e S:Ae BCD?@@D@ ASM C9&Ee $B1?B,$D ASM d:!"' ()*! =()52ed
12 - 11
AS SYSOPER
All operations
,is& group
Storage system
12 - 12
12 - 13
12 - 14
12 - 1)
12 - 1*
12 - 1,
12 - 18
12 - 1-
5ablespace
ASM dis&
!"tent
12 - 20
ASM instance
,is& group
12 - 21
-ailure /roup
6ontroller 1
< ; : 8 3 1 1 1 9 9 9 18 18 18
6ontroller 3
6ontroller 8
1 1 1
9 9 9
18 18 18
1 1 1
9 9 9
18 18 18
-ailure group 1
-ailure group 8
12 - 22
7igh redundancy:
0 5hree+%ay mirroring 0 At least three failure groups
12 - 23
12 - 24
12 - 2)
12 - 2*
12 - 2,
CREATE DISKGROUP d' ()*A NORMAL REDUNDANCY /AILGROUP &(52 (44e 1 DISK '/dev:&e!/A1' NAME d:!"A1 SI+E 1$@G /ORCE% '/dev:&e!/A$'% '/dev:&e!/A>' /AILGROUP &(52 (44e $ DISK '/dev:&e!/B1'% '/dev:&e!/B$'% '/dev:&e!/B>'<
12 - 28
,is& formatting
12 - 2-
12 - 30
12 - 31
12 - 32
ASM -iles
CREATE TABLESPACE !9=*4e DATA/ILE '+d' ()*A'<
,atabase file (MA) 1 3 8 : Automatic ASM file creation
ASMCMD 'tility
SQL6 CREATE TABLESPACE 28!9!= DATA/ILE '+DGROUP1' SI+E 1@@M< T984e!*9&e & e92ed; SQL6 CREATE TABLESPACE E 9**! DATA/ILE '+DGROUP1' SI+E 1@M< T984e!*9&e & e92ed;
0 9!=&=d ASMCMD6 4! H4 DGROUP1/ORCL/DATA/ILE T7*e Red)5d S2 :*ed T:=e DATA/ILE MIRROR COARSE OCT @B $1I@@I@@ DATA/ILE MIRROR COARSE OCT @B $1I@@I@@ ASMCMD6
S7! Y Y
12 - 34
12 - 3*
Summary
In this lesson, you should have learned ho% to: ,escribe the concepts of Automatic Storage Management (ASM) Set up initiali ation parameter files for ASM and database instances !"ecute S#$ commands %ith ASM file names Start up and shut do%n ASM instances Administer ASM dis& groups 'se (MA) to migrate your database to ASM
12 - 3,
12 - 38