SlideShare a Scribd company logo
Oracle ASM TrainingOracle ASM TrainingByVally CardozaJim Stolzenfeld
2About UsWho Are We?
Our Service OfferingsEnterprise Application Management
Oracle E-Business & SAP Managed Services
Database Managed Services
Professional Services
Performance Auditing and Analysis
Consulting
Implementation
Upgrades
Projects
Staff Augmentation Services
Contract Positions
Contract To Hire
Permanent Placements
Web Application Services
Hosting
Management
QA Testing
Analytic ReportingOffice LocationsUNITED STATESMichigan - (Headquarters)3290 W Big Beaver Rd Suite 310, Troy Michigan. 48084.tel:ย ย ย 248-614-2500ย ย ย  fax: 248 404-9805Georgia2020 Airport Industrial Park, Drive, Marietta, Georgia. 30060.tel:ย ย ย 770-404-9800ย ย  fax:770-404-9800CANADA5925 Airport Rd, Suite 200 Mississauga L4V 1W1.tel:ย ย ย 905ย 405-6320ย ย  fax: 905 248-3502INDIAPlot No: 23/A, Flat No: 202,Sai Sushma Homes,SR Nagar, Hyderabad - 500038.tel: 040-64581999
Oracle 10G ASM
AgendaDatabase ConceptsASMLibASMASM Best PracticesASM ManagementASM TroubleshootingMigrating database to ASMOrion Tool11g ASM new featuresQ/A
Database ConceptsDatabase ConceptsDatabase ArchitectureStorage Architecture (Logical)Storage Architecture (Physical)Storage Requirements
Database ArchitectureCollection of system elementsShared MemoryConcurrency is maintained by locks/latchesMessage passing between processesDBWR (Database writer)LGWR (Log Writer)
Database ArchitectureUser processUser processUser processServer processServer processServer processProcess monitor processBuffer poolShared memoryLock Manager processQuery plan cacheLog bufferLock tableDatabase Writer processLog Writer processCheckpoint process   Log  disks   data disksdata disks
Storage (Logical)TablespacesSegmentsData segmentIndex segmentTemporary segmentRollback segmentExtentsOracle data blocks
Storage (Physical)   Database   System Tablespace   Data TablespaceTableTableTableIndexTableTableIndexIndexIndexIndexTableIndexTable   DBFILE1   DBFILE3   DBFILE2   Drive 1   Drive 2
File TypesFile Types
Oracle binaries ( ASM and RDBMS home)
Database files
Datafiles
Control files
Redo log files
Archived log files
Backup files
Database external files โ€“ bfiles, external tables
Application related files
Clusterware files โ€“ OCR (Oracle Cluster Registry) and Vote  disks
Server Initialization files ( SPFILEs)Storage RequirementsLocal Filesystems /NAS/NFS
Oracle binaries
Application related files
Database files
SPFILES(RDBMS & ASM)
Cluster FS (OCFS)
Oracle binaries
Application related files
Oracle Clusterware devices
Database files
SPFiles (RDBMS & ASM)Raw/Block devicesDatabase filesSPFILES (RDBMS & ASM)Oracle Clusterware devicesASMDatabase filesSPFILES (RDBMS)
ASMWhat is ASMVolume Manager and file system built into Oracle KernelFile system with raw disk performanceEliminates need for third-party volume manager and file system for Oracle datafilesUsable for non-RAC and RAC databases alikeCan be run over LVM (not recommended)
ASMLIBAn API developed by Oracle to:Simplify the operating system to database interfaceExploits the capabilities and strengths of vendorsโ€™ storage arrayAlternative interface for the ASM enabled kernel to identify and access block devices3rd party vendors would write ASMLIB libraries for their arrayOracle distributes an Oracle ASMLIB for Linux only (free add-on to ASM)
ASMLIBReduced OverheadGlobally manages all disk file descriptors for ASM [RAC]Disk Management and DiscoveryAutomatic disk discoveryASM_DISKSTRING need not be set I ASM detects ASMLIB or set to โ€˜ORCL:*โ€™Device name persistence across all nodes in a clusterAutomatic ASM disk namingObviates the need for raw devicesI/O ProcessingOne call to ASMLIB can submit & reap multiple I/Oโ€™s, reducing the number of calls to OS โ€“ context switches.Performs async I/Os via internal calls
ASMLIB Installation & ConfConsists of three rpms:oracleasm-support-2.0.1-1.i386.rpmoracleasmlib-2.0.1-1.i386.rpmoracleasm-2.6.9-34.ELsmp-2.0.1-1.i686.rpmDownload the ASMLib software from the OTN website
ASMLIB Installation & ConfInstall the packages as the root user# rpm โ€“Uvh oracleasm-support-2.0.1-1.i386.rpm \ oracleasmlib-2.0.1-1.i386.rpm \ oracleasm-2.6.9-34.ELsmp-2.0.1-1.i686.rpm
ASMLIB Installation & ConfConfiguring the Oracle ASM library driver. It will configure the on-boot properties for it.#/etc/init.d/oracleasm configureResponse requiredDefault userDefault groupStart Oracle ASM library on bootFix permissions of Oracle ASM disks on boot
ASMLIB Installation & ConfOnce ASMLIB is installed and configured. Once ASM is restarted, ASM will dynamically discover that ASMLIB is loadedAll disk discovery and IO calls are handled through ASMLIBAfter ASM initialization youโ€™ll see the following message in the ASM log:Loaded ASM library โ€“ Generic Linux version 1.0.0 library for asmlib interface
ASMLIB - Creating disksOnce the kernel module is loaded, stamp (or label) the partitions created earlier as ASM disks#/etc/init.d/oracleasmcreatedisk VOL1 /dev/sdb1 ( Marking disk โ€œ/dev/sdb1โ€ as an ASM diskIf RAC installation, on the other nodes#/etc/init.d/oracleasm scandisks# /etc/init.d/oracleasmlistdisks	 displays VOL1
Lab 1 :  Configuration of devices for ASMLab 2 :  Install and Configure ASMLIB
I/O DistributionASM implements Stripe and Mirror Everything( SAME)
Spreads file AUs evenly across disks in Disk Group
Evenly spreads space usage and I/O across disks
Removes need for manual tuning
Allows online storage reconfiguration
Since ASM distributes extents evenly, there are no hot spotsASM Placement in the Storage Stack   Applications   DatabaseASMOperating SystemStorage System
ASM Operational Stack   Tables   TablesTablespaceTablespace   Files   FilesASM   File System   File System   Logical Vol   Logical Vol   Disks   Disks Group   Networked Storage (SAN , NAS)
Storage and ASM administrationSYS Admin RolePre-InstallationCreate LUNsSet Ownership and permissions to Oracle userASM Admin RoleInstallationOracle Universal Installer (OUI)Conf AssistantsCreate disk groupsNormal OperationMonitor capacity and availabilityProvision capacity
ASM Reduces Mgmt ComplexityEliminatesLVM mgmt for Oracle DB File system mgmt for Oracle DBCluster FS and RAW mgmtFile name mgmtReshuffling, reallocating moving datafilesI/O performance tuningReduce significantlyLUN mgmt (larger LUNs)Less frequent DBA and sys admin interactionManual error prone tasksTroubleshootingExpanding Capacity
Traditional LVM/FS vs ASM Add CapacityLVM/FSAdd Disk to O/SCreate volume(s) with Volume ManagerCreate File System over volumeFigure out data to  move to new diskMove data to new filesRename files in databaseRe-tune I/OASMAdd Disk to O/SAdd Disk to a disk group
ASM Process Architecture   DB InstanceNon-RAC Database   ASM Instance   Server   Pool of StorageDisk Group   Disk Group
ASM ArchitectureStorage and Data ObjectsAllocation Units
ASM Disks
Disk Groups
External redundancy
ASM redundancy
ASM Files
Extent Maps
RebalanceAllocation UnitsASM Disks are divided into Allocation UnitsDefault allocation unit size is 1MBIn 11g โ€“ configurable at diskgroup creation1 MB Allocation Units small enough to be cached by database and large enough for efficient sequential accessFiles are a collection of Allocation UnitsAnalogous to extents in filesystems
ASM DiskObject of persistent storage for a Disk Group
Accessed through normal OS interfaces
Needs to be read/write accessible by Oracle user
Accessible to all nodes in a cluster
May have different names on different nodes
Path names not stored on disk
Object that is protected using ASM redundancy
Ad

