oracle database performance best practices · 2015-01-21 · 1 agenda • deliver, manage and...

60
Copyright © 2006 Quest Software Oracle Database Performance Best Practices Quest Software Korea 2006.11.15

Upload: others

Post on 11-Mar-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

Copyright © 2006 Quest Software

Oracle Database Performance Best Practices

Quest Software Korea2006.11.15

Page 2: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

1

Agenda

• Deliver, Manage and Control Optimal Database Performance– Database Developer Best Practices– Database Administrator Best Practices

• Performance Testing Oracle Real Application Clusters• Compliance and Internal Control of Oracle environments

Page 3: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

2

Deliver, Manage and Control Optimal Database Performance

Page 4: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

3

Developer

변경과 Database

Page 5: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

4

변경과 Database

Developer

Page 6: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

5

EndUsers

Developer

변경과 Database

Page 7: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

6

Developer

성능문제에 의한 응답속도

EndUsers

Page 8: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

7

성능문제에 의한 응답속도

Developer

EndUsers

Page 9: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

8

Developer

성능 문제의 예방과 예측

Page 10: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

9

Key Highlights

Page 11: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

10

Database Developer Best Practices

Page 12: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

11

Cost

Design

TimeDevelopment QA Market

• In 2002, National Annual cost of inadequate software testing was $59.5 Billion• Developers spend 40% of their time fixing software defects• Between 60% and 70% of the cost of software is attributable to maintenance

악성 코드 수정 비용

Page 13: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

12

Step 1: Develop

• 기능성을 고려한 database application code 작성

• 코드에 존재하는 버그 식별

• 정확한 정보 리턴을 확인

10%

65%

25%

Debugging

CodingReading

Source: GARTNER GROUP

Developer Resource Distribution

기능성 코드 배포

Page 14: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

13

Step 2: Optimize

• 최상의 수행 확인

• 소스 코드로 부터 예상되는 SQL 문제 식별

• 자동적으로 모든 대안 SQL 작성

Source: Forrester Research

90%

60%SQL Statements

IndexesDB Changes

NetworkHW

Root of Database Performance Impact

최적화코드배포

Page 15: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

14

Step 3: Validate

• 사용자 수에 다른 성능 변화 비교

• 배포 되기 전 운영 시스템에서 요구되는 성능 확인

• SQL 표준에 코드 생성으로 유지 보수의 용이성

• 관리 리포트 작성으로 용이한 검증

최적화코드배포

Page 16: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

15

Deliver Optimal CodeQuest Core Technologies

1. Develop

2. Optimize3. Validate

Toad

Quest SQL Optimizer [Toad Xpert]Benchmark Factory

Page 17: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

16

Deliver Optimal Code

Page 18: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

17

Database Administrator Best Practices

Page 19: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

18

Manage Database Performance Proactively

Step 1: 데이터베이스 성능 한계 도출

• 운영 데이테베이스의 부하를 다른 환경에서 재현

• 사용자의 어떠한 부하가 성능 변화를 일으키는지 판별

• 실 환경에서 영향을 미칠 수 있는 변경 요인 예상

• 데이터베이스 성능 베이스 라인 생성

Page 20: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

19

Manage Database Performance Proactively

Step 2: 성능 이슈 사항 진단

• 테스트 환경에서의 부하테스트 중 병목현상 예측

• 발상되는 병목 현상의 유형 확인

• 성능 분석과 근본원인 도출

Page 21: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

20

Manage Database Performance Proactively

Step 3: 성능 이슈 해결

• 데이테베이스 환경 조정

• 스페이스 부족 조건 식별

• 디스크 이용율 최대화

• 인텍스 튜닝

• SQL code 최적화

Page 22: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

21

Manage Database Performance Proactively

Step 4: 성능 검증

• SQL Code

• 사용자 수에 다른 성능 변화 비교

• 배포 되기 전 운영 시스템에서 요구되는 성능 확인

• Database Changes

• 데이터베이스 튜닝 후 부하재현을 통한 성능 재검증

• 이전의 성능 베이스라인과 비교

Page 23: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

22

Manage Database Performance Proactively Quest Core Technologies

2. Diagnose

3. Resolve

1. Discover Limits

Quest SQL Optimizer, Space Manager,Toad DBA

Benchmark FactoryCapacity Manager

Spotlight, Performance Analysis

4. ValidateBenchmark Factory

