Presentation is loading. Please wait.

Presentation is loading. Please wait.

Steven George Sr. Delivery Manager Mark Fuller Sr. Pr. Instructor Rick Pandya Pr. Instructor JF Verrier Pr. Curriculum Developer Oracle Corporation.

Similar presentations


Presentation on theme: "Steven George Sr. Delivery Manager Mark Fuller Sr. Pr. Instructor Rick Pandya Pr. Instructor JF Verrier Pr. Curriculum Developer Oracle Corporation."— Presentation transcript:

1

2 Steven George Sr. Delivery Manager Mark Fuller Sr. Pr. Instructor Rick Pandya Pr. Instructor JF Verrier Pr. Curriculum Developer Oracle Corporation

3 Oracle Database 10 g : Managing the Self- Managing Database

4 Objectives Understanding the self-management capabilities of Oracle Database 10 g Customizing the self-management capabilities of Oracle Database 10 g

5 Manageability Goal Automatic versus Manual Intelligence versus Data ½ Cost Adaptive versus Oversized Integrated versus Third Party Preventive versus Corrective Act and Succeed versus Trial and Error Reduce Administration Cost Reduce Capital Expenditure Reduce Failure Cost

6 How DBAs Spend Their Time Load Data 6% Maintain Software 6% Install 6% Create and Configure 12% Manage Database System 55%

7 Database Management Challenges Application and SQL Management Storage Management Backup and Recovery Management System Resource Management Space Management ?????

8 Solution: Self-Managing Database Application and SQL Management Storage Management Backup and Recovery Management System Resource Management Space Management FixAdvise AlertMonitor Common Manageability Infrastructure Automatic Management Enterprise Manager Database Console

9 Common Manageability Infrastructure: Automatic Workload Repository Automatic Workload Repository Server Alerts Automated Tasks Advisory Framework Data Warehouse of the Database Automatic collection of important statistics Direct memory access AutomaticProactive Efficient

10 Automatic Workload Repository SGA In-memory statistics AWR Statistics ASH SYSAUX MMON 7:00 a.m. 7:30 a.m. 8:00 a.m. WR Schema Snapshot 1 Snapshot 2 Snapshot 3 Snapshot 4 8:30 a.m. 8:30am ADDM finds top problems BG … FG … DBA Seven days

11 Statistics Level STATISTICS_LEVEL BASICTYPICALALL Recommended default value Additional statistics for manual SQL diagnostics Turn off all self-tuning capabilities

12 Configuring The Workload Repository

13 Manually Creating Snapshots

14 Database Feature Usage Metric Collection MMON DB Feature Usage Statistics DB High-Water Mark Statistics Advanced Replication, Oracle Streams, AQ, Virtual Private Database, Audit options, … size of largest segment, maximum number of sessions, maximum number of tables, maximum size of the database, maximum number of data files, … DBA_FEATURE_USAGE_STATISTICSDBA_HIGH_WATER_MARK_STATISTICS Oracle Database 10g AWR HOST CONFIGURATION INFO EM Repository: ECM EM Console Once a week

15 Common Manageability Infrastructure: Server Alerts Automatic Workload Repository Server Alerts Automated Tasks Advisory Framework Enabled by default Timely generation Push model AutomaticProactive Efficient

16 Server Alerts Oracle Server (SGA) Server Alerts Queue Enterprise Manager Server monitors itself MMON AWR Automatic Notification Guided Resolution

17 Server Alerts Delivery Process Advanced Queue Queue Subscribing Clients FG BG Push Third Party Console Update Page or e-mail DBAs EM (EMD)

18 Alert Server-Generated Alert Types MMON 85% Warning 97% CriticalAlertCleared Threshold Alerts Non- Threshold Alerts Metric-Based Event-Based Alert Snapshot Too Old Resumable Session Suspended Recovery Area Low On Free Space

19 Out-of-the-box Alerts Resumable Session Suspended Snapshot Too Old Recovery Area Low On Free Space Tablespace 85% Warning 97% Critical Tablespace Space Usage Locally Managed

20 EM Interface to Alerts

21 Setting Alert Thresholds

22 Common Manageability Infrastructure: Automated Tasks Automatic Workload Repository Server Alerts Automated Tasks Advisory Framework Pre-packaged routine maintenance tasks Resource usage controlled Statistics collection task scheduled out-of-the-box AutomaticProactive Efficient

23 Automatic Optimizer Statistics Collection Automatic statistics collection DBA tracks and gathers statistics Resolves two issues Targets right objects Determines right samples