More Related Content

What's hot (20)

Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
John Kanagaraj
ย 
Oracle Latch and Mutex Contention Troubleshooting
Oracle Latch and Mutex Contention TroubleshootingOracle Latch and Mutex Contention Troubleshooting
Oracle Latch and Mutex Contention Troubleshooting
Tanel Poder
ย 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
Satishbabu Gunukula
ย 
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata MigrationsTanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder
ย 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Aaron Shilo
ย 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
Maria Colgan
ย 
Securefile LOBs
Securefile LOBsSecurefile LOBs
Securefile LOBs
Martin Berger
ย 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
John Beresniewicz
ย 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
ย 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools short
Tanel Poder
ย 
Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insights
Kirill Loifman
ย 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
Markus Michalewicz
ย 
How to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support QuestionHow to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support Question
Markus Michalewicz
ย 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
Mohamed Farouk
ย 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on Exadata
Anil Nair
ย 
A deep dive about VIP,HAIP, and SCAN
A deep dive about VIP,HAIP, and SCAN A deep dive about VIP,HAIP, and SCAN
A deep dive about VIP,HAIP, and SCAN
Riyaj Shamsudeen
ย 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
Anil Nair
ย 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Markus Michalewicz
ย 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
Mauro Pagano
ย 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarez
Insight Technology, Inc.
ย 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
John Kanagaraj
ย 
Oracle Latch and Mutex Contention Troubleshooting
Oracle Latch and Mutex Contention TroubleshootingOracle Latch and Mutex Contention Troubleshooting
Oracle Latch and Mutex Contention Troubleshooting
Tanel Poder
ย 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
Satishbabu Gunukula
ย 
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata MigrationsTanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder
ย 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Aaron Shilo
ย 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
Maria Colgan
ย 
Securefile LOBs
Securefile LOBsSecurefile LOBs
Securefile LOBs
Martin Berger
ย 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
John Beresniewicz
ย 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
ย 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools short
Tanel Poder
ย 
Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insights
Kirill Loifman
ย 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
Markus Michalewicz
ย 
How to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support QuestionHow to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support Question
Markus Michalewicz
ย 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
Mohamed Farouk
ย 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on Exadata
Anil Nair
ย 
A deep dive about VIP,HAIP, and SCAN
A deep dive about VIP,HAIP, and SCAN A deep dive about VIP,HAIP, and SCAN
A deep dive about VIP,HAIP, and SCAN
Riyaj Shamsudeen
ย 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
Anil Nair
ย 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Markus Michalewicz
ย 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
Mauro Pagano
ย 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarez
Insight Technology, Inc.
ย 

Viewers also liked (20)

