Académique Documents
Professionnel Documents
Culture Documents
Oracle9i
y No external space
Application & SQL fragmentations
Management
– Locally Managed
Storage System Resource
Tablespace
Management Management y No space allocation
contention
Space – Automatic Segment
Backup & Recovery
Management Database Management Space Management
Management
y No Rollback Segments
Intelligent Infrastructure
– Automatic Undo
Management
Oracle Database 10g –
Self-Managing Database
Database Space
Database Backup & Recovery
Management Management
Management
Control
Intelligent
Infrastructure
10g: Always working for you
y Collects continuously
y Records periodically to disk
y Learns from historical data
y Adapts to changing workload
y Alerts DBA when problems occur
y Advises proactively on problems
Growth
80
70
60
50
Planning
40
30
Trending
20
10
0
1st Qtr 2nd Qtr 3rd Qtr 4th Qtr
Segment
Actions Advisor
Tablespace
Shrink Alerts
Add file
Re-org/ rebuild
Resumable
Object Size Estimation
Tablespace Alerts
y Database Generated
y Warning, Critical
y Out of the box
Add files
Add Files
Resolve Space
Problem
Free up space
Freeing up space
Alert Computation
ory Check every 10 mns
em ion
- M lat Alert 97% Critical Cleared
n
I lcu
Ca
Alert 85% Warning Cleared
MMON
Instance1 Instance2
File1 100MB 60MB … SCNt1 File1 100MB 60MB … SCNt1
File2 50MB 10MB … SCNt2 File2 50MB 10MB … SCNt2
… …
Filen Filen
File Size
Allocated Space
Data
Change SCN
aggregated
through GV$
MMON MMON
Tablespace
Tablespace Size:
150M Allocated: 70M File1 File2
Setting Thresholds Using EM
Unused Unused
Data
Space Space
HWM
HWM
Benefits
Shrunk
Segment
Tables LOBs
Row
Movement
IOTs
Enabled
Materialized Indexes
Views
Dependency Maintenance
Indexes are maintained
Index
Table Shrink
Shrink
DBA
Trigger
HWM
HWM
HWM
EM Interface
Space Management : Before and Now
Scenario: Reclaim Wasted Space
Before Oracle10G
1. Launch Segment Advisor to
y Check to see which objects in the tablespace have pockets advise on which object(s) to
of wasted space due to deletion: shrink
1. Create a script that looks at DBA_TABLES view to 2. Accept the recommendations
compare the total space allocated for each object to shrink the objects online
(BLOCKS * DB_BLOCK_SIZE) in a tablespace to the and in-place
estimated space used by the object (AVG_ROW_LEN
* NUM_ROWS)
(assumes objects have been analyzed)
2. Review script output and identify target objects for
reorganization
3. Identify/Create “scratch” tablespace
4. For each object to be reorganized, use the Enterprise
Manager Reorg wizard to recreate each object along with its
dependencies
Proactive
Undo
Management
Oracle Database 10g
y A self-learning system
– Create Undo tablespace with autoextensible files
– Done!
0
Time
Small RBS/ Large RBS/
UR = 15 min UR = 5 hrs
Proactive Monitoring: Alerts
y Out of Undo Space Alert
y Long query warning Alert
Session # 40170
Thank you.
QUESTIONS
ANSWERS