SlideShare a Scribd company logo
1 of 41
Copyright © 2007, Oracle. All rights reserved.
Database Architecture and ASM
Copyright © 2007, Oracle. All rights reserved.
1 - 2
Objectives
After completing this lesson, you should be able to:
• Describe the Oracle Database architecture
• Describe Automatic Storage Management (ASM)
• Set up initialization parameter files for ASM and database
instances
• Start up and shut down ASM instances
• Administer ASM disk groups
Copyright © 2007, Oracle. All rights reserved.
1 - 3
The Oracle Database
The Oracle Relational Database Management System
(RDBMS) is a database management system that provides an
open, comprehensive, integrated approach to information
management.
Copyright © 2007, Oracle. All rights reserved.
1 - 4
Database
Data files
Online redo
log files
Control
files
Oracle Database Architecture: Overview
Database
buffer
cache
Shared pool
Data dictionary
cache
Library
cache
PMON
SMON Others
Server
process
PGA
Archived
log files
User
process
Instance
ARCn
SGA
DBWn
Redo log
buffer
LGWR
CKPT
Copyright © 2007, Oracle. All rights reserved.
1 - 5
Connecting to the Database
• Connection: Communication between a user process and
an instance
• Session: Specific connection of a user to an instance
through a user process
SQL> Select … Session
Connection
USER
User
Copyright © 2007, Oracle. All rights reserved.
1 - 6
Database
Oracle Database Server Structures
PMON
SMON Others
Data files
Online redo
log files
Control
files
Instance
ARCn
DBWn LGWR
CKPT
Storage structures
User
process
Server
process
Memory structures
Processes
Database
buffer
cache
Shared pool
Data dict.
cache
Library
cache
SGA
Redo log
buffer
Copyright © 2007, Oracle. All rights reserved.
1 - 7
Oracle Memory Architecture
SGA
Database buffer
cache
Redo log
buffer
Java
pool
Streams
pool
Shared pool
Large pool
PGA PGA PGA
Background
process
Server
process 1
Server
process 2
Shared
SQL area
Library
cache
Data Dictionary
cache
Other
I/O Buffer
Response
queue
Request
queue
Free
memory
Copyright © 2007, Oracle. All rights reserved.
1 - 9
Process Architecture
• User process:
– Is started when a database user or a batch process connects
to Oracle Database
• Database processes
– Server process: Connects to the Oracle instance and is
started when a user establishes a session
– Background processes: Are started when an Oracle instance
is started
PMON
SMON Others
Instance
ARCn
DBWn LGWR
CKPT
PGA
User
process
Server
process Background processes
Database
buffer
cache
Shared pool
Data dictionary
cache
Library
cache
SGA
Redo log
buffer
Copyright © 2007, Oracle. All rights reserved.
1 - 10
Process Structures
…Server n
processes
SGA
…Oracle
background
processes
PMON SMON Others
RECO ARCn
DBWn LGWR
CKPT
Server Server
Server
Server Server
Database
buffer
cache
Shared pool
Data dict.
cache
Library
cache
SGA
Redo log
buffer
Copyright © 2007, Oracle. All rights reserved.
1 - 12
Database Storage Architecture
Online redo log files
Password file
Parameter file Archived redo log
files
Control files Data files
Alert log and trace files
Backup files
Copyright © 2007, Oracle. All rights reserved.
1 - 14
Logical and Physical Database Structures
Database
Logical Physical
Tablespace Data file
OS block
Segment
Extent
Oracle data
block
Schema
Copyright © 2007, Oracle. All rights reserved.
1 - 16
Tablespaces and Data Files
• Tablespaces consist of one or more data files.
• Data files belong to only one tablespace.
USERS tablespace
Data file 1 Data file 2
Copyright © 2007, Oracle. All rights reserved.
1 - 17
SYSTEM and SYSAUX Tablespaces
• The SYSTEM and SYSAUX tablespaces are mandatory
tablespaces.
• They are created at the time of database creation.
• The SYSTEM tablespace is used for core functionality (for
example, data dictionary tables).
• The auxiliary SYSAUX tablespace is used for additional
database components (such as the Enterprise Manager
Repository).
Copyright © 2007, Oracle. All rights reserved.
1 - 18
Segments, Extents, and Blocks
• Segments exist within a tablespace.
• Segments are made up of a collection of extents.
• Extents are a collection of data blocks.
• Data blocks are mapped to disk blocks.
Segment Extents Data
blocks
Disk
blocks
Copyright © 2007, Oracle. All rights reserved.
1 - 19
Database Architecture:
Summary of Structural Components
• Memory structures:
– System Global Area (SGA): Database buffer cache, redo
buffer, and various pools
– Program Global Area (PGA)
• Process structures:
– User process and server process
– Background processes: SMON, PMON, DBWn, CKPT,
LGWR, ARCn, and so on
• Storage structures:
– Logical: Database, schema, tablespace, segment, extent, and
Oracle block
– Physical: data files, control files, and redo log files
Copyright © 2007, Oracle. All rights reserved.
1 - 20
Automatic Storage Management:
Review
• Portable and high-performance cluster file system
• Manages Oracle database files
• Data spread across disks
to balance load
• Integrated mirroring across
disks
• Solves many storage
management challenges
ASM
File
system
Volume
manager
Operating system
Application
Database
Copyright © 2007, Oracle. All rights reserved.
1 - 22
ASM: General Architecture
ASM
instance
SID=+ASM
ASM disks ASM disks
ASM disk group 1
DB instance
SID=SALES
ASMB
RBAL
ARB0
ARBA
…
ASM disks ASM disks ASM disks
ASM disk group 2
ASM disks
DBW0
RBAL
FG
GMON
Copyright © 2007, Oracle. All rights reserved.
1 - 23
Creating an ASM Instance
Copyright © 2007, Oracle. All rights reserved.
1 - 24
ASM Instance Initialization Parameters
INSTANCE_TYPE = ASM
DB_UNIQUE_NAME = +ASM
ASM_POWER_LIMIT = 1
ASM_DISKSTRING = '/dev/rdsk/*s2', '/dev/rdsk/c1*'
ASM_DISKGROUPS = dgroupA, dgroupB
SPFILE = '+DATA/ORCL/orclspfile.ora_1'
Copyright © 2007, Oracle. All rights reserved.
1 - 25
Starting Up an ASM Instance
$ export ORACLE_SID='+ASM'
$ sqlplus /nolog
SQL> CONNECT / AS sysasm
Connected to an idle instance.
SQL> STARTUP;
Total System Global Area 284565504 bytes
Fixed Size 1299428 bytes
Variable Size 258100252 bytes
ASM Cache 25165824 bytes
ASM diskgroups mounted
Copyright © 2007, Oracle. All rights reserved.
1 - 26
SYSASM Role
• SYSASM role to manage ASM instances avoids overlap
between DBAs and storage administrators
• For ASM instances, SYSDBA will be deprecated in the future:
– Oracle Database 11g Release 1 behaves as in 10g
– In future releases SYSDBA privileges restricted in ASM
instances
SQL> CONNECT / AS SYSASM
SQL> CREATE USER ossysasmusername IDENTIFIED by passwd;
SQL> GRANT SYSASM TO ossysasmusername;
SQL> DROP USER ossysasmusername;
SQL> CONNECT ossysasmusername / passwd AS SYSASM;
Copyright © 2007, Oracle. All rights reserved.
1 - 27
Accessing an ASM Instance
Disk group Disk group
Storage system
As SYSASM
or SYSDBA
As SYSOPER
ASM
instance
All operations Limited
operations
Copyright © 2007, Oracle. All rights reserved.
1 - 28
Using Enterprise Manager to Manage ASM Users
Copyright © 2007, Oracle. All rights reserved.
1 - 29
Shutting Down an ASM Instance
SHUTDOWN NORMAL
ASM instance
Database instance A Database instance B
1 1
2
3
Copyright © 2007, Oracle. All rights reserved.
1 - 30
ASM Storage: Concepts
Database
Tablespace
Segment
Extent
Oracle
block
Data file
Physical
block
ASM
disk group
ASM disk
ASM file
Allocation unit
File-system
file
or
raw device
Copyright © 2007, Oracle. All rights reserved.
1 - 31
ASM Disk Group
• Is a pool of disks managed as a logical unit
• Partitions total disk space into
uniform sized units
• Spreads each file evenly
across all disks
• Uses coarse- or fine-grain striping
on the basis of file type
• Administers disk groups, not files
Disk group
ASM
instance
Copyright © 2007, Oracle. All rights reserved.
1 - 33
Failure Group
Controller 1 Controller 2
Failure group 1 Failure group 2
Disk group A
Controller 3
Failure group 3
1 7 13
1 7 13
1 7 13
1 7 13
1 7 13
1 7 13
1 7 13
1 7 13
1 7 13
2
3
4
5
6
Copyright © 2007, Oracle. All rights reserved.
1 - 34
Disk Group Mirroring
• Mirror at AU level
• Mix primary and mirror
AUs on each disk
• External redundancy:
Defers to hardware
mirroring
• Normal redundancy:
– Two-way mirroring
– At least two failure groups
• High redundancy:
– Three-way mirroring
– At least three failure groups
Copyright © 2007, Oracle. All rights reserved.
1 - 35
Disk Group Dynamic Rebalancing
• Automatic online
rebalance whenever
storage configuration
changes
• Only move data
proportional to
storage added
• No need for manual
I/O tuning
• Online migration to
new storage
• Configurable load
on system using ASM_POWER_LIMIT
Copyright © 2007, Oracle. All rights reserved.
1 - 36
Managing Disk Groups
CREATE DISKGROUP
ALTER DISKGROUP
DROP DISKGROUP
ASM
instance
Database
instance
Copyright © 2007, Oracle. All rights reserved.
1 - 37
Creating and Dropping Disk Groups
CREATE DISKGROUP dgroupA NORMAL REDUNDANCY
FAILGROUP controller1 DISK
'/devices/A1' NAME diskA1 SIZE 120G FORCE,
'/devices/A2',
'/devices/A3'
FAILGROUP controller2 DISK
'/devices/B1',
'/devices/B2',
'/devices/B3';
DROP DISKGROUP dgroupA INCLUDING CONTENTS;
Copyright © 2007, Oracle. All rights reserved.
1 - 38
Adding Disks to Disk Groups
ALTER DISKGROUP dgroupA ADD DISK
'/dev/rdsk/c0t4d0s2' NAME A5,
'/dev/rdsk/c0t5d0s2' NAME A6,
'/dev/rdsk/c0t6d0s2' NAME A7,
'/dev/rdsk/c0t7d0s2' NAME A8;
ALTER DISKGROUP dgroupA ADD DISK '/devices/A*';
Disk formatting
Disk group rebalancing
Copyright © 2007, Oracle. All rights reserved.
1 - 39
ASM Disk Group Compatibility
• Compatibility of each disk group is separately controllable:
– ASM compatibility controls ASM metadata on-disk structure
– RDBMS compatibility controls minimum consumer client level
– Useful with heterogeneous environments
• Setting disk group compatibility is irreversible.
DB
instance
COMPATIBLE.RDBMS
COMPATIBLE
ASM disk
group
>=
<=
COMPATIBLE.ASM
ASM
instance
<= COMPATIBLE
Copyright © 2007, Oracle. All rights reserved.
1 - 41
ASM Disk Group Attributes
Name Property Values Description
au_size C 1|2|4|8|16|32|64MB Size of allocation units in the disk group
compatible.rdbms AC Valid database version Format of messages exchanged between DB
and ASM
compatible.asm AC Valid ASM instance version Format of ASM metadata structures on disk
disk_repair_time A 0 M to 232 D Length o time before removing a disk once
OFFLINE
template.tname.
redundancy
A UNPROTECT|MIRROR|HIGH Redundancy of specified template
template.tname.
stripe
A COARSE|FINE Striping attribute of specified template
CREATE DISKGROUP DATA NORMAL REDUNDANCY
DISK '/dev/raw/raw1','/dev/raw/raw2'
ATTRIBUTE 'compatible.asm'='11.1';
C: CREATE
A: ALTER
Copyright © 2007, Oracle. All rights reserved.
1 - 42
Using Enterprise Manager to
Edit Disk Group Attributes
Copyright © 2007, Oracle. All rights reserved.
1 - 43
Miscellaneous ALTER Commands
Remove a disk from dgroupA:
Add and drop a disk in a single command:
Cancel a disk drop operation:
ALTER DISKGROUP dgroupA DROP DISK A5;
ALTER DISKGROUP dgroupA
DROP DISK A6
ADD FAILGROUP fred
DISK '/dev/rdsk/c0t8d0s2' NAME A9;
ALTER DISKGROUP dgroupA UNDROP DISKS;
Copyright © 2007, Oracle. All rights reserved.
1 - 44
ASMCMD Utility
$ export ORACLE_SID=+ASM
$ asmcmd
ASMCMD> ls -l DGROUP1/ORCL/DATAFILE
Type Redund Striped Time Sys Name
DATAFILE MIRROR COARSE OCT 05 21:00:00 Y HRAPPS.257.570923611
DATAFILE MIRROR COARSE OCT 05 21:00:00 Y TBSASM.256.570922917
ASMCMD>
SQL> CREATE TABLESPACE tbsasm DATAFILE '+DGROUP1' SIZE 100M;
Tablespace created.
SQL> CREATE TABLESPACE hrapps DATAFILE '+DGROUP1' SIZE 10M;
Tablespace created.
Copyright © 2007, Oracle. All rights reserved.
1 - 45
ASMCMD Utility
$ asmcmd help
md_backup
md_restore
lsdsk
full
nodg
newdg
User created directories
Templates
Disk group compatibility
Disk group name
Disk names and failure groups
ASMCMD> md_backup –b /tmp/dgbackup070222 –g admdsk1 –g asmdsk2
ASMCMD> md_restore –t full –g asmdsk1 –i backup_file
ASMCMD> lsdsk -k DATA *_0001
repair/remap
Copyright © 2007, Oracle. All rights reserved.
1 - 46
ASM Scalability and Performance
• Extent size grows automatically according to file size.
• ASM support variable extents size to:
– Raise maximum possible file size
– Reduce memory utilization in shared pool
• ASM imposes the following limits:
– 63 disk groups in a storage system
– 10,000 ASM disks in a storage system
– 4 petabyte maximum storage for each ASM disk
– 40 exabyte maximum storage for each storage system
– 1 million files for each disk group
Copyright © 2007, Oracle. All rights reserved.
1 - 48
Summary
In this lesson, you should have learned how to:
• Describe the Oracle Database architecture
• Describe Automatic Storage Management (ASM)
• Set up initialization parameter files for ASM and database
instances
• Start up and shut down ASM instances
• Administer ASM disk groups
Copyright © 2007, Oracle. All rights reserved.
1 - 49
Practice 1 Overview:
Database Architecture and ASM
This practice covers the following topics:
• Creating and starting an ASM instance
• Creating and using ASM disk groups
• Managing an ASM instance
• Dynamic disk group rebalancing

