12 Copyright © 2006, Oracle. All rights reserved. Automatic Storage Management.

Slides:



Advertisements
Similar presentations
Using the SQL Access Advisor
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 3 CPUs.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Bare Bones ASM What Every DBA Needs to Know Jay Caviness Sr. Systems Engineer McKesson Provider Technologies.
Tom Hamilton – America’s Channel Database CSE
4.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 4: Organizing a Disk for Data.
ITEC474 INTRODUCTION.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Introduction to Oracle Automatic Storage Management (ASM) Copyright System Managers LLC 2008.
9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
EU market situation for eggs and poultry Management Committee 20 October 2011.
11 Copyright © Oracle Corporation, All rights reserved. Managing Tables.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
Analyzing Genes and Genomes
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Energy Generation in Mitochondria and Chlorplasts
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
4 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
1 Copyright © 2008, Oracle. All rights reserved. Database Architecture and ASM.
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
Configuring Recovery Manager
Using RMAN to Perform Recovery
14 Copyright © 2004, Oracle. All rights reserved. Automatic Storage Management.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
5 Copyright © 2004, Oracle. All rights reserved. Controlling the Database.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
ASM General Architecture
6 Copyright © 2007, Oracle. All rights reserved. Managing Database Storage Structures.
Creating an Oracle Database. Considerations before creating a DB Planning for Database Creation –Select the standard database block size. –Use an undo.
Oracle 10g Automatic Storage Management Overview of ASM as a Storage Option for Oracle 10g.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
13 Copyright © 2004, Oracle. All rights reserved. Optimizing Database Performance.
2 Copyright © 2006, Oracle. All rights reserved. RAC and Shared Storage.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
ASM File Group Parity Protection New to ASM for Oracle Database 19c
Performing Database Recovery
Presentation transcript:

12 Copyright © 2006, Oracle. All rights reserved. Automatic Storage Management

12-2 Copyright © 2006, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to: Identify the features of Automatic Storage Management (ASM) Set up initialization parameter files for ASM and database instances Execute SQL commands with ASM file names Start up and shut down ASM instances Administer ASM disk groups Use RMAN to migrate your database to ASM

12-3 Copyright © 2006, Oracle. All rights reserved. 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

12-4 Copyright © 2006, Oracle. All rights reserved. Automatic Storage Management: Review (notes only slide)

12-5 Copyright © 2006, Oracle. All rights reserved. ASM General Architecture ASM instance SID=asm ASM disks ASM disk group 1 DB instance SID= sales ASMB RBAL ARB 0 ARB A … ASM disks ASM disk group 2 ASM disks DBW 0 RBAL FG

12-6 Copyright © 2006, Oracle. All rights reserved.

12-7 Copyright © 2006, Oracle. All rights reserved. ASM Instance Tasks The following are tasks that you need to be able to perform in order to use an ASM instance: Create the ASM instance Set the initialization parameters Start the ASM instance Manage the ASM instance Shut down the ASM instance

12-8 Copyright © 2006, Oracle. All rights reserved. Creating an ASM Instance

12-9 Copyright © 2006, Oracle. All rights reserved. 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 LARGE_POOL_SIZE = 8MB

12-10 Copyright © 2006, Oracle. All rights reserved. Database Instance Parameter Changes … INSTANCE_TYPE = RDBMS LOG_ARCHIVE_FORMAT DB_BLOCK_SIZE DB_CREATE_ONLINE_LOG_DEST_n DB_CREATE_FILE_DEST DB_RECOVERY_FILE_DEST CONTROL_FILES LOG_ARCHIVE_DEST_n LOG_ARCHIVE_DEST STANDBY_ARCHIVE_DEST LARGE_POOL_SIZE = 8MB …

12-11 Copyright © 2006, Oracle. All rights reserved. Starting Up an ASM Instance $ export ORACLE_SID='+ASM' $ sqlplus /nolog SQL> CONNECT / AS sysdba Connected to an idle instance. SQL> STARTUP; ASM instance started Total System Global Area bytes Fixed Size bytes Variable Size bytes Database Buffers bytes Redo Buffers bytes ASM diskgroups mounted

12-12 Copyright © 2006, Oracle. All rights reserved. Accessing an ASM Instance Disk group Storage system AS SYSDBA AS SYSOPER ASM instance All operationsNondestructive operations

12-13 Copyright © 2006, Oracle. All rights reserved. Accessing an ASM Instance (notes only slide)