Oracle ASM 11g - The Evolution
Oracle ASM 11g - The EvolutionOracle ASM 11g - The Evolution
Oracle ASM 11g - The Evolution
Alex Gorbachev
ย 
Automatic Storage Management (ASM) metrics are a goldmine: Let's use them!
Automatic Storage Management (ASM) metrics are a goldmine: Let's use them!Automatic Storage Management (ASM) metrics are a goldmine: Let's use them!
Automatic Storage Management (ASM) metrics are a goldmine: Let's use them!
BertrandDrouvot
ย 
Presentation implementing oracle asm successfully
Presentation    implementing oracle asm successfullyPresentation    implementing oracle asm successfully
Presentation implementing oracle asm successfully
xKinAnx
ย 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
Jakkrapat S.
ย 
Exploit Frameworks
Exploit FrameworksExploit Frameworks
Exploit Frameworks
phanleson
ย 
2.Format Strings
2.Format Strings2.Format Strings
2.Format Strings
phanleson
ย 
O Racle Asm Best Practices Presentation
O Racle Asm Best Practices PresentationO Racle Asm Best Practices Presentation
O Racle Asm Best Practices Presentation
eraz
ย 
System Hacking Tutorial #1 - Introduction to Vulnerability and Type of Vulner...
System Hacking Tutorial #1 - Introduction to Vulnerability and Type of Vulner...System Hacking Tutorial #1 - Introduction to Vulnerability and Type of Vulner...
System Hacking Tutorial #1 - Introduction to Vulnerability and Type of Vulner...
sanghwan ahn
ย 
Oracle flex asm & flex cluster
Oracle flex asm & flex clusterOracle flex asm & flex cluster
Oracle flex asm & flex cluster
Ghanshyam Khetan
ย 
Bug Hunting with Media Formats
Bug Hunting with Media FormatsBug Hunting with Media Formats
Bug Hunting with Media Formats
Russell Sanford
ย 
Oracle Database 12c features for DBA
Oracle Database 12c features for DBAOracle Database 12c features for DBA
Oracle Database 12c features for DBA
Karan Kukreja
ย 
A Second Look at Oracle RAC 12c
A Second Look at Oracle RAC 12cA Second Look at Oracle RAC 12c
A Second Look at Oracle RAC 12c
Leighton Nelson
ย 
Les 01 Arch
Les 01 ArchLes 01 Arch
Les 01 Arch
vivaankumar
ย 
Oracle Database on ACFS: a perfect marriage?
Oracle Database on ACFS: a perfect marriage?Oracle Database on ACFS: a perfect marriage?
Oracle Database on ACFS: a perfect marriage?
Ludovico Caldara
ย 
Hacking A Web Site And Secure Web Server Techniques Used
Hacking A Web Site And Secure Web Server Techniques UsedHacking A Web Site And Secure Web Server Techniques Used
Hacking A Web Site And Secure Web Server Techniques Used
Siddharth Bhattacharya
ย 
DrupalCamp London 2017 - Web site insecurity
DrupalCamp London 2017 - Web site insecurity DrupalCamp London 2017 - Web site insecurity
DrupalCamp London 2017 - Web site insecurity
George Boobyer
ย 
Java tutorial for beginners | Java Features
Java tutorial for beginners | Java FeaturesJava tutorial for beginners | Java Features
Java tutorial for beginners | Java Features
Speed4Career
ย 
Sales manager- Job & Role
Sales manager- Job & RoleSales manager- Job & Role
Sales manager- Job & Role
Amol Chate
ย 
Oracle Upgrade11gr1 Workshop1
Oracle Upgrade11gr1 Workshop1Oracle Upgrade11gr1 Workshop1
Oracle Upgrade11gr1 Workshop1
Hector Martinez
ย 
Oracle dba interview questions with answer
Oracle dba interview questions with answerOracle dba interview questions with answer
Oracle dba interview questions with answer
upenpriti
ย 
Oracle ASM 11g - The Evolution
Oracle ASM 11g - The EvolutionOracle ASM 11g - The Evolution
Oracle ASM 11g - The Evolution
Alex Gorbachev
ย 
Automatic Storage Management (ASM) metrics are a goldmine: Let's use them!
Automatic Storage Management (ASM) metrics are a goldmine: Let's use them!Automatic Storage Management (ASM) metrics are a goldmine: Let's use them!
Automatic Storage Management (ASM) metrics are a goldmine: Let's use them!
BertrandDrouvot
ย 
Presentation implementing oracle asm successfully
Presentation    implementing oracle asm successfullyPresentation    implementing oracle asm successfully
Presentation implementing oracle asm successfully
xKinAnx
ย 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
Jakkrapat S.
ย 
Exploit Frameworks
Exploit FrameworksExploit Frameworks
Exploit Frameworks
phanleson
ย 
2.Format Strings
2.Format Strings2.Format Strings
2.Format Strings
phanleson
ย 
O Racle Asm Best Practices Presentation
O Racle Asm Best Practices PresentationO Racle Asm Best Practices Presentation
O Racle Asm Best Practices Presentation
eraz
ย 
System Hacking Tutorial #1 - Introduction to Vulnerability and Type of Vulner...
System Hacking Tutorial #1 - Introduction to Vulnerability and Type of Vulner...System Hacking Tutorial #1 - Introduction to Vulnerability and Type of Vulner...
System Hacking Tutorial #1 - Introduction to Vulnerability and Type of Vulner...
sanghwan ahn
ย 
Oracle flex asm & flex cluster
Oracle flex asm & flex clusterOracle flex asm & flex cluster
Oracle flex asm & flex cluster
Ghanshyam Khetan
ย 
Bug Hunting with Media Formats
Bug Hunting with Media FormatsBug Hunting with Media Formats
Bug Hunting with Media Formats
Russell Sanford
ย 
Oracle Database 12c features for DBA
Oracle Database 12c features for DBAOracle Database 12c features for DBA
Oracle Database 12c features for DBA
Karan Kukreja
ย 
A Second Look at Oracle RAC 12c
A Second Look at Oracle RAC 12cA Second Look at Oracle RAC 12c
A Second Look at Oracle RAC 12c
Leighton Nelson
ย 
Les 01 Arch
Les 01 ArchLes 01 Arch
Les 01 Arch
vivaankumar
ย 
Oracle Database on ACFS: a perfect marriage?
Oracle Database on ACFS: a perfect marriage?Oracle Database on ACFS: a perfect marriage?
Oracle Database on ACFS: a perfect marriage?
Ludovico Caldara
ย 
Hacking A Web Site And Secure Web Server Techniques Used
Hacking A Web Site And Secure Web Server Techniques UsedHacking A Web Site And Secure Web Server Techniques Used
Hacking A Web Site And Secure Web Server Techniques Used
Siddharth Bhattacharya
ย 
DrupalCamp London 2017 - Web site insecurity
DrupalCamp London 2017 - Web site insecurity DrupalCamp London 2017 - Web site insecurity
DrupalCamp London 2017 - Web site insecurity
George Boobyer
ย 
Java tutorial for beginners | Java Features
Java tutorial for beginners | Java FeaturesJava tutorial for beginners | Java Features
Java tutorial for beginners | Java Features
Speed4Career
ย 
Sales manager- Job & Role
Sales manager- Job & RoleSales manager- Job & Role
Sales manager- Job & Role
Amol Chate
ย 
Oracle Upgrade11gr1 Workshop1
Oracle Upgrade11gr1 Workshop1Oracle Upgrade11gr1 Workshop1
Oracle Upgrade11gr1 Workshop1
Hector Martinez
ย 
Oracle dba interview questions with answer
Oracle dba interview questions with answerOracle dba interview questions with answer
Oracle dba interview questions with answer
upenpriti
ย 
Ad

