Upload
niall-litchfield
View
596
Download
0
Tags:
Embed Size (px)
Citation preview
Running Oracle Effectively
On Windows
1993
Oracle 7.0
1995
2900
3500
Database Revenues on Windows 2007 ($000s)
Oracle SQLServer
You are not alone
Managing Resources
CPU
Memory
Storage
v$process
X$KSUPR
CODE , HANDLES, LIBRARIES,SECURITY, ENVIR
ONMENT,MEMORY
Stack
Data
Stack
Data
Stack
Data
Thread vs Process structures
www.sysinternals.com
procexp
vmmap
procdump
Drilling into a Problem from the O/S
Downsides
Threads vs Processes
createThread syscall
Allocates 1mb stack space.
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
10 50 100 500 1000
Memory Starvation on 32bit Windows
Available SGA + PGA
Java Pool
Shared Pool
Process Stack
Potential Workarounds
/userva
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
10 50 100 500 1000
Memory Starvation With userva=3030
Available SGA + PGA
Java Pool
Shared Pool
Process Stack
Processes
/PAE
USE_INDIRECT_DATA_BUFFERS
BUFFER CACHE only
orastack
createThread(...,stacksize)
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
10 50 100 500 1000
Memory Starvation on 32bit Windows w orastack
Available SGA + PGA
Java Pool
Shared Pool
Process Stack
Produces non standard .exe
Unpredictable failure mode
ORA-03113
Note 46001.1
64bit Windows
But What About
Device Driver
Maturity
OK Then
• Mixed 32/64bit not allowed
– No 32bit MDAC
– No 32bit AV
OK Then
• The 64-bit shell cannot load 32-bit Inproc shell extensions
OK Then
• I.E cannot use 32bit activeX !
NTFS
Never The Same
sectors
clusters
Cluster size
db_block_size
FILESYSTEMIO_OPTIONS
Data Compression
SGA
O/S Buffer
Compressed Clusters
Uncompressed O/S Buffer
Summary
• Use 64bit Windows
• Concurrency primarily limited by thread architecture
• You are not alone.
• I/O Far less trouble than Unix.
• Think about filesystem cluster size.
Public Domain or royalty free images Thanks to:
• Wikipedia
• Alethea Kontis
• Mrbill
• Office of the President of the United States
• Jeff Kubina
• Mark.Sze
• Freefoto.com
Credits• www.sysinternals.com
• supporthtml.oracle.com
• Windows Internals 5th Edition