12-14 Copyright © 2006, Oracle. All rights reserved. ASM Home Page

12-15 Copyright © 2006, Oracle. All rights reserved. ASM Performance Page

12-16 Copyright © 2006, Oracle. All rights reserved. ASM Configuration Page

12-17 Copyright © 2006, Oracle. All rights reserved. Shutting Down an ASM Instance SHUTDOWN NORMAL ASM instance Database instance ADatabase instance B

12-18 Copyright © 2006, Oracle. All rights reserved. DBCA and Storage Options

12-19 Copyright © 2006, Oracle. All rights reserved. ASM Storage: Concepts Database Tablespace Segment Extent Oracle data block Data file Physical block ASM disk ASM file Allocation unit (AU) File system file or raw device ASM disk group

12-20 Copyright © 2006, Oracle. All rights reserved. ASM Disk Groups 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

12-21 Copyright © 2006, Oracle. All rights reserved. Failure Group Controller 1Controller 2 Failure group 1Failure group 2 Disk group A Controller 3 Failure group

12-22 Copyright © 2006, Oracle. All rights reserved. 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

12-23 Copyright © 2006, Oracle. All rights reserved. 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

12-24 Copyright © 2006, Oracle. All rights reserved. Managing Disk Groups CREATE DISKGROUP ALTER DISKGROUP DROP DISKGROUP ASM instance Database instance

12-25 Copyright © 2006, Oracle. All rights reserved. ASM Administration Page

12-26 Copyright © 2006, Oracle. All rights reserved. Create Disk Group Page

12-27 Copyright © 2006, Oracle. All rights reserved. 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;

12-28 Copyright © 2006, Oracle. All rights reserved. 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

12-29 Copyright © 2006, Oracle. All rights reserved. Adding Disks to Disk Groups (notes only slide)

12-30 Copyright © 2006, Oracle. All rights reserved. Miscellaneous ALTER Commands 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; Remove a disk from dgroupA : Add and drop a disk in a single command: Cancel a disk drop operation:

12-31 Copyright © 2006, Oracle. All rights reserved. Miscellaneous Alter Commands (notes only slide)

12-32 Copyright © 2006, Oracle. All rights reserved. ASM Files Database file ASM file automatically spread inside disk group dgroupA CREATE TABLESPACE sample DATAFILE '+dgroupA'; Automatic ASM file creation RMAN

12-33 Copyright © 2006, Oracle. All rights reserved. ASMCMD Utility $ asmcmd ASMCMD> ls -l DGROUP1/ORCL/DATAFILE Type Redund Striped Time Sys Name DATAFILE MIRROR COARSE OCT 05 21:00:00 Y HRAPPS DATAFILE MIRROR COARSE OCT 05 21:00:00 Y TBSASM ASMCMD> SQL> CREATE TABLESPACE tbsasm DATAFILE '+DGROUP1' SIZE 100M; Tablespace created. SQL> CREATE TABLESPACE hrapps DATAFILE '+DGROUP1' SIZE 10M; Tablespace created.

12-34 Copyright © 2006, Oracle. All rights reserved. Migrating Your Database to ASM Storage 1.Shut down your database cleanly. 2.Shut down the database and modify your server parameter file to use Oracle Managed Files (OMF). 3.Edit and execute the following RMAN script: STARTUP NOMOUNT; RESTORE CONTROLFILE FROM '/u1/c1.ctl'; ALTER DATABASE MOUNT; BACKUP AS COPY DATABASE FORMAT '+dgroup1'; SWITCH DATABASE TO COPY; SQL "ALTER DATABASE RENAME '/u1/log1' TO '+dgroup1' "; # Repeat RENAME command for all online redo log members... ALTER DATABASE OPEN RESETLOGS; SQL "ALTER DATABASE TEMPFILE '/u1/temp1' DROP";

12-35 Copyright © 2006, Oracle. All rights reserved. Migrating Your Database to ASM Storage (notes only slide)

12-36 Copyright © 2006, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Describe the concepts of Automatic Storage Management (ASM) Set up initialization parameter files for ASM and database instances Execute SQL commands with ASM file names Start up and shut down ASM instances Administer ASM disk groups Use RMAN to migrate your database to ASM

12-37 Copyright © 2006, Oracle. All rights reserved. Practice Overview: Using Automatic Storage Management This practice covers the following topics: Creating and starting an ASM instance Creating and using ASM disk groups Migrating a tablespace to ASM storage

12-38 Copyright © 2006, Oracle. All rights reserved.