More Related Content

Similar to les_01_arch_presentation_asm_oracle_rac_

Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement systemMurtazaMughal13
 
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfOracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfRajendra Jain
 
Oracle & sql server comparison 2
Oracle & sql server comparison 2Oracle & sql server comparison 2
Oracle & sql server comparison 2Mohsen B
 
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsOracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsMarkus Michalewicz
 
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim Williams
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim WilliamsWhat's New and Coming in Oracle ASM 12c Rel. 2 - by Jim Williams
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim WilliamsMarkus Michalewicz
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.pptHODCA1
 
Making MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureMaking MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureIlmar Kerm
 
Oracle 12c New Features_RAC_slides
Oracle 12c New Features_RAC_slidesOracle 12c New Features_RAC_slides
Oracle 12c New Features_RAC_slidesSaiful
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020Anil Nair
 
10g rac asm
10g rac asm10g rac asm
10g rac asmVictor
 
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cClone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cAlfredo Krieg
 
Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Rati Manandhar
 
RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)Gustavo Rene Antunez
 
MySQL Enterprise Backup & Oracle Secure Backup
MySQL Enterprise Backup &  Oracle Secure BackupMySQL Enterprise Backup &  Oracle Secure Backup
MySQL Enterprise Backup & Oracle Secure BackupSanjay Manwani
 