24 Gather Statistics Job AUTO_TASKS_JOB_CLASS AUTO_TASKS_CONSUMER_GROUP gather_stats_job WEEKNIGHT_WINDOW 10pm–6am Mon to Fri MAINTENANCE_WINDOW_GROUP WEEKEND_WINDOW 12am Sat to 12am Mon

25 Adding New Tasks Using EM

26 D E M O N S T R A T I O N Creating Automated Tasks

27 Common Manageability Infrastructure: Advisory Framework Automatic Workload Repository Server Alerts Automated Tasks Advisory Framework Uniform interfaceFully integrated AutomaticProactive Efficient

28 Advisory Framework ADDM SQL Tuning Access Memory Space PGA SGA Segment Advisor Undo Buffer Cache Shared Pool Seamless integration AWR Common data source

29 Guided Tuning Session Create an advisor task Adjust task parameters Accept results? Implement recommendations YesNo Perform analysis Enterprise Manager Database Console

30 Advisory Central

31 Solution: Self-Managing Database Application and SQL Management Storage Management Backup and Recovery Management System Resource Management Space Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console

32 Performance Monitoring Solutions Snapshots ADDM ADDM Results MMON Alerts In-memory statistics AWR SGA Reactive Monitoring Proactive Monitoring within Oracle Server DBA

33 ADDM Performance Monitoring Snapshots ADDM MMON In-memory statistics AWR SGA ADDM Results EM 30 minutes ADDM Results

34 System Wait RAC Waits IO Waits Concurrency Buffer Busy Parse Latches Buf Cache latches Root CausesSymptoms ADDM Problem Classification System … … … … … … … … Non-problem areas

35 Accessing ADDM Advice

36 ADDM Recommendations

37 Performance Monitoring Solutions Snapshots ADDM ADDM Results MMON Alerts In-memory statistics AWR SGA Reactive Monitoring Proactive Monitoring within Oracle Server DBA

38 Performance Management Approach CPU/Waits SQLSessions Host Oracle CPU BottlenecksMemory Bottlenecks Uses ASH and AWR

39 EM Product Layout Enterprise-wide Console Page Target Databases Page Database Home Page Database Performance Page Drilldowns SQLSession

40 Database Performance Page

41 Concurrency Wait Class: Drill Down

42 Solution: Self-Managing Database Application and SQL Management Storage Management Backup and Recovery Management System Resource Management Space Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console

43 Automate the SQL Tuning Process DBA ADDM SQL Tuning Advisor High-load SQL SQL Workload I can do it for you!

44 SQL Tuning Advisor Overview Add Missing Index Run Access Advisor Restructure SQL Plan Tuning (SQL Profile) Automatic Tuning Optimizer SQL Analysis Optimization Mode Access Analysis Optimization Mode Plan Tuning Optimization Mode Statistics Check Optimization Mode Detect Stale or Missing Statistics Comprehensive SQL Tuning SQL Tuning Advisor

45 Plan Tuning Flow Optimizer (Tuning Mode) create submit output SQL Profile Database Users Well-Tuned Plan SQL Tuning Advisor use No application code change Optimizer (Normal Mode)

46 SQL Tuning Advisor Usage Model SQL Tuning Advisor ADDMHigh-load SQL Cursor Cache STS Custom Filter/Rank Sources Manual Selection Automatic Selection AWR DBA AWR

47 D E M O N S T R A T I O N Resolving Performance Problems

48 Solution: Self-Managing Database Application and SQL Management Storage Management Backup and Recovery Management Space Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console System Resource Management

49 Overview of Automatic Shared Memory Management Java Pool Database Buffer Cache Redo Log Buffer Shared Pool Large Pool SGA Fixed SGA Automatically set the optimal size MMAN

50 Benefits of Automatic Shared Memory Management DB_CACHE_SIZE SHARED_POOL_SIZE LARGE_POOL_SIZE JAVA_POOL_SIZE Total SGA size SGA_TARGET

51 Using EM to Configure Automatic Shared Memory Management

52 D E M O N S T R A T I O N Automating Memory Management

53 Solution: Self-Managing Database Application and SQL Management Storage Management Backup and Recovery Management System Resource Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console Space Management

54 Data Segment Shrink Overview HWM Shrink Operation Data Unused Space Reclaimed Space Online and in-place Data