Similar to Oracle ASM Training (20)

Oracle & sql server comparison 2
Oracle & sql server comparison 2Oracle & sql server comparison 2
Oracle & sql server comparison 2
Mohsen B
ย 
10g rac asm
10g rac asm10g rac asm
10g rac asm
Victor
ย 
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
IOUG Collaborate 18 - ASM Concepts, Architecture and Best PracticesIOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
Pini Dibask
ย 
D81242GC20_les01.pptx
D81242GC20_les01.pptxD81242GC20_les01.pptx
D81242GC20_les01.pptx
AbdallahAttia9
ย 
les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_
tricantino1973
ย 
Arquitectura para aprender a administrar Oracle 11g
Arquitectura para aprender a administrar Oracle 11gArquitectura para aprender a administrar Oracle 11g
Arquitectura para aprender a administrar Oracle 11g
188882
ย 
ORACLE RAC DBA ONLINE TRAINING
ORACLE RAC DBA ONLINE TRAININGORACLE RAC DBA ONLINE TRAINING
ORACLE RAC DBA ONLINE TRAINING
Santhosh Sap
ย 
Oracle siebel online training
Oracle siebel online trainingOracle siebel online training
Oracle siebel online training
Santhosh Sap
ย 
Oracle acfs in oracle 11
Oracle acfs in oracle 11Oracle acfs in oracle 11
Oracle acfs in oracle 11
Guenadi JILEVSKI
ย 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
Femi Adeyemi
ย 
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
Markus Michalewicz
ย 
les_01_core.ppt
les_01_core.pptles_01_core.ppt
les_01_core.ppt
SoloParaTi7
ย 
Conceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11gConceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11g
188882
ย 
les_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.pptles_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.ppt
mhmdfoad66
ย 
RAC+ASM: Stories to Share
RAC+ASM: Stories to ShareRAC+ASM: Stories to Share
RAC+ASM: Stories to Share
kutrovsky
ย 
Os
OsOs
Os
Hero Prabhu
ย 
Oracle database 12c asm administration
Oracle database 12c asm administrationOracle database 12c asm administration
Oracle database 12c asm administration
Voice Training and Research Pvt Ltd
ย 
I/O System and Csae Study
I/O System and Csae StudyI/O System and Csae Study
I/O System and Csae Study
palpandi it
ย 
Palpandi
PalpandiPalpandi
Palpandi
Gopinathan Janakiram
ย 
Rac&asm
Rac&asmRac&asm
Rac&asm
Osama Mustafa
ย 
Oracle & sql server comparison 2
Oracle & sql server comparison 2Oracle & sql server comparison 2
Oracle & sql server comparison 2
Mohsen B
ย 
10g rac asm
10g rac asm10g rac asm
10g rac asm
Victor
ย 
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
IOUG Collaborate 18 - ASM Concepts, Architecture and Best PracticesIOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
Pini Dibask
ย 
D81242GC20_les01.pptx
D81242GC20_les01.pptxD81242GC20_les01.pptx
D81242GC20_les01.pptx
AbdallahAttia9
ย 
les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_
tricantino1973
ย 
Arquitectura para aprender a administrar Oracle 11g
Arquitectura para aprender a administrar Oracle 11gArquitectura para aprender a administrar Oracle 11g
Arquitectura para aprender a administrar Oracle 11g
188882
ย 
ORACLE RAC DBA ONLINE TRAINING
ORACLE RAC DBA ONLINE TRAININGORACLE RAC DBA ONLINE TRAINING
ORACLE RAC DBA ONLINE TRAINING
Santhosh Sap
ย 
Oracle siebel online training
Oracle siebel online trainingOracle siebel online training
Oracle siebel online training
Santhosh Sap
ย 
Oracle acfs in oracle 11
Oracle acfs in oracle 11Oracle acfs in oracle 11
Oracle acfs in oracle 11
Guenadi JILEVSKI
ย 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
Femi Adeyemi
ย 
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
Markus Michalewicz
ย 
les_01_core.ppt
les_01_core.pptles_01_core.ppt
les_01_core.ppt
SoloParaTi7
ย 
Conceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11gConceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11g
188882
ย 
les_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.pptles_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.ppt
mhmdfoad66
ย 
RAC+ASM: Stories to Share
RAC+ASM: Stories to ShareRAC+ASM: Stories to Share
RAC+ASM: Stories to Share
kutrovsky
ย 
I/O System and Csae Study
I/O System and Csae StudyI/O System and Csae Study
I/O System and Csae Study
palpandi it
ย 
Ad