Similar to les_01_arch_presentation_asm_oracle_rac_ (20)

Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement system
 
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfOracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
 
D81242GC20_les01.pptx
D81242GC20_les01.pptxD81242GC20_les01.pptx
D81242GC20_les01.pptx
 
Oracle & sql server comparison 2
Oracle & sql server comparison 2Oracle & sql server comparison 2
Oracle & sql server comparison 2
 
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsOracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
 
Les 02 config
Les 02 configLes 02 config
Les 02 config
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim Williams
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim WilliamsWhat's New and Coming in Oracle ASM 12c Rel. 2 - by Jim Williams
What's New and Coming in Oracle ASM 12c Rel. 2 - by Jim Williams
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
 
les12.pdf
les12.pdfles12.pdf
les12.pdf
 
Oracle ASM Training
Oracle ASM TrainingOracle ASM Training
Oracle ASM Training
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
 
Making MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureMaking MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid Infrastructure
 
Oracle 12c New Features_RAC_slides
Oracle 12c New Features_RAC_slidesOracle 12c New Features_RAC_slides
Oracle 12c New Features_RAC_slides
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020
 
10g rac asm
10g rac asm10g rac asm
10g rac asm
 
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cClone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
 
Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02
 
RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)
 
MySQL Enterprise Backup & Oracle Secure Backup
MySQL Enterprise Backup &  Oracle Secure BackupMySQL Enterprise Backup &  Oracle Secure Backup
MySQL Enterprise Backup & Oracle Secure Backup
 