Page 24: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

23

Efficiently Administer Databases

2. Compliance1. Day-to-Day ManagementToad w/ DBA ModuleSpace Manager

InTrust for Databases

3. Backup and RecoveryLiteSpeed

Page 25: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

24

Manage Database Performance Proactively

Page 26: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

25

Performance Testing Oracle Real Application Clusters

Page 27: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

26

Oracle RAC – Advantages

• Availability, availability, availability• 부하증가와성장에따른확장성

• 부하분산과 Resource 최적화• 데이터베이스환경의통합

Page 28: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

27

Oracle RAC – Challenges

• cluster size 결정• 성능테스트방법의정의

• Implemet와maintain 방법에적합한툴의사용• RAC의전문적지식에따른활용의한계

Page 29: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

28

Quest’s RAC Performance Testing Methodology

1. Record ProductionLevel Activity

3. Monitor and Discover RAC Performance Bottlenecks

2. RAC Stress Testing and Simulations

Performance Analysis ®

Benchmark Factory®

for Databases

Spotlight® on RAC

10g RAC

Page 30: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

29

Benchmark Factory® - RAC environments

Page 31: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

30

Spotlight® on RAC – RAC environments

Page 32: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

31

Performance Analysis® - RAC environments

Page 33: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

32

Compliance and Internal Control of Oracle environments

Page 34: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

33

DIMENSIONS

Compliance Dimensions – the biggies

AUDIT AUDIT –– how muchhow much

DOMAIN DOMAIN –– how broadhow broad

CONTROL CONTROL –– how deephow deep

Page 35: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

34

Dimensions – what are controls?

• Access• Protection• Transport• Recovery

FOCUS OF CONTROLFOCUS OF CONTROL

• Guideline• Procedure• Standard

CONTENTCONTENT

• Change• Incident• Audit• Continuity

• Ownership• Metrics• Coverage

CRITERIACRITERIA

• Structure• Policy• Budget• Skills

processprocessprocessgovernancegovernancegovernance serviceserviceservice

• System• Security• Schema• Support

objectobjectobject

• Preventive• Detective• Corrective

STAGESTAGE

Page 36: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

35

Dimensions – what is the domain?

• Files & folders• Services

• Files & folders• Services

• Certification• Patch level• Ownership

• Certification• Patch level• Ownership

• Instance• Listener• Session• Storage• Security• Data• Code• Transport

• Instance• Listener• Session• Storage• Security• Data• Code• Transport

• Authentication• Authorization• Global & Local

• Authentication• Authorization• Global & Local

DATABASEDATABASE IDENTITYIDENTITY SOFTWARESOFTWARE

NETWORKNETWORK OSOS

• Protocols• Encryption

• Protocols• Encryption

Page 37: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

36

probe

mine

read

scrape

sniff

collectcollect

Dimensions – what is auditing?

planplan

rulesengine

policy

archive

analyzeanalyze

contextforensicsannotate

resolveresolve

incident

respondrespond

notify

workflow

monitor

report

executeexecute

Page 38: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

37

Products - manageability

APPLICATIONAPPLICATION DATABASEDATABASE INFRASTR.INFRASTR.

PLANPLAN

EXECUTEEXECUTE

AUDITAUDIT PLATFORMSPLATFORMS

Page 39: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

38

Internal Controls

Internal controls은조직내에서의위험요소를완화시킬수있도록하는방법– 예방 관리:위험요인을예방하고제거

– 탐지 관리:위험요인이발생한경우이를탐지 / 보고– 조정 관리 :발생한위험요인의적합성의조정

Page 40: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

39

How Quest Helps

Quest products help you control:• Access to systems, applications and data• Change to production applications

and system configurations• Availability of critical

systems and applications• Retention of important business

communications and data

Page 41: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

40

Application Change Management Stat® for Oracle E-Business and PeopleSoft

• 감사및보고• 이슈추적, workflow, scheduling• Source 코드관리및버전관리• Patch 관리• 어플리케이션영향도

Page 42: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

41

Application Change Management Stat® for Oracle E-Business and PeopleSoft

Visibility•Auditing•Reporting

Control•Change Request Tracking

•Impact Analysis•Workflow

•Version Control•Documentation

•Patch Management

•Deployment Mgt

Dev Test QA Staging Prod

Etc

Functional forces

ImplementationEnhancement

FixesPatches