Recently uploaded (20)

Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
ย 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
ย 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
ย 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
ย 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
ย 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
ย 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
ย 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
ย 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
ย 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
ย 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
ย 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
ย 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
ย 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
ย 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
ย 
Drupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Drupalcamp Finland โ€“ Measuring Front-end Energy ConsumptionDrupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Drupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Exove
ย 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
ย 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
ย 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
ย 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
ย 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
ย 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
ย 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
ย 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
ย 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
ย 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
ย 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
ย 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
ย 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
ย 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
ย 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
ย 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
ย 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
ย 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
ย 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
ย 
Drupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Drupalcamp Finland โ€“ Measuring Front-end Energy ConsumptionDrupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Drupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Exove
ย 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
ย 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
ย 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
ย 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
ย 

Oracle ASM Training

  • 1. Oracle ASM TrainingOracle ASM TrainingByVally CardozaJim Stolzenfeld
  • 3. Our Service OfferingsEnterprise Application Management
  • 4. Oracle E-Business & SAP Managed Services
  • 20. Analytic ReportingOffice LocationsUNITED STATESMichigan - (Headquarters)3290 W Big Beaver Rd Suite 310, Troy Michigan. 48084.tel:ย ย ย 248-614-2500ย ย ย  fax: 248 404-9805Georgia2020 Airport Industrial Park, Drive, Marietta, Georgia. 30060.tel:ย ย ย 770-404-9800ย ย  fax:770-404-9800CANADA5925 Airport Rd, Suite 200 Mississauga L4V 1W1.tel:ย ย ย 905ย 405-6320ย ย  fax: 905 248-3502INDIAPlot No: 23/A, Flat No: 202,Sai Sushma Homes,SR Nagar, Hyderabad - 500038.tel: 040-64581999
  • 22. AgendaDatabase ConceptsASMLibASMASM Best PracticesASM ManagementASM TroubleshootingMigrating database to ASMOrion Tool11g ASM new featuresQ/A
  • 23. Database ConceptsDatabase ConceptsDatabase ArchitectureStorage Architecture (Logical)Storage Architecture (Physical)Storage Requirements
  • 24. Database ArchitectureCollection of system elementsShared MemoryConcurrency is maintained by locks/latchesMessage passing between processesDBWR (Database writer)LGWR (Log Writer)
  • 25. Database ArchitectureUser processUser processUser processServer processServer processServer processProcess monitor processBuffer poolShared memoryLock Manager processQuery plan cacheLog bufferLock tableDatabase Writer processLog Writer processCheckpoint process Log disks data disksdata disks
  • 26. Storage (Logical)TablespacesSegmentsData segmentIndex segmentTemporary segmentRollback segmentExtentsOracle data blocks
  • 27. Storage (Physical) Database System Tablespace Data TablespaceTableTableTableIndexTableTableIndexIndexIndexIndexTableIndexTable DBFILE1 DBFILE3 DBFILE2 Drive 1 Drive 2
  • 29. Oracle binaries ( ASM and RDBMS home)
  • 36. Database external files โ€“ bfiles, external tables
  • 38. Clusterware files โ€“ OCR (Oracle Cluster Registry) and Vote disks
  • 39. Server Initialization files ( SPFILEs)Storage RequirementsLocal Filesystems /NAS/NFS
  • 49. SPFiles (RDBMS & ASM)Raw/Block devicesDatabase filesSPFILES (RDBMS & ASM)Oracle Clusterware devicesASMDatabase filesSPFILES (RDBMS)
  • 50. ASMWhat is ASMVolume Manager and file system built into Oracle KernelFile system with raw disk performanceEliminates need for third-party volume manager and file system for Oracle datafilesUsable for non-RAC and RAC databases alikeCan be run over LVM (not recommended)
  • 51. ASMLIBAn API developed by Oracle to:Simplify the operating system to database interfaceExploits the capabilities and strengths of vendorsโ€™ storage arrayAlternative interface for the ASM enabled kernel to identify and access block devices3rd party vendors would write ASMLIB libraries for their arrayOracle distributes an Oracle ASMLIB for Linux only (free add-on to ASM)
  • 52. ASMLIBReduced OverheadGlobally manages all disk file descriptors for ASM [RAC]Disk Management and DiscoveryAutomatic disk discoveryASM_DISKSTRING need not be set I ASM detects ASMLIB or set to โ€˜ORCL:*โ€™Device name persistence across all nodes in a clusterAutomatic ASM disk namingObviates the need for raw devicesI/O ProcessingOne call to ASMLIB can submit & reap multiple I/Oโ€™s, reducing the number of calls to OS โ€“ context switches.Performs async I/Os via internal calls
  • 53. ASMLIB Installation & ConfConsists of three rpms:oracleasm-support-2.0.1-1.i386.rpmoracleasmlib-2.0.1-1.i386.rpmoracleasm-2.6.9-34.ELsmp-2.0.1-1.i686.rpmDownload the ASMLib software from the OTN website
  • 54. ASMLIB Installation & ConfInstall the packages as the root user# rpm โ€“Uvh oracleasm-support-2.0.1-1.i386.rpm \ oracleasmlib-2.0.1-1.i386.rpm \ oracleasm-2.6.9-34.ELsmp-2.0.1-1.i686.rpm
  • 55. ASMLIB Installation & ConfConfiguring the Oracle ASM library driver. It will configure the on-boot properties for it.#/etc/init.d/oracleasm configureResponse requiredDefault userDefault groupStart Oracle ASM library on bootFix permissions of Oracle ASM disks on boot
  • 56. ASMLIB Installation & ConfOnce ASMLIB is installed and configured. Once ASM is restarted, ASM will dynamically discover that ASMLIB is loadedAll disk discovery and IO calls are handled through ASMLIBAfter ASM initialization youโ€™ll see the following message in the ASM log:Loaded ASM library โ€“ Generic Linux version 1.0.0 library for asmlib interface
  • 57. ASMLIB - Creating disksOnce the kernel module is loaded, stamp (or label) the partitions created earlier as ASM disks#/etc/init.d/oracleasmcreatedisk VOL1 /dev/sdb1 ( Marking disk โ€œ/dev/sdb1โ€ as an ASM diskIf RAC installation, on the other nodes#/etc/init.d/oracleasm scandisks# /etc/init.d/oracleasmlistdisks displays VOL1
  • 58. Lab 1 : Configuration of devices for ASMLab 2 : Install and Configure ASMLIB
  • 59. I/O DistributionASM implements Stripe and Mirror Everything( SAME)
  • 60. Spreads file AUs evenly across disks in Disk Group
  • 61. Evenly spreads space usage and I/O across disks
  • 62. Removes need for manual tuning
  • 63. Allows online storage reconfiguration
  • 64. Since ASM distributes extents evenly, there are no hot spotsASM Placement in the Storage Stack Applications DatabaseASMOperating SystemStorage System
  • 65. ASM Operational Stack Tables TablesTablespaceTablespace Files FilesASM File System File System Logical Vol Logical Vol Disks Disks Group Networked Storage (SAN , NAS)
  • 66. Storage and ASM administrationSYS Admin RolePre-InstallationCreate LUNsSet Ownership and permissions to Oracle userASM Admin RoleInstallationOracle Universal Installer (OUI)Conf AssistantsCreate disk groupsNormal OperationMonitor capacity and availabilityProvision capacity
  • 67. ASM Reduces Mgmt ComplexityEliminatesLVM mgmt for Oracle DB File system mgmt for Oracle DBCluster FS and RAW mgmtFile name mgmtReshuffling, reallocating moving datafilesI/O performance tuningReduce significantlyLUN mgmt (larger LUNs)Less frequent DBA and sys admin interactionManual error prone tasksTroubleshootingExpanding Capacity
  • 68. Traditional LVM/FS vs ASM Add CapacityLVM/FSAdd Disk to O/SCreate volume(s) with Volume ManagerCreate File System over volumeFigure out data to move to new diskMove data to new filesRename files in databaseRe-tune I/OASMAdd Disk to O/SAdd Disk to a disk group
  • 69. ASM Process Architecture DB InstanceNon-RAC Database ASM Instance Server Pool of StorageDisk Group Disk Group
  • 70. ASM ArchitectureStorage and Data ObjectsAllocation Units
  • 77. RebalanceAllocation UnitsASM Disks are divided into Allocation UnitsDefault allocation unit size is 1MBIn 11g โ€“ configurable at diskgroup creation1 MB Allocation Units small enough to be cached by database and large enough for efficient sequential accessFiles are a collection of Allocation UnitsAnalogous to extents in filesystems
  • 78. ASM DiskObject of persistent storage for a Disk Group
  • 79. Accessed through normal OS interfaces
  • 80. Needs to be read/write accessible by Oracle user
  • 81. Accessible to all nodes in a cluster
  • 82. May have different names on different nodes
  • 83. Path names not stored on disk
  • 84. Object that is protected using ASM redundancy
  • 85. Files evenly distributed across disks in a Disk groupStriping GranularityASM separates striping for load balance and striping for latencyCoarse grained striping concatenates virtual extentsFine grain striping puts 128K stripe units across groups of 8 virtual extents for latency
  • 86. Disk Header InfoDisk Header defines ASM DiskBlock zero of every ASM DiskASM Disk name and numberTime stamp of creationHouses ASM metadataFile directoryAllocation table and Free space table
  • 87. Disk DiscoveryASM InstanceHas a bootstrap file called init.ora/spfile.oraASM_DISKSTRING=/dev/rdsk/*ASM_DISKGROUP=โ€˜DATAโ€™,โ€™FRAโ€™Display discovered disksSelect name, path from V$asm_disk; asmcmd>lsdsk
  • 88. ASM Diskgroup OverviewHighest level object managed by ASMA collection of ASM disksSelf-describing independent of media nameA file is allocated within a disk groupMultiple databases share multiple disk groups
  • 89. ASM Diskgroup TypesDisk GroupsExternal RedundancyRedundancy Managed by external means; e.g; intelligent storage arrayA collection of ASM disksASM RedundancyRedundancy managed and maintained by ASMNormal โ€“ mirroringHigh โ€“ Triple mirroring
  • 90. ASM Diskgroup SetupA walkthrough configuration of a diskgroupPresent LUNs to hostEnsure correct disk permission so that ASM disk discovery will find the provisioned LUNs.Create diskgroup using the required number of disks:SQL> create diskgroup DATA external redundancy disks โ€˜/dev/sda1โ€™,โ€™/dev/sda2โ€™;
  • 92. External Redundancy12534Five data extent file and One MB fine grained file
  • 93. ASM Failure GroupsA Disk Group is partitioned into two or more Failure Groups
  • 94. A Failure Group is a set of disks sharing a common resource whose failure needs to be tolerated
  • 95. Redundant copies of extents are stored in separate Failure Groups
  • 96. Failure Groups are specified by DBAs or automatically by ASM
  • 97. Hardware dictates Failure Group boundariesASM Failure GroupsServerController 2Controller 1Failure Group 1Failure Group 2Disk Groups
  • 98. Normal RedundancyDisk ADisk FDisk EDisk BDisk HDisk GDisk CDisk DFailure Group 2Failure Group 1Empty Disk Groups
  • 99. Normal RedundancyDisk ADisk FDisk EDisk B14154Disk HDisk GDisk CDisk D35322Failure Group 2Failure Group 1Five MB normal redundancy filePrimary extents in redSecondary extents in green
  • 100. Disk FailureDisk ADisk FDisk EDisk B14154Disk HDisk GDisk CDisk D35322Failure Group 2Failure Group 1Disk H Fails
  • 101. Disk FailureDisk ADisk FDisk EDisk B141543Disk HDisk GDisk CDisk D353252Failure Group 2Failure Group 1Reconstruct Redundancy
  • 102. Disk FailureDisk ADisk FDisk EDisk B141543Disk GDisk CDisk D3252Failure Group 2Failure Group 1Drop Disk
  • 103. ASM FileASM File creationASM Instance is registered with CSS (Cluster Synchronizing Service) Database Process connects directly to ASM instance getting information from CSSDatabase requests file creation and blocks for replyASM foreground creates Continuing Operation Directory (COD) entry and allocates space for new file across all disksASMB receives extent map for new file
  • 104. ASM FileASM File creation (contโ€™d)Database process initializes file contentsDatabase process requests commit of file createASM foreground clears COD(Continuing Operation Directory) and marks file createdASMB message to delete extent map closing fileDatabase process logs out of ASM
  • 105. ASM FileASM File OpenDatabase Process allocates a connection slaveOpen request sent to slave and on to ASM foregroundASM foreground finds file and sends extent map to ASMBSlave receives successful open and returns it to the database process
  • 106. Extent MapDisk AExtent Map ASM File14Disk B2Disk C3 File Address Space
  • 107. ASM RebalanceStorage reconfiguration ( add/drop/failure) leads to a need to rebalance
  • 108. Rebalance is done automatically while Disk Group is online and only one extent is locked at a time
  • 109. ASM files are equally spread across all disks in a Disk Group
  • 110. Disk add => Share of file extents from all currently mounted disks are moved to a new disk
  • 111. Disk drop => File extents on dropped disk evenly moved to remaining disksLab 3 : Creating ASM Instance and managing ASM Disk Groups
  • 112. ASM Best PracticesASM Installation
  • 113. Install ASM in a separate ORACLE_HOME than the database ORACLE_HOME
  • 114. Provides higher availability and manageability
  • 115. Allows independent upgrades of the database and ASM
  • 116. De-installation of database software can be performed without impacting the ASM instance
  • 118. If using hardware RAID, make sure LUN stripe size is as close to 1mb as possible
  • 119. Use OS disk labels when possible
  • 120. Prevents accidental user overwrites of disks
  • 122. Make sure the disk (partition) starts at 1MB a boundary, to ensure proper I/O alignment
  • 123. With 10.2, one can use block devices for e.g. use /dev/sda1 instead of /dev/raw/raw1ASM Best PracticesDisk Best PracticesMake sure disks span multiple backend disk adaptersImplement multiple access paths to the storage array using two or more HBAs or initiatorsDeploy multi-pathing software over these multiple HBAs to provide I/O load balancing and failover capabilities -- Metalink note 294869.1 Disk group Best PracticesCreate two diskgroups, one for database area and another for flash recovery area (no need to separate data from indexes)Create diskgroups using large number of similar type diskssame size same performance characteristicsTo minimize search overhead, perform all required mount operations in a single mount commandThe size of FRA diskgroup will depend on what is stored and how much is retained. The size is driven by recovery time objectives
  • 124. ASM Best PracticesDisk group Best PracticesUse ASM external redundancy when using high-end storage arraysUse ASM redundancy for low-end(modular) or JBOD storage array systemsUse failure groups with ASM redundancy,Determine what failure components your are protecting yourself from.Rebalance Best PracticesIf adding or removing multiple disks, make the change in a single rebalance operationThis coalesces rebalance operations and reduces overheadMake sure enough CPU and IO resources are available for rebalance operationUse ASM power level of 5Check to make sure a diskgroup is not left in a โ€œunbalancedโ€ state
  • 125. ASM Best PracticesDatabase-ASM Best PracticesUse Oracle Management File (OMF)Easier Oracle file managementReduces user file management errorsEnforcement of OFA standardsAutomatic deletion of ASM files when database files are droppedTo use OMF set:db_recovery_file_dest=โ€˜+FLASHโ€™db_create_file_dest=โ€˜+DATAโ€™The following recommendations for database SGA sizing can be used to calculate the SGA_TARGET value (Recommended to use 10G AMM automatic memory mgmt)large_pool = Add additional 600kprocessess= 16
  • 126. ASM Best PracticesDatabase-ASM Best PracticesShared_pool parameter Find out how much data will be stored in ASMFor diskgroups using external redundancy = (Every 100GB of space needs 1MB of extra shared pool) + 2MFor diskgroups using Normal redundancy = (Every 50GB of space needs 1MB of extra shared pool) + 4MFor diskgroups using High redundancy = (Every 33GB of space needs 1MB of extra shared pool) + 6MASM init.ora parameterprocesses = 25 + Add 15 per database connected to ASM
  • 127. ASM ManagementSQLPLUSDBCA (Database Configuration Assistant)Enterprise Managerasmcmd โ€“ command line access to ASM
  • 128. ASM ManagementSQLPLUSCreate/Drop disk groupCreate diskgroup DATA external redundancy disk โ€˜ORCL:*โ€™;Alter Disk groupAlter diskgroup DATA ADD/DROP/RESIZE disk..Alter diskgroup DATA add ..rebalance power {0|11};Alter diskgroup DATA MOUNT/DISMOUNT ..Alter diskgroup DATA ADD/ALTER/DROP TEMPLATE ..Alter diskgroup DATA DROP FILE/DIRECTORY/ALIAS ..Alter diskgroup DATA check all repair; Checks inconsistency of diskgroup metadataASM diskgroup and Disk v$ASM viewsSelect all v$asm_* views
  • 131. ASM Managementasmcmdlsct โ€“ list all the connected clients โ€“ from v$asm_clientlsdg โ€“ list the diskgroup from v$asm_diskgroupdu, ls, mkdir, pwd, rm, rmalias
  • 132. ASM TroubleshootingASM Startup failsMake sure CSS is started and running in the correct modeCSS should be started from the ASM home in single-instance setups and from the CRS home in cluster setupMake sure enough memory is available for ASM
  • 133. ASM TroubleshootingASM trace filesEach ASM instance has trace directoryAlert.log
  • 134. ASM TroubleshootingASM Disk DiscoveryCanโ€™t discover disksCheck to see if the asm_diskstring parameter matches the desired disk pathMake sure that the device is both readable and writable by ASMMake sure that the device is on an OS partition rather than on the raw disk itself; i.e., it should not include the partition that contains the VTOC.
  • 135. ASM TroubleshootingASM Disk DiscoveryCanโ€™t discover disksIf using ASMLIBEnsure ASMLIB listdisks lists all required disksMake sure that ASMLIB scandisk returns with <OK>Verify the correct library-specific discovery string is used; i.e. it should be โ€œORCL:*โ€ORA-15020: discovered duplicate ASM diskAsm_diskstring resolves to duplicate pathsIf using multipathing tools, specify the virtual device, or a single path
  • 136. ASM TroubleshootingDiskgroup IssuesDisk group out of space despite added storageMake sure that all ASM devices are of similar capacity, including the ones being addedIf failgroups contain more than one device, make sure that the total capacity of each failgroup is similar across all failgroups.If rebalance hangs because there is no more space availableThen add more storage of similar sizeMake sure that the asm_power_limit parameter is not set to zero
  • 137. ASM TroubleshootingDiskgroup IssuesUnexpected Disk group dismountWARNING: offlining mode 3 of disk 1/0x0( DATA_1_0001)Indicates that there was an I/O error to a particular diskERROR: PST-initiated MANDATORY DISMOUNT of group DATA_1Indicates that trying to take the disk offline would have caused data loss, so ASM is dismounting the disk group instead.In both cases look for disk I/O errors from OS and storage layers
  • 138. ASM TroubleshootingRecovering from Transient disk failuresFor ASM redundancy diskgroups, there may be cases where disks temporarily lose connectivity or have transient failuresV$ASM_DISK query shows this for a disk:NAME MOUNT_STATUS STATE--------- ----------------------- --------DATA MISSING HUNGEnsure youโ€™ve recovered from transient failure, v$asm_disk will now show a MEMBER diskAdd disks back in the diskgroup using the alter diskgroup add disk and specifying the FORCE option
  • 139. ASM TroubleshootingDatabase ConnectionsSymptom: Database unable to connect to ASM instance.ASM instance is not running or has not mounted the diskgroupDB user is not in the primary member of CSS groupSymptom: Subsequent Database mount cannot find the controlfileCheck that ASM instance is running and has mounted the diskgroupIf OMF was used to create the controlfile then one needs to create an alias for the OMF file and update the parameter file
  • 140. ASM TroubleshootingDatabase ConnectionsSymptom: Database does not startup due to errors in spfile stored in a diskgroupCopy the spfile out of the diskgroup to a local filesystem using create pfile from spfile=โ€˜+dg/spfile.oraโ€™
  • 141. ASM TroubleshootingMemory Related Issues (Shared pool, Large Pool, Cache Size, etc)Increase respective memory size, based on the suggestions made earlierNote that the memory requirements for the database and the ASM instances are different
  • 142. Migrating DB to ASMMigrating from non-ASM to ASM rman utilityDBMS_FILE_TRANSFER API Enterprise Manager which in turn uses RMAN
  • 143. Orion ToolOracle Input Output NumberMeasuring I/O of the storage using ORIONNot supported by Oracle
  • 144. Lab 4 : Migrating Database to ASMLab 5 : Orion Tool
  • 145. ASM 11G new featuresRe-sync ASM disks after transient failuresOnly changed blocks are resyncโ€™edAlter diskgroup DATA online disk D3_0001;Alter diskgroup DATA online all;BenefitsFraction of time to re-establish redundancyEnables pro-active maintenanceFast recovery in extended clusters
  • 146. ASM 11G new featuresPreferred Read Failure groupAllows local mirror read operations in extended clusters.Eliminates network latencies
  • 147. ASM 11G new featuresRolling upgrade and patchingMaximizes database availability in a cluster (RAC)How does it workPlace cluster in โ€œRolling Migrationโ€ modeBring down ASM on a cluster nodeUpgrade or patch ASM softwareRe-start ASM (Cluster can operate in mixed ASM version mode while rolling migration mode is on)Repeat the same for all nodesStop โ€˜Rolling Migrationโ€™ mode
  • 148. ASM 11G new featuresVariable ExtentsASM Extent MapCollection of data extents that defines ASM fileVariable size extentsExtent size grows automatically with file sizeBenefitsReduce memory utilization in SGAImproved file create/openIncrease maximum ASM file size100% automatic
  • 149. ASM 11G new featuresMaximum Allocation Units and Variable extentsHigher performance for large Segment I/O (DW)Allocation Unit (AU)Select at disk group creation time and may be 1/2/4/8/16/32/64 MBVariable size ASM file extentsExtent size = AU size up to 20,000 extentsExtent size = 8*AU up to 40,000 extentsExtent size= 64*AU beyond 40,001 extentsStripingCoarse Stripe size always = one AUFine Stripe size always = 128 KB
  • 150. ASM 11G new featuresDisk Group AttributesMaintain ASM and RDBMS compatibility based on requirementsAllow user to try new version before committing
  • 151. ASM 11G new features(Disk group attributes)
  • 152. Q & A

Editor's Notes

  • #13: Database files, here the logical storage objects are mapped to the physical objects
  • #14: Spfiles for ASM cannot be put in ASM due to chicken-n-egg situation
  • #24: In unstriped disk I/O, one or more disks can have all the data, whereas in striped disk I/O the data is evenly spread among the disks
  • #34: Fine grain is good for small I/O operations hence redo log writes
  • #36: ASM disk states โ€“ Member, Former, Candidate, Provisioned ( same as candidate but additional platform specific action has been taken by the admin to make the disk available for ASM), Foreign, unknown( ASM has not read the disk header yet)
  • #57: JBOD- Just a Bunch of disks
  • #61: Direcory are created so that alias can reside
  • #67: VTOC- volume table of content
  • #69: V$ASM_OPERATION for rebalance operation
  • #80: ALTER SYSTEM START ROLLING MIGRATION TO '11.1.0.7.0'; ALTER SYSTEM STOP ROLLING MIGRATION;
  • #81: Note: RDBMS limits file size to 128TB