More from tricantino1973

Oracle-GoldenGate-18c-Workshop-Lab-16.docx
Oracle-GoldenGate-18c-Workshop-Lab-16.docxOracle-GoldenGate-18c-Workshop-Lab-16.docx
Oracle-GoldenGate-18c-Workshop-Lab-16.docxtricantino1973
 
Oracle-GoldenGate-18c-Workshop-Lab-17.docx
Oracle-GoldenGate-18c-Workshop-Lab-17.docxOracle-GoldenGate-18c-Workshop-Lab-17.docx
Oracle-GoldenGate-18c-Workshop-Lab-17.docxtricantino1973
 
GoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docx
GoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docxGoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docx
GoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docxtricantino1973
 
upgrade_migrate_consolidate_19999c (1).pdf
upgrade_migrate_consolidate_19999c (1).pdfupgrade_migrate_consolidate_19999c (1).pdf
upgrade_migrate_consolidate_19999c (1).pdftricantino1973
 
freetools-170503222740.pdforacleeeeeeeee
freetools-170503222740.pdforacleeeeeeeeefreetools-170503222740.pdforacleeeeeeeee
freetools-170503222740.pdforacleeeeeeeeetricantino1973
 
ASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdfASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdftricantino1973
 

More from tricantino1973 (6)

Oracle-GoldenGate-18c-Workshop-Lab-16.docx
Oracle-GoldenGate-18c-Workshop-Lab-16.docxOracle-GoldenGate-18c-Workshop-Lab-16.docx
Oracle-GoldenGate-18c-Workshop-Lab-16.docx
 
Oracle-GoldenGate-18c-Workshop-Lab-17.docx
Oracle-GoldenGate-18c-Workshop-Lab-17.docxOracle-GoldenGate-18c-Workshop-Lab-17.docx
Oracle-GoldenGate-18c-Workshop-Lab-17.docx
 
GoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docx
GoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docxGoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docx
GoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docx
 
upgrade_migrate_consolidate_19999c (1).pdf
upgrade_migrate_consolidate_19999c (1).pdfupgrade_migrate_consolidate_19999c (1).pdf
upgrade_migrate_consolidate_19999c (1).pdf
 
freetools-170503222740.pdforacleeeeeeeee
freetools-170503222740.pdforacleeeeeeeeefreetools-170503222740.pdforacleeeeeeeee
freetools-170503222740.pdforacleeeeeeeee
 
ASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdfASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdf
 

Recently uploaded

Jagat Puri Call Girls : ☎ 8527673949, Low rate Call Girls
Jagat Puri Call Girls : ☎ 8527673949, Low rate Call GirlsJagat Puri Call Girls : ☎ 8527673949, Low rate Call Girls
Jagat Puri Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
Retail Store Scavanger Hunt - Foundation College Park
Retail Store Scavanger Hunt - Foundation College ParkRetail Store Scavanger Hunt - Foundation College Park
Retail Store Scavanger Hunt - Foundation College Parkjosebenzaquen
 
9654467111 Call Girls In Noida Sector 62 Short 1500 Night 6000
9654467111 Call Girls In Noida Sector 62 Short 1500 Night 60009654467111 Call Girls In Noida Sector 62 Short 1500 Night 6000
9654467111 Call Girls In Noida Sector 62 Short 1500 Night 6000Sapana Sha
 
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts ServiceRussian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Servicedoor45step
 