Upgrades

Automation

App Owner

Dev & Dev Mgr

App userApp DBAOps Mgt

Help deskQA

Stat – Application Change ManagementIndustry

forcesCompliance Regulations& Standards

SOXOMB A-123

ITILCMM

Sta

t –

Ap

pli

cati

on

Ch

an

ge M

an

ag

em

en

t

Page 43: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

42

Database Audit Management Intrust for Database • 침입탐지• Workflow 정의• 오브젝트감사• SQL 적합성• 세션감사• Security Reporting

Page 44: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

43

Database Audit Management Intrust for Database

Page 45: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

44

About Quest Software

Page 46: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

45

Business Domain

Application Performance Management

DatabaseManagement

WindowsManagement

APM (애플리케이션 성능 관리 솔루션)

• 애플리케이션 전반에 대한 뷰 제공

• 성능 저하에 대한 사전 인지 및 방지

• 성능 복구

• 서비스 레벨 규정

데이타베이스 성능 관리 솔루션

• 데이타베이스 설계, 개발 및 테스트 자동화

• 성능 및 가용성 문제에 대한 능동적인 탐지

• 광범위한 튜닝 및 데이타베이스 분석을 통한 문제 해결

마이크로소프트 인프라 성능 관리 솔루션

• S/W, H/W 구매 및 관리 비용 절감을 위한 인프라 간소화

• 사용자 업무 중단과 피해를 최소화 할 수 있는 자동화된 적용과 관리

• 마이크로소프트 인프라에 대한 악의적인 침해와 사고를 미연에 방지

Page 47: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

46

You Need More than “Out of the Box”

Page 48: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

47

혁신적인 퀘스트소프트웨어

제품은 애플리케이션,

데이터베이스 및 Windows

인프라의 생산성 과 성능 향상을

극대화 할 수 있도록 돕습니다.

Quest Solutions for Enterprise IT

Page 49: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

48

퀘스트소프트웨어는 귀사의

비즈니스 애플리케이션이

최고의 성능을 실현할 수

있도록 도와주며, 급변하는

시대에 효과적으로 대처할 수

있는 유연성을 제공합니다.

Application Management

Page 50: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

49

퀘스트소프트웨어는

데이타베이스 개발 생산성을

향상시키고 효과적인

데이타베이스 관리를 통해

데이타베이스의 성능을

최적화할 수 있도록 도와줍니다.

Database Management

Page 51: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

50

퀘스트소프트웨어는 귀사의 MS

인프라 환경을 자동화,

단순화하여 광범위한 관리,

Migration 그리고

통합 가용성을 보장합니다.

Windows Management

Page 52: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

51

Compliance Management

퀘스트소프트웨어는 귀사의

Compliance를 효율적으로 관리하여,

추가비용 없이 뛰어난 운영성을

확보할 수 있도록 돕습니다.

IT 컨트롤을 위한 4개 핵심 분야

• Access : 주요 시스템 및 데이터

• Change : 애플리케이션 및 시스템

• Availability : 주요 시스템 및 데이터

• Retention : 중요 정보 전달 및 관리

Page 53: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

52

Identity Management

퀘스트소프트웨어의 확장된

Native Active Directory

기능은 간편화되고 향상된

Identity 관리 - 정책,

패스워드 관리 및 감사 기능

등 – 기능으로 Window 및

non-Window 환경을 통합

지원합니다.

Page 54: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

53

Application Management

퀘스트소프트웨어는 기업의

복잡한 애플리케이션 환경을

효율적으로 관리/통제할 수

있도록 도와 줍니다. End

유저에서 데이터베이스에

이르기까지 – 오직 퀘스트

만의 폭넓은 기술과 경험은

기업의 성공적인 비즈니스

환경을 구현해 드립니다.

Page 55: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

54

Strong Industry Partnerships

Page 56: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

55

Customers : Korea (Public, Manufacture)

Page 57: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

56

Customers : Korea (Financial, Others)

Page 58: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

57

Customers (World wide)

Page 59: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

58

Get More Value from your Enterprise IT

생산성 향상

성능 극대화

안정성 강화

높은 유연성

보안성 향상

자동화 실현

More Value

Page 60: Oracle Database Performance Best Practices · 2015-01-21 · 1 Agenda • Deliver, Manage and Control Optimal Database Performance – Database Developer Best Practices – Database

59

Thank You