73
Running Oracle Effectively

Oracle on windows

Embed Size (px)

Citation preview

Page 1: Oracle on windows

Running Oracle Effectively

Page 2: Oracle on windows
Page 3: Oracle on windows

On Windows

Page 4: Oracle on windows
Page 5: Oracle on windows
Page 6: Oracle on windows
Page 7: Oracle on windows

1993

Page 8: Oracle on windows
Page 9: Oracle on windows
Page 10: Oracle on windows
Page 11: Oracle on windows
Page 12: Oracle on windows

Oracle 7.0

Page 13: Oracle on windows

1995

Page 14: Oracle on windows
Page 15: Oracle on windows
Page 16: Oracle on windows

2900

3500

Database Revenues on Windows 2007 ($000s)

Oracle SQLServer

Page 17: Oracle on windows

You are not alone

Page 18: Oracle on windows

Managing Resources

Page 19: Oracle on windows

CPU

Memory

Storage

Page 20: Oracle on windows
Page 21: Oracle on windows

v$process

X$KSUPR

Page 22: Oracle on windows

CODE , HANDLES, LIBRARIES,SECURITY, ENVIR

ONMENT,MEMORY

Stack

Data

Stack

Data

Stack

Data

Page 23: Oracle on windows
Page 24: Oracle on windows

Thread vs Process structures

Page 25: Oracle on windows
Page 26: Oracle on windows
Page 27: Oracle on windows
Page 28: Oracle on windows

www.sysinternals.com

procexp

vmmap

procdump

Page 29: Oracle on windows

Drilling into a Problem from the O/S

Page 30: Oracle on windows

Downsides

Page 31: Oracle on windows
Page 32: Oracle on windows

Threads vs Processes

Page 33: Oracle on windows

createThread syscall

Allocates 1mb stack space.

Page 34: Oracle on windows

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

Page 35: Oracle on windows

Potential Workarounds

Page 36: Oracle on windows

/userva

Page 37: Oracle on windows

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

Page 38: Oracle on windows

/PAE

Page 39: Oracle on windows
Page 40: Oracle on windows
Page 41: Oracle on windows

USE_INDIRECT_DATA_BUFFERS

Page 42: Oracle on windows

BUFFER CACHE only

Page 43: Oracle on windows

orastack

Page 44: Oracle on windows

createThread(...,stacksize)

Page 45: Oracle on windows

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

Page 46: Oracle on windows

Produces non standard .exe

Page 47: Oracle on windows

Unpredictable failure mode

Page 48: Oracle on windows

ORA-03113

Page 49: Oracle on windows

Note 46001.1

Page 50: Oracle on windows

64bit Windows

Page 51: Oracle on windows
Page 52: Oracle on windows

But What About

Page 53: Oracle on windows

Device Driver

Page 54: Oracle on windows

Maturity

Page 55: Oracle on windows

OK Then

• Mixed 32/64bit not allowed

– No 32bit MDAC

– No 32bit AV

Page 56: Oracle on windows

OK Then

• The 64-bit shell cannot load 32-bit Inproc shell extensions

Page 57: Oracle on windows

OK Then

• I.E cannot use 32bit activeX !

Page 58: Oracle on windows
Page 59: Oracle on windows

NTFS

Page 60: Oracle on windows

Never The Same

Page 61: Oracle on windows

sectors

Page 62: Oracle on windows

clusters

Page 63: Oracle on windows

Cluster size

Page 64: Oracle on windows

db_block_size

Page 65: Oracle on windows
Page 66: Oracle on windows
Page 67: Oracle on windows

FILESYSTEMIO_OPTIONS

Page 68: Oracle on windows

Data Compression

Page 69: Oracle on windows
Page 70: Oracle on windows

SGA

O/S Buffer

Compressed Clusters

Uncompressed O/S Buffer

Page 71: Oracle on windows

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.

Page 72: Oracle on windows

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

Page 73: Oracle on windows

Thank You

[email protected]

@nlitchfield

http://www.orawin.info/