How Can You Get Dubai Call Girls +971564860409 Call Girls Dubai?
How Can You Get Dubai Call Girls +971564860409 Call Girls Dubai?How Can You Get Dubai Call Girls +971564860409 Call Girls Dubai?
How Can You Get Dubai Call Girls +971564860409 Call Girls Dubai?kexey39068
 
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857delhimodel235
 
Kishangarh Call Girls : ☎ 8527673949, Low rate Call Girls
Kishangarh Call Girls : ☎ 8527673949, Low rate Call GirlsKishangarh Call Girls : ☎ 8527673949, Low rate Call Girls
Kishangarh Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubai
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur DubaiBur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubai
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubaidajasot375
 
FULL ENJOY - 9953040155 Call Girls in Gandhi Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Gandhi Vihar | DelhiFULL ENJOY - 9953040155 Call Girls in Gandhi Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Gandhi Vihar | DelhiMalviyaNagarCallGirl
 
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | DelhiFULL ENJOY - 9953040155 Call Girls in Karol Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | DelhiMalviyaNagarCallGirl
 
Strip Zagor Extra 322 - Dva ortaka.pdf
Strip   Zagor Extra 322 - Dva ortaka.pdfStrip   Zagor Extra 322 - Dva ortaka.pdf
Strip Zagor Extra 322 - Dva ortaka.pdfStripovizijacom
 
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call GirlsGovindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
Burari Call Girls : ☎ 8527673949, Low rate Call Girls
Burari Call Girls : ☎ 8527673949, Low rate Call GirlsBurari Call Girls : ☎ 8527673949, Low rate Call Girls
Burari Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | DelhiMalviyaNagarCallGirl
 
Bare And Wild Creation, Curio Shop, Tucumcari NM
Bare And Wild Creation, Curio Shop, Tucumcari NMBare And Wild Creation, Curio Shop, Tucumcari NM
Bare And Wild Creation, Curio Shop, Tucumcari NMroute66connected
 
9654467111 Full Enjoy @24/7 Call Girls In Saket Delhi Ncr
9654467111 Full Enjoy @24/7 Call Girls In Saket Delhi Ncr9654467111 Full Enjoy @24/7 Call Girls In Saket Delhi Ncr
9654467111 Full Enjoy @24/7 Call Girls In Saket Delhi NcrSapana Sha
 
Benjamin Portfolio Process Work Slideshow
Benjamin Portfolio Process Work SlideshowBenjamin Portfolio Process Work Slideshow
Benjamin Portfolio Process Work Slideshowssuser971f6c
 
Russian Call Girls Delhi NCR 9999965857 Call or WhatsApp Anytime
Russian Call Girls Delhi NCR 9999965857 Call or WhatsApp AnytimeRussian Call Girls Delhi NCR 9999965857 Call or WhatsApp Anytime
Russian Call Girls Delhi NCR 9999965857 Call or WhatsApp AnytimeKomal Khan
 
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | Delhi
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | DelhiFULL ENJOY - 9953040155 Call Girls in Dwarka Mor | Delhi
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | DelhiMalviyaNagarCallGirl
 

Recently uploaded (20)

Jagat Puri Call Girls : ☎ 8527673949, Low rate Call Girls
Jagat Puri Call Girls : ☎ 8527673949, Low rate Call GirlsJagat Puri Call Girls : ☎ 8527673949, Low rate Call Girls
Jagat Puri Call Girls : ☎ 8527673949, Low rate Call Girls
 
Retail Store Scavanger Hunt - Foundation College Park
Retail Store Scavanger Hunt - Foundation College ParkRetail Store Scavanger Hunt - Foundation College Park
Retail Store Scavanger Hunt - Foundation College Park
 
9654467111 Call Girls In Noida Sector 62 Short 1500 Night 6000
9654467111 Call Girls In Noida Sector 62 Short 1500 Night 60009654467111 Call Girls In Noida Sector 62 Short 1500 Night 6000
9654467111 Call Girls In Noida Sector 62 Short 1500 Night 6000
 
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts ServiceRussian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Service
 
How Can You Get Dubai Call Girls +971564860409 Call Girls Dubai?
How Can You Get Dubai Call Girls +971564860409 Call Girls Dubai?How Can You Get Dubai Call Girls +971564860409 Call Girls Dubai?
How Can You Get Dubai Call Girls +971564860409 Call Girls Dubai?
 
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857
 
Kishangarh Call Girls : ☎ 8527673949, Low rate Call Girls
Kishangarh Call Girls : ☎ 8527673949, Low rate Call GirlsKishangarh Call Girls : ☎ 8527673949, Low rate Call Girls
Kishangarh Call Girls : ☎ 8527673949, Low rate Call Girls
 
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubai
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur DubaiBur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubai
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubai
 
FULL ENJOY - 9953040155 Call Girls in Gandhi Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Gandhi Vihar | DelhiFULL ENJOY - 9953040155 Call Girls in Gandhi Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Gandhi Vihar | Delhi
 
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | DelhiFULL ENJOY - 9953040155 Call Girls in Karol Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | Delhi
 
Strip Zagor Extra 322 - Dva ortaka.pdf
Strip   Zagor Extra 322 - Dva ortaka.pdfStrip   Zagor Extra 322 - Dva ortaka.pdf
Strip Zagor Extra 322 - Dva ortaka.pdf
 
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call GirlsGovindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
 
