02 Oracle10g Newfeatures
02 Oracle10g Newfeatures
02 Oracle10g Newfeatures
Oracle 10g
g = grid
Making of...
y
y
y
y
y
y
y
y Server Configuration
y Instance Tuning
Automated Storage
Management
Configuration
Automated RAC Services
Configuration
Simplified Upgrade for
RAC and OPS Databases
Automated Enterprise
Manager Configuration
Automated Portable
Clusterware Installation
Automated Configuration
of Recovery Area
Out-of-the-box LDAP
Configuration
Simplified Initialization
Parameters
Easy Upgrade
Upgrade Information Tool
Simplified Database Install
User Default Tablespace
y Application Tuning
SQLAccess Advisor
User-Initiated Buffer Cache
Flushing
Materialized View Tuning
Database Resource Manager
API
- Adaptive Consumer Group
SQL Tuning Advisor
Mapping
Enhanced SQLAccess
Database Resource Manager
Advisor
- Fixed CPU Quota
Automatic Optimizer
New Performance Overview
Statistics Collection
Charts in Oracle Enterprise
y Backup and Recovery
Manager
Enhanced RMAN Reporting
Improved SQL Reporting
Backup Compression
Using Oracle Enterprise
Bounded Backup Window
Manager
Manage RMAN Scripts
Integration of Resource
Manager and Profiles
Recovery Area Full Alert
Automated Checkpoint
y Storage Management
Tuning
Multiple Default Temporary
Transaction Rollback &
Tablespace Support for
Recovery Monitoring
SQL Operations
Database Performance
Automated Storage
Analyzer
Management
Redo Logfile Sizing Advisor
Rename Tablespace
Automated SGA Memory
Tuning
y Space, Object,
Transaction Mgmt
y Database Utilities
y Scheduler
SQL*Plus - SPOOL
CREATE, REPLACE, and
APPEND Options
SQL*Plus - Show Recycle
Bin
SQL*Plus DBMS_OUTPUT After
SELECT
SQL*Plus - SET
SQLPROMPT Runtime
Variable Substitution
SQL*Plus COMPATIBILITY
Command Line Option
SQL*Plus - Run glogin.sql
and login.sql After Each
CONNECT
iSQL*Plus Input
Prompting
Application
and SQL
Management
Storage
Management
System
Resource
Management
?
Backup and
Recovery
Management
Space
Management
Application
and SQL
Management
Storage
Management
Monitor
Fix
Backup and
Recovery
Management
Alert
Automatic
Management
Common
Manageability
Infrastructure
System
Resource
Management
Advise
Space
Management
Proactive
Automated
Tasks
Server
Alerts
Advisory
Framework
Automatic
Workload
Repository (AWR)
Data Warehouse
of the Database
Automatic collection
of important statistics
Efficient
Direct memory
access
9
ADDM finds
top problems
without SQL
SYSAUX
WR Schema
BG
BG
FG
FG
In-memory
statistics
AWR
ASH
Statistics
7:00 a.m.
7:30 a.m.
8:00 a.m.
8:30 a.m.
Snapshot 1
Snapshot 2
Seven
days
Snapshot 3
Snapshot 4
SGA
8:30am
DBA
10
Statistics Level
STATISTICS_LEVEL
BASIC
TYPICAL
ALL
Turn off
all self-tuning
capabilities
Recommended
default value
Additional
statistics for
manual SQL
diagnostics
11
Once a week
DB Feature Usage
Statistics
MMON
Advanced Replication,
Oracle Streams, AQ,
Virtual Private Database,
Audit options,
AWR
DB High-Water Mark
Statistics
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_STATISTICS
DBA_HIGH_WATER_MARK_STATISTICS
EM Console
EM Repository: ECM
12
Proactive
Automated
Tasks
Server
Alerts
Advisory
Framework
Automatic
Workload
Repository
Efficient
Push model
Enabled by default
Timely generation
13
Server Alerts
Enterprise
Manager
Automatic
Notification
Oracle Server
(SGA)
Guided
Resolution
Server
Alerts
Queue
Server monitors
itself
AWR
MMON
14
97% Critical
Cleared
85% Warning
Cleared
MMON
NonThreshold
Alerts
Snapshot
Too Old
Resumable
Session
Suspended
Recovery Area
Low On
Free Space
Alert
Alert
Alert
Event-Based
15
Out-of-the-box Alerts
97% Critical
85% Warning
Locally
Managed
Tablespace
Tablespace
Space Usage
Resumable
Session
Suspended
Recovery Area
Low On
Free Space
Snapshot
Too Old
16
EM Interface to Alerts
17
18
Proactive
Automated
Tasks
Server
Alerts
Advisory
Framework
Automatic
Workload
Repository
Pre-packaged routine
maintenance tasks
Resource usage
controlled
Efficient
Statistics collection
task scheduled
out-of-the-box
19
Targets
right objects
Resolves
two issues
Automatic statistics
collection
Determines
right samples
20
WEEKNIGHT_WINDOW
WEEKEND_WINDOW
gather_stats_job
AUTO_TASKS_JOB_CLASS
New PL/SQL-Package:
DBMS_SCHEDULER
AUTO_TASKS_CONSUMER_GROUP
21
Automated
Tasks
Server
Alerts
Proactive
Advisory
Framework
Automatic
Workload
Repository
Uniform interface
Efficient
Fully integrated
22
Advisory Framework:
Automatic Database Diagnostic Monitor
SQL Tuning
PGA
Memory
SGA
ADDM
Access
Space
Buffer Cache
Shared Pool
Segment Advisor
Undo
Common
data source
AWR
Seamless
integration
23
Performance Diagnostics
ADDM
24
Perform analysis
No
Accept
results?
Yes
Implement
recommendations
25
Advisor Central
26
Application
and SQL
Management
Storage
Management
Monitor
Fix
Backup and
Recovery
Management
Alert
Automatic
Management
System
Resource
Management
Advise
Space
Management
Common
Infrastructure
27
MMON
Alerts
DBA
Reactive
Monitoring
Snapshots
ADDM
Proactive
Monitoring within
Oracle Server
ADDM
Results
AWR
28
30 minutes
MMON
Snapshots
ADDM
EM
ADDM
Results
AWR
ADDM
Results
29
30
ADDM Recommendations
31
Memory Bottlenecks
Oracle
CPU/Waits
Uses ASH and AWR
SQL
Sessions
32
D E M O N S T R A T I O N
AWR-Snapshots
(swrfrpt.sql)
Application
and SQL
Management
Storage
Management
Monitor
Fix
Backup and
Recovery
Management
Alert
Automatic
Management
System
Resource
Management
Advise
Space
Management
Common
Infrastructure
34
SQL Workload
DBA
ADDM
High-load
SQL
SQL Tuning
Advisor
35
Comprehensive
SQL Tuning
Statistics Check
Optimization
Mode
Detect
Stale or Missing
Statistics
Plan Tuning
Optimization
Mode
Plan Tuning
(SQL Profile)
Access Analysis
Optimization
Mode
Add Missing
Index Run
Access Advisor
SQL Analysis
Optimization
Mode
SQL Tuning
Advisor
Restructure
SQL
36
Optimizer
(Tuning Mode)
create
slow
SQL Tuning
Advisor
SQL
Profile
use
No application
code
change
Optimizer
(Normal Mode)
Database
Users
output
fast
Well-Tuned
Plan
37
ADDM
High-load SQL
SQL
Tuning
Advisor
Sources
AWR
Cursor Cache
Custom
Manual
Selection
Filter/Rank
DBA
38
Application
and SQL
Management
Storage
Management
Monitor
Fix
Backup and
Recovery
Management
Alert
Automatic
Management
System
Resource
Management
Advise
Space
Management
Common
Infrastructure
39
Online
Users
Buffer Cache
SGA Pool
Large
Batch
Jobs
Buffer Cache
Large Pool
Large Pool
SQL Cache
SQL Cache
Java Pool
Java Pool
sort
PGA Pool
Selftuning PGA
PGA_AGGREGATE_TARGET
sort
PGA Pool
40
Online
Users
Buffer Cache
SGA Pool
Large
Batch
Jobs
Buffer Cache
SGA_TARGET
Large Pool
Large Pool
Selftuning PGA
SQL Cache
SQL Cache
Java Pool
Java Pool
sort
PGA Pool
Selftuning SGA
PGA_AGGREGATE_TARGET
sort
PGA Pool
41
Enable
Automatic Shared Memory Management
SGA_TARGET
42
43
Application
and SQL
Management
Storage
Management
Monitor
Fix
Backup and
Recovery
Management
Alert
Automatic
Management
System
Resource
Management
Advise
Space
Management
Common
Infrastructure
44
Data
Unused
Space
HWM
Shrink
Operation
Reclaimed Space
Data
HWM
46
PAUSE
47
Application
and SQL
Management
Storage
Management
Monitor
Fix
Backup and
Recovery
Management
Alert
Automatic
Management
System
Resource
Management
Advise
Space
Management
Common
Infrastructure
48
Tablespace
ASM solves
management problems
of Oracle databases.
ASM manages
Oracle files.
Segment
Extent
Hierarchy
Database Instance
ASM Instance
Database
ASM
disk group
Tablespace
Data file
Segment
Extent
Oracle
block
Or
ASM file
ASM disk
File system
file or
raw device
Allocation unit
Physical
block
50
ASM Instance
Lightweight instance
- Few processes
- No database to mount, metadata tripled mirrored in ASM
diskgroup
Initialization Parameters
INSTANCE_TYPE = OSM
LOCK_NAME_SPACE = +OSM1
OSM_POWER_LIMIT = 11
OSM_DISKSTRING = '/dev/rdsk/*s2', '/dev/rdsk/c1*'
OSM_DISKGROUPS = dgroupA, dgroupB
LARGE_POOL_SIZE = 8MB
51
ASM Files
CREATE TABLESPACE sample DATAFILE '+dgroupA';
Database file
Automatic
ASM file
creation
1
2
3
4
ALTER SYSTEM
RESTRICTED SESSION
ASM Instance
ALTER DISKGROUP
DROP DISKGROUP
53
TODAY
Tables
Tables
Tablespace
Files
Tablespace
Files
File System
File System
Logical Vols
Logical Vols
Disks
Disk Group
The
ASM
54
Controller 1
Controller 2
Disk Group 1
55
56
57
Traditional vs ASM
Remove Disk
1. List all data that is on
disk
2. Choose existing
filesystem to hold data
from dropped disk
3. Move data to new files
4. Rename files in
database
5. Remove disk from OS
6. Re-tune I/O
1.
2.
58
59
Traditional vs ASM
Tune I/O
1.
2.
3.
4.
5.
6.
60
61
ASM Summary
y
y
y
y
y
y
y
y
NO Volume-Manager
NO replacement for a filesystem
NO combination of VM and FS
Management component that manages storage and Tablespaces
of an Oracle system
Eliminates physical layout issues
Eliminates I/O tuning issues
Eliminates down-time issues to add/delete storage
No additional storage management tool is required to manage an
Oracle system
62
63
Application
and SQL
Management
Storage
Management
Monitor
Fix
Backup and
Recovery
Management
Alert
Automatic
Management
System
Resource
Management
Advise
Space
Management
Common
Infrastructure
64
65
66
Database file
backup
1
2
3
4
Recovery
Area
RMAN updates
1
list of files that
2
may be deleted. Backup files
to be deleted
Disk limit is
reached and a
new file needs
to be written
into the
Recovery Area.
Oracle deletes
files that are no
longer required
on disk.
Space pressure
occurs.
Warning is issued
to user.
67
Suggested Strategy
68
69
y
y
y
y
y
y
70
71
71
72
Regular expressions
- IEEE Posix standard
- Unicode Regular Expression Guidelines
of the Unicode Consortium
sql> SELECT first_name, last_name FROM employees WHERE
REGEXP_LIKE (first_name, '^Ste(v|ph)en$');
FIRST_NAME LAST_NAME
-------------------- ------------------------Steven
King
Steven
Markle
Stephen
Stiles
73
D E M O N S T R A T I O N
y
y
y
y
75
Solaris (SPARC)
High Speed
File Convert
RMAN
AIX (PowerPC)
HP-UX (PA-RISC)
77
Customer
Order
Order Line
Customer
Order
Order Line
y Calculation of Fibonacci-Numbers
Environment
9i R2 interpreted
Time (s)
11.5
9i R2 native compiled
5.2
10g R1 interpreted
3.4
1.2
80
D E M O N S T R A T I O N
Fibonacci
Upgrading to 10g
82
Installation
y DELL Latitude C640:
Pentium 4
2 GHz
1GB RAM
y Installation von Festplatte
y Binaries 10 min
y Starter-Datenbank 7 min
y Lauffhiges System in 17 min!
83
Oracle 9i
Oracle 8.1.7
Oracle 8.0.6
Oracle 7.3.4
Oracle 8.1.6
Oracle 8.0.5
Oracle 7.3
Oracle 8.0.4
Oracle 7.2
Oracle 8.0.3
Oracle 8.1.5
Oracle ...
84
Customizable
Restartable
Silent mode for single command upgrade
Calls Post Upgrade Status Utility
85
Summary
y Oracle Database 10 gs self-management
capabilities work out-of-the-box.
y Customization of Oracle Database 10 gs selfmanagement capabilities can be done through
Enterprise Manager.
y Oracle Database 10 g is a self-managing database
which reduces administration overhead and
enables DBAs to become proactive strategists.
86
Summary
y Oracle Database 10 gs self-management
capabilities work out-of-the-box.
y Customization of Oracle Database 10 gs selfmanagement capabilities can be done through
Enterprise Manager.
y Oracle Database 10 g is a self-managing database
which reduces administration overhead and
enables DBAs to become proactive strategists.
mailto:[email protected]
87
Q U E S T
A N S W
I O N S
E R S