55 How Can I Shrink Segments? ALTER TABLE employees SHRINK SPACE CASCADE; ALTER … SHRINK SPACE [CASCADE] TABLEINDEXMATERIALIZED VIEWMATERIALIZED VIEW LOG MODIFY PARTITIONMODIFY LOB ALTER TABLE employees ENABLE ROW MOVEMENT; 1 2 MODIFY SUBPARTITION

56 Segment Advisor

57 Growth Trend Report

58 D E M O N S T R A T I O N Proactively Managing Space

59 Segment Resource Estimation

60 Automatic Undo Retention Tuning Proactive tuning –Undo retention is tuned for longest-running query. –Query duration information is collected every 30 seconds. Reactive tuning –Undo retention is gradually lowered under space pressure. –Oldest unexpired extents are used first. Enabled by default

61 D E M O N S T R A T I O N Using Automatic Undo Retention Tuning

62 Undo Advisor

63 Redo Logfile Size Advisor

64 Solution: Self-Managing Database Application and SQL Management Storage Management System Resource Management Space Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console Backup and Recovery Management

65 Automatic Backup (DBCA Setup)

66 Optimized Incremental Backup Optimizes incremental backups Tracks which blocks have changed since last backup Oracle Database 10g has integrated change tracking. New Change Tracking File is introduced. Changed blocks are tracked as redo is generated. Database backup automatically uses changed block list. List of Changed Blocks Redo Generation Redo Log 1011001010110 0001110100101 1010101110011 Change Tracking File SGA

67 Defining Flash Recovery Area

68 Flash Recovery Area Space Management Disk limit is reached and a new file needs to be written into the Recovery Area. 1 2 Backup files to be deleted Database file backup 1 2 3 4 Warning is issued to user. Recovery Area Space pressure occurs. RMAN updates list of files that may be deleted. Oracle deletes files that are no longer required on disk.

69 Suggested Strategy

70 Flashback Error Correction Flashback Database –Restore database to time –Uses flashback logs Flashback Drop –Restore dropped table –Uses recycle bin Flashback Table –Restore all rows in table to time –Uses UNDO in database Flashback Transaction Query –Query a committed Txn Flashback Versions Query –Query changes to rows over time Order Order Line Database Customer

71 Solution: Self-Managing Database Application and SQL Management Backup and Recovery Management System Resource Management Space Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console Storage Management

72 What Is Automatic Storage Management Database Tablespace Segment Extent ASM manages Oracle files. ASM solves management problems of Oracle databases. ASM does not replace existing concepts.

73 Hierarchy Tablespace Segment Extent Oracle block Data file Physical block ASM disk group ASM disk ASM file Allocation unit File system file or raw device Database Or

74 ASM Benefits Reduces administration complexity Reduces the cost of managing storage Supports RAC Improves performance, scalability, and reliability

75 ASM General Architecture ASM Instance SID=ant ASM Instance SID=bee ASM Disks ASM Diskgroup TomASM Diskgroup DickASM Diskgroup Harry DB Instance SID= sales DB Instance SID= sales OSMB FG Node2 Node1 Group Services tom=ant dick=ant Group Services harry=bee DBW 0 OSMB RBAL ORB 0 ORB n … ORB 0 ORB n … OSMB RBAL DB Instance SID=test DB Instance SID=test

76 ASM Files Database file ASM file automatically spread inside disk group dgroupA CREATE TABLESPACE sample DATAFILE '+dgroupA'; 1 2 3 4 12 3 4 Automatic ASM file creation

77 SQL Statements Issued to ASM Instances ASM Instance CREATE DISKGROUP ALTER DISKGROUPDROP DISKGROUP ALTER SYSTEM RESTRICTED SESSION

78 Enterprise Manager and ASM

79 D E M O N S T R A T I O N Using Automatic Storage Management

80 How Oracle Database 10 g DBAs Spend Their Time Load Data 3% Maintain Software 3% Install 3% Create and Configure 6% Manage Database System 25% Proactive and Strategic Planning 50+%

81 Summary Oracle Database 10 g ’s self-management capabilities work out-of-the-box. Customization of Oracle Database 10 g ’s self-management capabilities can be done through Enterprise Manager. Oracle Database 10 g is a self-managing database which reduces administration overhead and enables DBAs to become proactive strategists.

82 A Q & Q U E S T I O N S A N S W E R S

83 Reminder – please complete the OracleWorld online session survey Thank you.


Download ppt "Steven George Sr. Delivery Manager Mark Fuller Sr. Pr. Instructor Rick Pandya Pr. Instructor JF Verrier Pr. Curriculum Developer Oracle Corporation."

Similar presentations


Ads by Google