Burari Call Girls : ☎ 8527673949, Low rate Call Girls
Burari Call Girls : ☎ 8527673949, Low rate Call GirlsBurari Call Girls : ☎ 8527673949, Low rate Call Girls
Burari Call Girls : ☎ 8527673949, Low rate Call Girls
 
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | Delhi
 
Bare And Wild Creation, Curio Shop, Tucumcari NM
Bare And Wild Creation, Curio Shop, Tucumcari NMBare And Wild Creation, Curio Shop, Tucumcari NM
Bare And Wild Creation, Curio Shop, Tucumcari NM
 
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
 
9654467111 Full Enjoy @24/7 Call Girls In Saket Delhi Ncr
9654467111 Full Enjoy @24/7 Call Girls In Saket Delhi Ncr9654467111 Full Enjoy @24/7 Call Girls In Saket Delhi Ncr
9654467111 Full Enjoy @24/7 Call Girls In Saket Delhi Ncr
 
Benjamin Portfolio Process Work Slideshow
Benjamin Portfolio Process Work SlideshowBenjamin Portfolio Process Work Slideshow
Benjamin Portfolio Process Work Slideshow
 
Russian Call Girls Delhi NCR 9999965857 Call or WhatsApp Anytime
Russian Call Girls Delhi NCR 9999965857 Call or WhatsApp AnytimeRussian Call Girls Delhi NCR 9999965857 Call or WhatsApp Anytime
Russian Call Girls Delhi NCR 9999965857 Call or WhatsApp Anytime
 
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | Delhi
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | DelhiFULL ENJOY - 9953040155 Call Girls in Dwarka Mor | Delhi
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | Delhi
 

les_01_arch_presentation_asm_oracle_rac_

  • 1. Copyright © 2007, Oracle. All rights reserved. Database Architecture and ASM
  • 2. Copyright © 2007, Oracle. All rights reserved. 1 - 2 Objectives After completing this lesson, you should be able to: • Describe the Oracle Database architecture • Describe Automatic Storage Management (ASM) • Set up initialization parameter files for ASM and database instances • Start up and shut down ASM instances • Administer ASM disk groups
  • 3. Copyright © 2007, Oracle. All rights reserved. 1 - 3 The Oracle Database The Oracle Relational Database Management System (RDBMS) is a database management system that provides an open, comprehensive, integrated approach to information management.
  • 4. Copyright © 2007, Oracle. All rights reserved. 1 - 4 Database Data files Online redo log files Control files Oracle Database Architecture: Overview Database buffer cache Shared pool Data dictionary cache Library cache PMON SMON Others Server process PGA Archived log files User process Instance ARCn SGA DBWn Redo log buffer LGWR CKPT
  • 5. Copyright © 2007, Oracle. All rights reserved. 1 - 5 Connecting to the Database • Connection: Communication between a user process and an instance • Session: Specific connection of a user to an instance through a user process SQL> Select … Session Connection USER User
  • 6. Copyright © 2007, Oracle. All rights reserved. 1 - 6 Database Oracle Database Server Structures PMON SMON Others Data files Online redo log files Control files Instance ARCn DBWn LGWR CKPT Storage structures User process Server process Memory structures Processes Database buffer cache Shared pool Data dict. cache Library cache SGA Redo log buffer
  • 7. Copyright © 2007, Oracle. All rights reserved. 1 - 7 Oracle Memory Architecture SGA Database buffer cache Redo log buffer Java pool Streams pool Shared pool Large pool PGA PGA PGA Background process Server process 1 Server process 2 Shared SQL area Library cache Data Dictionary cache Other I/O Buffer Response queue Request queue Free memory
  • 8. Copyright © 2007, Oracle. All rights reserved. 1 - 9 Process Architecture • User process: – Is started when a database user or a batch process connects to Oracle Database • Database processes – Server process: Connects to the Oracle instance and is started when a user establishes a session – Background processes: Are started when an Oracle instance is started PMON SMON Others Instance ARCn DBWn LGWR CKPT PGA User process Server process Background processes Database buffer cache Shared pool Data dictionary cache Library cache SGA Redo log buffer
  • 9. Copyright © 2007, Oracle. All rights reserved. 1 - 10 Process Structures …Server n processes SGA …Oracle background processes PMON SMON Others RECO ARCn DBWn LGWR CKPT Server Server Server Server Server Database buffer cache Shared pool Data dict. cache Library cache SGA Redo log buffer
  • 10. Copyright © 2007, Oracle. All rights reserved. 1 - 12 Database Storage Architecture Online redo log files Password file Parameter file Archived redo log files Control files Data files Alert log and trace files Backup files
  • 11. Copyright © 2007, Oracle. All rights reserved. 1 - 14 Logical and Physical Database Structures Database Logical Physical Tablespace Data file OS block Segment Extent Oracle data block Schema
  • 12. Copyright © 2007, Oracle. All rights reserved. 1 - 16 Tablespaces and Data Files • Tablespaces consist of one or more data files. • Data files belong to only one tablespace. USERS tablespace Data file 1 Data file 2
  • 13. Copyright © 2007, Oracle. All rights reserved. 1 - 17 SYSTEM and SYSAUX Tablespaces • The SYSTEM and SYSAUX tablespaces are mandatory tablespaces. • They are created at the time of database creation. • The SYSTEM tablespace is used for core functionality (for example, data dictionary tables). • The auxiliary SYSAUX tablespace is used for additional database components (such as the Enterprise Manager Repository).
  • 14. Copyright © 2007, Oracle. All rights reserved. 1 - 18 Segments, Extents, and Blocks • Segments exist within a tablespace. • Segments are made up of a collection of extents. • Extents are a collection of data blocks. • Data blocks are mapped to disk blocks. Segment Extents Data blocks Disk blocks
  • 15. Copyright © 2007, Oracle. All rights reserved. 1 - 19 Database Architecture: Summary of Structural Components • Memory structures: – System Global Area (SGA): Database buffer cache, redo buffer, and various pools – Program Global Area (PGA) • Process structures: – User process and server process – Background processes: SMON, PMON, DBWn, CKPT, LGWR, ARCn, and so on • Storage structures: – Logical: Database, schema, tablespace, segment, extent, and Oracle block – Physical: data files, control files, and redo log files
  • 16. Copyright © 2007, Oracle. All rights reserved. 1 - 20 Automatic Storage Management: Review • Portable and high-performance cluster file system • Manages Oracle database files • Data spread across disks to balance load • Integrated mirroring across disks • Solves many storage management challenges ASM File system Volume manager Operating system Application Database
  • 17. Copyright © 2007, Oracle. All rights reserved. 1 - 22 ASM: General Architecture ASM instance SID=+ASM ASM disks ASM disks ASM disk group 1 DB instance SID=SALES ASMB RBAL ARB0 ARBA … ASM disks ASM disks ASM disks ASM disk group 2 ASM disks DBW0 RBAL FG GMON
  • 18. Copyright © 2007, Oracle. All rights reserved. 1 - 23 Creating an ASM Instance
  • 19. Copyright © 2007, Oracle. All rights reserved. 1 - 24 ASM Instance Initialization Parameters INSTANCE_TYPE = ASM DB_UNIQUE_NAME = +ASM ASM_POWER_LIMIT = 1 ASM_DISKSTRING = '/dev/rdsk/*s2', '/dev/rdsk/c1*' ASM_DISKGROUPS = dgroupA, dgroupB SPFILE = '+DATA/ORCL/orclspfile.ora_1'
  • 20. Copyright © 2007, Oracle. All rights reserved. 1 - 25 Starting Up an ASM Instance $ export ORACLE_SID='+ASM' $ sqlplus /nolog SQL> CONNECT / AS sysasm Connected to an idle instance. SQL> STARTUP; Total System Global Area 284565504 bytes Fixed Size 1299428 bytes Variable Size 258100252 bytes ASM Cache 25165824 bytes ASM diskgroups mounted
  • 21. Copyright © 2007, Oracle. All rights reserved. 1 - 26 SYSASM Role • SYSASM role to manage ASM instances avoids overlap between DBAs and storage administrators • For ASM instances, SYSDBA will be deprecated in the future: – Oracle Database 11g Release 1 behaves as in 10g – In future releases SYSDBA privileges restricted in ASM instances SQL> CONNECT / AS SYSASM SQL> CREATE USER ossysasmusername IDENTIFIED by passwd; SQL> GRANT SYSASM TO ossysasmusername; SQL> DROP USER ossysasmusername; SQL> CONNECT ossysasmusername / passwd AS SYSASM;
  • 22. Copyright © 2007, Oracle. All rights reserved. 1 - 27 Accessing an ASM Instance Disk group Disk group Storage system As SYSASM or SYSDBA As SYSOPER ASM instance All operations Limited operations
  • 23. Copyright © 2007, Oracle. All rights reserved. 1 - 28 Using Enterprise Manager to Manage ASM Users
  • 24. Copyright © 2007, Oracle. All rights reserved. 1 - 29 Shutting Down an ASM Instance SHUTDOWN NORMAL ASM instance Database instance A Database instance B 1 1 2 3
  • 25. Copyright © 2007, Oracle. All rights reserved. 1 - 30 ASM Storage: Concepts Database Tablespace Segment Extent Oracle block Data file Physical block ASM disk group ASM disk ASM file Allocation unit File-system file or raw device
  • 26. Copyright © 2007, Oracle. All rights reserved. 1 - 31 ASM Disk Group • Is a pool of disks managed as a logical unit • Partitions total disk space into uniform sized units • Spreads each file evenly across all disks • Uses coarse- or fine-grain striping on the basis of file type • Administers disk groups, not files Disk group ASM instance
  • 27. Copyright © 2007, Oracle. All rights reserved. 1 - 33 Failure Group Controller 1 Controller 2 Failure group 1 Failure group 2 Disk group A Controller 3 Failure group 3 1 7 13 1 7 13 1 7 13 1 7 13 1 7 13 1 7 13 1 7 13 1 7 13 1 7 13 2 3 4 5 6
  • 28. Copyright © 2007, Oracle. All rights reserved. 1 - 34 Disk Group Mirroring • Mirror at AU level • Mix primary and mirror AUs on each disk • External redundancy: Defers to hardware mirroring • Normal redundancy: – Two-way mirroring – At least two failure groups • High redundancy: – Three-way mirroring – At least three failure groups
  • 29. Copyright © 2007, Oracle. All rights reserved. 1 - 35 Disk Group Dynamic Rebalancing • Automatic online rebalance whenever storage configuration changes • Only move data proportional to storage added • No need for manual I/O tuning • Online migration to new storage • Configurable load on system using ASM_POWER_LIMIT
  • 30. Copyright © 2007, Oracle. All rights reserved. 1 - 36 Managing Disk Groups CREATE DISKGROUP ALTER DISKGROUP DROP DISKGROUP ASM instance Database instance
  • 31. Copyright © 2007, Oracle. All rights reserved. 1 - 37 Creating and Dropping Disk Groups CREATE DISKGROUP dgroupA NORMAL REDUNDANCY FAILGROUP controller1 DISK '/devices/A1' NAME diskA1 SIZE 120G FORCE, '/devices/A2', '/devices/A3' FAILGROUP controller2 DISK '/devices/B1', '/devices/B2', '/devices/B3'; DROP DISKGROUP dgroupA INCLUDING CONTENTS;
  • 32. Copyright © 2007, Oracle. All rights reserved. 1 - 38 Adding Disks to Disk Groups ALTER DISKGROUP dgroupA ADD DISK '/dev/rdsk/c0t4d0s2' NAME A5, '/dev/rdsk/c0t5d0s2' NAME A6, '/dev/rdsk/c0t6d0s2' NAME A7, '/dev/rdsk/c0t7d0s2' NAME A8; ALTER DISKGROUP dgroupA ADD DISK '/devices/A*'; Disk formatting Disk group rebalancing
  • 33. Copyright © 2007, Oracle. All rights reserved. 1 - 39 ASM Disk Group Compatibility • Compatibility of each disk group is separately controllable: – ASM compatibility controls ASM metadata on-disk structure – RDBMS compatibility controls minimum consumer client level – Useful with heterogeneous environments • Setting disk group compatibility is irreversible. DB instance COMPATIBLE.RDBMS COMPATIBLE ASM disk group >= <= COMPATIBLE.ASM ASM instance <= COMPATIBLE
  • 34. Copyright © 2007, Oracle. All rights reserved. 1 - 41 ASM Disk Group Attributes Name Property Values Description au_size C 1|2|4|8|16|32|64MB Size of allocation units in the disk group compatible.rdbms AC Valid database version Format of messages exchanged between DB and ASM compatible.asm AC Valid ASM instance version Format of ASM metadata structures on disk disk_repair_time A 0 M to 232 D Length o time before removing a disk once OFFLINE template.tname. redundancy A UNPROTECT|MIRROR|HIGH Redundancy of specified template template.tname. stripe A COARSE|FINE Striping attribute of specified template CREATE DISKGROUP DATA NORMAL REDUNDANCY DISK '/dev/raw/raw1','/dev/raw/raw2' ATTRIBUTE 'compatible.asm'='11.1'; C: CREATE A: ALTER
  • 35. Copyright © 2007, Oracle. All rights reserved. 1 - 42 Using Enterprise Manager to Edit Disk Group Attributes
  • 36. Copyright © 2007, Oracle. All rights reserved. 1 - 43 Miscellaneous ALTER Commands Remove a disk from dgroupA: Add and drop a disk in a single command: Cancel a disk drop operation: ALTER DISKGROUP dgroupA DROP DISK A5; ALTER DISKGROUP dgroupA DROP DISK A6 ADD FAILGROUP fred DISK '/dev/rdsk/c0t8d0s2' NAME A9; ALTER DISKGROUP dgroupA UNDROP DISKS;
  • 37. Copyright © 2007, Oracle. All rights reserved. 1 - 44 ASMCMD Utility $ export ORACLE_SID=+ASM $ asmcmd ASMCMD> ls -l DGROUP1/ORCL/DATAFILE Type Redund Striped Time Sys Name DATAFILE MIRROR COARSE OCT 05 21:00:00 Y HRAPPS.257.570923611 DATAFILE MIRROR COARSE OCT 05 21:00:00 Y TBSASM.256.570922917 ASMCMD> SQL> CREATE TABLESPACE tbsasm DATAFILE '+DGROUP1' SIZE 100M; Tablespace created. SQL> CREATE TABLESPACE hrapps DATAFILE '+DGROUP1' SIZE 10M; Tablespace created.
  • 38. Copyright © 2007, Oracle. All rights reserved. 1 - 45 ASMCMD Utility $ asmcmd help md_backup md_restore lsdsk full nodg newdg User created directories Templates Disk group compatibility Disk group name Disk names and failure groups ASMCMD> md_backup –b /tmp/dgbackup070222 –g admdsk1 –g asmdsk2 ASMCMD> md_restore –t full –g asmdsk1 –i backup_file ASMCMD> lsdsk -k DATA *_0001 repair/remap
  • 39. Copyright © 2007, Oracle. All rights reserved. 1 - 46 ASM Scalability and Performance • Extent size grows automatically according to file size. • ASM support variable extents size to: – Raise maximum possible file size – Reduce memory utilization in shared pool • ASM imposes the following limits: – 63 disk groups in a storage system – 10,000 ASM disks in a storage system – 4 petabyte maximum storage for each ASM disk – 40 exabyte maximum storage for each storage system – 1 million files for each disk group
  • 40. Copyright © 2007, Oracle. All rights reserved. 1 - 48 Summary In this lesson, you should have learned how to: • Describe the Oracle Database architecture • Describe Automatic Storage Management (ASM) • Set up initialization parameter files for ASM and database instances • Start up and shut down ASM instances • Administer ASM disk groups
  • 41. Copyright © 2007, Oracle. All rights reserved. 1 - 49 Practice 1 Overview: Database Architecture and ASM This practice covers the following topics: • Creating and starting an ASM instance • Creating and using ASM disk groups • Managing an ASM instance • Dynamic disk group rebalancing