oracle 10g platform in windows platform - dbguide.net suite exchanges ... (user, session,...
TRANSCRIPT
윈도우 환경에서의 오라클 10g구축 세미나
Oracle 10g Platform inWindows Platform
Agenda
Objectives
Windows환경의 오라클 10g 플랫폼
오라클 10g 구축 비용
오라클 10g 성능의 우수성
오라클 10g 의 고가용성
오라클 10g DB의 .NET 지원
오라클 10g DB와 Application Server 관리 용이성
Objectives
• 가격 경쟁력, 사용 편리성, 고가용성 소개• Oracle 10g Application Server의 기능 및 고가용성 소개• Oracle 10g 플랫폼의 관리 용이성 소개• .NET환경에서의 Oracle 10g 의 뛰어난 성능 기술소개
윈도우 기반의 오라클 솔루션 도입. Why not?
Windows환경의오라클 10g 플랫폼
윈도우 환경에서 오라클 DB의 기능상 강점윈도우 환경에서 오라클 Application Server의 기능상 강점
오라클 그리드 컴퓨팅
DatabaseGrid
StorageGrid
Enterprise ManagerGrid Control
Application ServerGrid
Windows 환경
Windows 환경
윈도우환경에서 Oracle DB의 기능상 강점
Real Application Clusters환경을 통한 고가용성 제공
ODP .NET을 통한 .NET Framework환경의 개발환경제공
자가관리 데이타베이스를 통한 효율적 관리
자동 스토리지 관리(ASM) 기능 제공
빠른 Fail-Over 시간의 개선
자동화된 신속한 복구 기능
Real Application Clusters
DatabaseDatabase
Server 2Instance ‘B’
Server 1Instance ‘A’
SERVER failure - your database remains available
Oracle: Best Database for .NET
Oracle DB leads the way in advanced functionality all exposed in ODP .NET
– Oracle leads the way in advanced DB features
RAC, XML DB, grid, advanced security etc.
Oracle has a high-performing ADO.NET provider that exposes advanced DB features
– Oracle Data Provider for .NET (ODP.NET)
ODP.NET allows full access to .NET– No limits on using .NET functionality with Oracle
자가관리 데이타베이스 기능
EM SQL*Plus …STATISTICS_LEVEL = TYPICAL or ALL
외부 클라이언트
메모리 (SGA)Fixedview
Dictionaryview
실시간
통계 정보통계 정보
히스토리MMON
Workload Repository
내부 클라이언트 ADDM …자가관리모듈
자동화된 스토리지 관리 (ASM)
Automatic StorageManagement
기종에 독립적인 고 성능 클러스터
파일시스템
데이타는 부하를 분산시키기 위하여
여러 디스크에 거쳐서 분산(Striping)
여러 디스크에 걸쳐서 통합 미러링
3’rd Party 볼륨매니저나 파일시스템
등의 필요성 제거
페일오버(Failover) 시간의 개선
• Oracle RAC 10g의 Failure Notification 기능( with Oracle Application Server 10g)
minutesminutes
secondsseconds
minutesminutes
secondssecondsOracle9i
Oracle 10g Oracle9i
Oracle 10g
Database App. Server Total Failover Detection Recovery Time
Database App. Server Total Failover Detection Recovery Time
secondsseconds
< minute< minute
자동화된 신속한 복구 기능
모든 수준의 복구 가능
고객원장
주문내역
테이블 수준
Flashback Table 을 통하여 원하는 시점으로해당 테이블들의 로우들을 복구( UNDO 활용)
Flashback Table ~ Drop 을 통하여 Drop된 테이블 및 인덱스를 복구할 수 있다. - 휴지통 (Recycle bin) 기능
데이타베이스데이타베이스
로우 수준
Flashback Query를 통하여 원하는 시점으로Row 를 복구
데이타베이스 수준
Flashback Database 를 통하여 원하는시점으로 모든 데이타베이스를 복구
-Flashback Log 사용
윈도우환경에서 Oracle Application Server의기능상 강점
Enterprise Application Server 제공
웹 사이트 및 애플리케이션의 포털로의 통합기능 제공
웹 사이트, 애플리케이션, 포털의 무선화 기능 제공
비즈니스의 통합 제공
모든 플랫폼으로 이식 가능
확장성 및 신뢰성 환경 제공
ORACLE 10g iAS IS AN ENTERPRISE APP SERVER
Oracle Application Server 10g
BusinessIntelligence
Mobile &Wireless
Enterprise Portal
Web Services
B2B
Applications
Any Data Source
Enterprise Application ServerEnterprise Application Server
Oracle Application Server 10Oracle Application Server 10gg
Application Dev. FrameworkApplication Dev. Framework
IntegrationIntegrationBrokerBroker
Grid Computing InfrastructureGrid Computing Infrastructure
PortalPortal
SSEECCUURRIITTYY&&
ID Mgmt.ID Mgmt.
SSYYSSTTEEMMSS
Mgmt.Mgmt.
Bus.Bus.IntelligenceIntelligence
Collaborative ApplicationsOracle Collaboration Suite
Business ApplicationsOracle eBusiness Suite
Oracle Oracle JDeveloperJDeveloper 1010gg
Oracle Application Server 10g
가장 생산적인 개발 환경– Common Infrastructure and Technology Stack– 완벽한 J2EE 및 웹 서비스– 가벼운 J2EE 엔진
가장 안정적인 운영 환경– 매우 빠른 성능과 캐싱– 고가용성 및 클러스터링– 완벽한 관리 및 보안
100% 표준 준수– J2EE 1.3, Web Services (SOAP 1.2, WSDL 1.0, UDDI
2.0), ebXML, RosettaNet 2.0, LDAP v3, SSL v3, XML ...
낮은 TCO
가장 생산적인 개발 환경
PortalsPortals
Web Web ServicesServices
WirelessWireless
EnterpriseEnterpriseIntegrationIntegration
J2EE J2EE ApplicationsApplications
Business Business IntelligenceIntelligence
J2EE 와 웹 애플리케이션
Servlet / JSP
Perl / PHP
PL/SQL
Forms
EJB / BC4J
C/C++
XML / XSL
Web
Cac
heN
etsc
ape
IISO
HS
Apa
che
Any Data Source
Packaged AppsBrowser
Wireless &Mobile
– Java, XML, Perl, PHP, PL/SQL, C/C++, Forms로 개발
– Developer Suite내의 통합된 개발 툴 들을 이용해 빠른 개발
– Java, XML & SQL을 위한 단일의 통합된 플랫폼
웹 서비스의 개발, 배치, 관리
Messaging Naming /Directory Security Pooling
JMS
Any Data Source
Packaged Apps
Stateless Java Class
StatelessSession EJB
StatefulJava Class
PL/SQLStored Proc.
JCA
JDBC
Apa
che SOAP Handler Servlet
SOAP Handler Servlet
SOAP Handler Servlet
Transactions
HTTPMessage DrivenEJB
BrowserSOAP
HTTP/S
Wireless &Mobile
Business-to-Business
HTML / XML StreamsUDDI
Registries
– 표준 준수 –단순 혹은 복잡한 웹 서비스의 지원
– 기존 J2EE 및 PL/SQL 애플리케이션을 웹 서비스로 서비스
– JDeveloper를 이용한 웹 서비스 개발 및 배치
– OEM을 통한 웹 서비스 관리
비즈니스의 통합
E-BusinessSuite
Exchanges
Custom Apps
Business Process Management
TransformationApplicationAdapters
Intelligent Routing
Logging Validation Security MonitoringTransactionManagement
Business Activity Monitoring
3rd Party Apps Any Data Source
MessagingSystems– 통합된 비즈니스 프로세스를 이용하여 효율성 증대
– 기업 내부 및 파트너와의 애플리케이션 통합
– EAI, B2B, 웹 서비스를 위한 단일 솔루션
.NET products are not integratedNeed 12 products for equivalent Oracle10g functionality
웹 사이트 및 애플리케이션들의 포탈로의 통합
Any Data Source
Packaged Apps
Page Assembly
Engine
PersonalizationPortal
PortletEngine
Runtime(User, Session,Management
Wireless &Mobile
Internet / intranetUsers
– 웹 사이트를 줄이고 검색 및 탐색을 단순화
– SSO 보안 프레임워크, 엔터프라이즈 검색
– 기 작성된 “포틀릿”을 이용한 포탈 조합
– 사용자 및 롤에 따른 포탈의 개인화
Any Web Site
웹 사이트, 애플리케이션, 포탈의 무선화
Enterprise Apps
Any Database
DeviceTransformers
Personalization
ContentAdapters
– 기존 컨텐츠를 무선 장치로 배치
– 다양한 채널로의 알림 & 메시지
– 위치 기반 서비스
– 모든 사용자에 대한 개인화된 접근 제공
ServiceManager
Runtime
SMS
WML
CHTML
HTML
THTML
Any Web Site
Business Intelligence
OracleASPersonalization
Oracle Reports
Discoverer
Custom Reports
Adhoc Query
ClickStreamIntelligence
Data Sources:CRMERPData MartsDatabasesOLAPData MiningWeb Server logs
– Discoverer와 Reports를 이용한 비즈니스 데이터에대한 분석
– 비즈니스 인텔리전스에 대한 공유
.NET weak on BI“[Microsoft SQL Server] lacks sophisticated data mining tools and algorithms” -Forrester
가장 안정적인 운영 환경
AvailabilityAvailabilityUserUser/Security/Security
ManagementManagement
CachingCaching
SystemsSystemsManagementManagement
PerformancePerformanceScalabilityScalability
오라클 비용10g 구축
오라클 10g DB의 Edition별 비용 설명( Standard Edition, Standard Edition One, Enterprise Edition)데이타베이스 보안을 위한 추가 비용오라클 10g Application Server의 비용
Oracle Database: Product Editions
Enterprise Edition - 업계 최고의 성능과 확장성, OLTP상의 안정성,
의사결정지원 기능을 위한 Oracle Database 10g.
Standard Edition - 클러스터링 기능을 지원하는 4 processor미만
서버를 위한 Oracle Database 10g.
Standard Edition One - 엔트리 레벨서버를 위한 2 processor
미만의 Oracle Database 10g.
Personal Edition - 모든 Oracle Database제품군과 호환이 가능하며,
모든 제품의 특징이 포함된 개인 사용자용
Lite Edition - 모바일 환경(Windows, WinCE,PalmOS등) 의 장비에
탑재가 가능한 모바일 데이타베이스
Oracle Database 10g: Editions
N/AN/A5522
Real ApplicationReal ApplicationClusters
MinMinUsersUsers
MaxMaxProcessorsProcessorsDatabase editionDatabase edition Clusters
Standard Standard EdtionEdtion OneOneIncludedIncludedOptionOption
552525
44UnlimitedUnlimited
Standard EditionStandard EditionEnterprise EditionEnterprise Edition
Oracle Database 10g Rated "Excellent" by InfoWorld Excellent 8.8criteria score weightManageability 9 25%Performance 8 25%Availability 9 20%Scalability 9 20%Value 9 10%
Oracle Database 10gStandard Edition One
최대 Processor 2개까지 지원하는 Edition
First Class Database, Economy Price
Small businesses & departmental systems– 400명 미만의 사용자가 있는 회사나 조직
– 대기업의 단위업무 또는 독립된 업무용 서버
– 수 기가바이트 미만의 DB 볼륨에 적당
– Start small and grow as you needs grow
– SQL Server 2000 SE와 대응
– Excel, Access, Mysql사용자들을 Upsizing
TCO : Standard Edition One vs. SQL Server 2000 (SE)
55
1010
No ofNo ofUsersUsers
$745$745
$1,490$1,490
Oracle SE1Oracle SE1
$1,489$1,489
$2,249$2,249
SS SESS SE
1
2
No ofNo ofProcessorsProcessors
$4,995
$9,990
Oracle SE1Oracle SE1
$4,999
$9,998
SS SESS SE
List Price
Upgrades
ComponentComponent
1년간 총비용
5년간 총비용
Support
$4,995
$750
SE1SE1
$6,095
$10,490
$350
SS SE
$4,999
$1,250
SS SE
$1,225
$7,474
$17,374
Oracle Database 10gStandard Edition
최대 4 processor까지 지원하는 Edition
고 가용성을 위한 클러스터링 데이터 베이스 기능인Real Application Clusters (RAC) 기본 포함
Medium sized businesses– 1000명 미만의 사업장
– 기가바이트 DB 사이즈 볼륨의 업무에 적당
– SQL Server 2000 Enterprise Edition에 대응
– SQL Server는 99+%가 4 cpu미만
Oracle Database 10g SE vs. SQL Server 2000 EE
55
1010
No ofNo ofUsersUsers
$1,500$1,500
$3,000$3,000
Oracle Database 10Oracle Database 10ggStandard EditionStandard Edition
$7,112$7,112
$7,842$7,842
SQL Server 2000SQL Server 2000Enterprise EditionEnterprise Edition
33
44
No ofNo ofProcessorsProcessors
$45,000$45,000
$60,000$60,000
Oracle Database 10Oracle Database 10ggStandard EditionStandard Edition
$59,997$59,997
$79,996$79,996
SQL Server 2000SQL Server 2000Enterprise EditionEnterprise Edition
RAC를 제공하는 Edition
ORACLE10g Standard Edition에 기본 장착
서버 Down,서버추가,Disk추가,Upgrade시 무정지 서비스
Shared Disk기반의 고 가용성과 확장성 제공
Single instance와 동일한 기능
MS Federated SQL Server
A-Z
ORACLE10g RAC
A-F G-L M-R S-Z T-ZA-E F-K L-P Q-S T-Z
Oracle Database 10gEnterprise Edition
No price changes– $40,000 per processor– $800 per user (minimum 25 users per CPU)
Same options, same prices– RAC OLAP Advanced Security– Partitioning Data Mining Label Security
Enterprises of any size– Mission Critical capabilities(통신,금융등 온라인서비스)– Data Warehousing capabilities(EDW, BI)– Consolidated/Grid environments
Example Customer Profiles
EE & Options
SE
Database Database EditionEdition
SE One
Personal
Lite
EE
Large (4+ CPU’s)
Medium sized (4 CPU’s)
Size of Business/UseSize of Business/Use
Small/departmental (1-2 CPU’s)
Laptop, Desktop
PDA’s, Mobile Devices
Large (4+ CPU’s)
> 1,000
400 – 1,000
No ofNo ofUsersUsers
< 400
1
1
> 1,000
데이타베이스 보안을 위한 추가비용
Microsoft SQL Server 사용자,
패키지 애플리케이션 환경에서 보안을 위해 4배 비용 지출
$13
$53MicrosoftSQL Server
OracleDatabase
Annual Database Security Cost (Per User)
$20 $40 $600* 출처 : INPUT, November 2002
Oracle Application Server 10g성능, 가격, 가격 대 성능비
11651037
695
448
0200400600800
1000
1200
OAS 10G(Linux)
BEA WL(Win2K)
BEA WL(Linux)
IBM WS(Win2K)
TOPS
$151$200
$263
$648
0100200300400500600700
OAS 10G(Linux)
BEA WL(Win2K)
BEA WL(Linux)
IBM WS(Win2K)
$/TOPS
유사한 환경 하에서의 결과 비교 (2 CPU Each)대용량 멀티 CPU에서의 비교 자료는 현재 비교하기 어려움
http://www.spec.org/osg/jAppServer2002
.NET IS More EXPENSIVE
Oracle Oracle iiASAS
$80,000
Included
Included
Included
Included
Included
$40,000*
$4,000*
$64,000
$80,000
Included
Included
Included
Included
Included
$40,000*
$4,000*
$64,000
- Windows Server 2003
- SharePoint Portal Server
- BizTalk Server
- Host Integration Server
- Commerce Server
- Application Center
- SQL Server
- Windows Server 2003
Application Server
Enterprise Portal
B2B Integration
Legacy Integration
Business Intelligence
Load balancing
Database
Operating System
Total
* Oracle deployment includes Oracle Database & Windows Server 2003
Microsoft .NET
$4,000
$35,800
$25,000
$2,500
$13,000
$3,000
$20,000
Included
$103,300
All prices are list; Configuration: 100 users, 4 CPUs, 4 developersSource: Public sources
Leader of Application Platform Suite
Oracle is one of the Market Leaders :
In Market Share, Customer Base,
Product Capability, Vision
( Forrester Research Techrankings 2004)
Gartner MQ : Oracle is – Leader& the World’s Fastest Growing APS
오라클 10 우수성g 성능의
윈도우 환경의 오라클 DB의 Architecture( Thread와 File I/O중심)성능 측면에서의 기능비교Oracle 10g와 SQL Server 2000의 TPC-C성능 수치 비교Cluster환경에서의 오라클 DB의 TPC
DB Architecture For Windows Thread Model
1990년 MS-DOS용 Oracle5 부터 Windows2003용Oracle10g(1993년 최초의 Windows NT용 RDBMS)
PMON과 LGWR등의 Unix O/S의 프로세서와 달리Windows에 최적화된 하나의 Native Thread프로세서로 설계
메모리 제약사항 제거로 무제한의사용자와 성능
SGA를 최대 8TB메모리까지 지원
Oracle process
Code
SGASGA containsdb buffers,log buffersshared pool,other memoryallocations
Each threadconsists ofPGA, stack,other memoryallocations
Background and foreground threads
DB Architecture For Windows File I/O
64-bit file I/O지원으로 Windows용 Oracle Database 10g는 Big file지원
– DB파일크기의 제약사항(2GB,4GB)이 없음
– Windows에서의 최대 DB 크기는 4 petabytes
– 모든 파일타입에 대해 Async file I/O지원
하나의 데이타베이스에서 최대파일 수에 대한제약사항이 없음
Raw files지원으로 File system보다 빠른 성능
DB Architecture For Windows Tuning
Windows기반 NUMA 구조지원으로 최적의 메모리조절기능과 스케줄링 작업 지원
32-bit Windows에서 2000+ 동시 사용자를 지원하였으나, 64-bit Windows에는 시스템 자원이 고갈될 때까지 무제한지원
Multiplexing, connection pooling, RAC등의 기술로동시사용자수에 대한 확장성이 무제한 증대
성능측면에서의 기능비교
동시성 모델
인덱스 기능
ComponenComponentt
파티선 옵션
병렬처리
클러스터링 구성
데이타웨어하우스 기능
Multi-version read consistencyNon-Escalating row-level locking
B-Tree indexesIndex-organized Tables
Bitmap indexesBitmap Join Indexes
ORACLEORACLE
Range,Hash, List and CompositePartitioning
Local and global indexes
Queries,INSERT,DELETE,UPDATE
RAC기반의 투명성있는 확장성
Shared read locks or dirty readsLocks escalate
SS SE
분산파티션뷰와 멤버테이블간의테이타분할 필요
SS SE
Not supported
멤버테이블간의 local indexes지원
B-Tree indexesClustered Indexes
Not supportedNot supported
QUERY Only
Materilized ViewsMERGE
Multi-table INSERTPipelined table Functions
Indexed ViewsNot supportedNot supportedNot supported
Oracle Database 10g Performance Metrics
Incremental backup up 10x
Parallel media recovery 2-4x
Backup compression 17x
Infiniband interconnect ½ latency, 2x block transfer
TPC-C
– Best absolute and best on 4-way Intel
– +28% on same hardware
PLSQL up to 2x
Table Scans up to 2x
SQL Profile Tuning huge
Floating point math up to 10x
Bulk LOB Update up to 3x
Import up to 15x
Export up to 35%
World Record 4-way TPC-C
Oracle is 12% faster and 12% cheaper than Microsoft on identical 4 processor HP hardware
Date
OS
CPUs
Platform
Price Performance
Performance
Version
9/5/2003 4/24/2003
Red Hat Linux
4 Itanium 2 1.5GHz
HP rx5670
$4.09
136,110.98
10g
Windows AS 2003
Oracle Microsoft
4 Itanium 2 1.5GHz
HP rx5670
$4.79
121,065.13
2000
Source: Transaction Processing Council (http://www.tpc.org). As of September 19, 2003:1 HP Integrity rx5670, (Oracle Database 10g Standard Edition), 136,110.98 tpmC, $3.94/tpmC, available March 5, 2004.2 HP Integrity rx5670, (Microsoft SQL Server 2000 64-bit), 121,065.13 tpmC, $4.49/tpmC, available August 1, 2003.
A N N O U N C E M E N T
World Record TPC-C Benchmark
The world record TPC-C non-clustered Linux result of 609,467 tpmC, $6.78/tpmC was achieved on a NEC
Express5800/Xd server with 32 Intel Itanium 2 processors at 1.5 GHz running Oracle Database 10g with SUSE LINUX
Enterprise Server 9. This result outperforms the previously published Microsoft SQL Server 2000 result on the same
server and is the best TPC-C 32-way result on Intel processors.
Source: Transaction Processing Council (TPC)
동일 Spec HW 플랫폼에서 SQL Server와 비교
Oracle Database 10gEnterprise Edition
Mircosoft SQL Server 2000 Enterprise Edition (64-bit)
609,467 577,531
$6.78 $10.81
NEC Express5800/1320X NEC Express5800/1320X
32 32
Intel Itanium 2 1.5GHz Intel Itanium 2 1.5 GHz
SUSE LINUX Enterprise Server 9
Microsoft Windows Server 2003, Data Center Ed. 64-bit
Intel Processors기반TPC-C 32-way Oracle Microsoft
Database Software
Performance (tpmC)
Price Performance($/tpmC)
Platform
Number of CPUs
CPU type
OS
Clustering Database Results on TPC
오라클 10g의 고가용성
오라클 DB의 Clustering개념 소개오라클 Application Server의 Clustering개념 소개Service Provisioning의 활용 예제오라클 DB의 고가용성 데모오라클 Application Server의 고가용성
DB Real Application Clusters
ERP
DW
WEB
CRM
공유 디스크를 통한 데이터의 통합
모든 노드에서 같은 데이터 제공
성능의 순차적인 확장성 제공
DB Real Application Clusters
MS SQL ServerORACLE RACRuns real applications
서버 Down,서버추가,Disk추가 및
Upgrade시 무정지 서비스
Shared Disk기반의 고 가용성제공
손쉬운 노드 확장성 제공
Single instance와 동일한 기능 제공
Only runs benchmarks
Shared Nothing 기반으로 서버 Down시노드간 통신으로 인한 시스템 부하 발생
새로운 노드 및 Disk 추가 시 부하 분산을위한 복잡한 데이터 재 구성 시간 필요
A-F G-L M-R S-Z T-ZA-E F-K L-P Q-S T-ZA-Z
DB Real Application Clusters노드간 동기화(Synchronization)
캐쉬 퓨전(Cache Fusion)에 의한 성능 향상과 확장성 증대
– 인스탄스 간의 블록 요청을 고속의 Interconnect 를 통해 Disk를 거치지 않고Cache to Cache로 직접 전송으로 Disk I/O의 최소화
– Instance B의 버퍼캐쉬 에 있는 블록을 instance A가 읽기나 쓰기로 접근
ReadReadReadWriteWriteWrite
Lock StatusLock StatusBlock inBlock inCache BCache B
WriteWriteWriteWriteWriteWriteDatabase fileDatabase file
Node A
Databasebuffers
Data transferData transfer
BSPBSPread / readread / writewrite / readwrite / write
Node B
Databasebuffers
SelectSelect
High-Speed Interconnect
Requestfor BlockCache A
RequestRequestfor Blockfor BlockCache ACache A
ReadReadRead ReadReadReadWriteWriteWriteReadReadRead
Oracle Application Server Clusters
로드 밸런싱을 지원하는 애플리케이션 클러스터
Load Balancers (or Web Cache)
Cluster 2J2EE Application ‘B’Session State Shared
Browser
Wireless &Mobile
Internet / intranetUsers
Data Sources
Cluster 1J2EE Application ‘A’Session State Shared
Apache Web Serversw/ Load Balancing
Service Provisioning Setup
Web Server
Reporting
O10G1 O10G2 O10G3 O10G4 O10G5 O10G6
Order_EntryService
DB_NAME
jdbc:oracle:oci@Order_Entryjdbc:oracle:oci@Reporting
PreferredAvailable
Service Provisioning(Automatic Workload Management)
Reporting Order EntryTest
평상시 업무별 서버 할당
Service Provisioning(Automatic Workload Management)
Reporting Order Entry
특판 기간
Service Provisioning(Automatic Workload Management)
Order EntryReporting
특판 기간 이후 분석/보고서 작성
Service Provisioning(Automatic Workload Management)
Reporting Order EntryTest
업무별 서버할당의 정상화
Service Provisioning(Automatic Workload Management)
Reporting Order EntryTest
서버 장애 발생
Service Provisioning(Automatic Workload Management)
Reporting Order Entry
업무적 복구
Service Provisioning(Automatic Workload Management)
Reporting Order Entry
2차 서버 장애발생
Service Provisioning(Automatic Workload Management)
Reporting Order Entry
업무부하에 따른 2차 복구
DEMO오라클 DB의 고가용성 데모데이타베이스 서버
32노드
주문결제
DW/CRM
일반관리
주문결제에부하발생
node13” 서버의비정상적 종료발생
일반관리에부하발생
WAS서버20노드
공유디스크
오라클 Application Server의 고 가용성
Cluster된 애플리케이션과 데이타서버를 통해 Failover 지원
Load Balancers (or Web Caches)
Browser
Wireless &Mobile
Internet / intranetUsers
Oracle10g RAC
Cluster 1J2EE Application ‘A’Session State Shared
Oracle HTTP Serverw/ Load Balancing
오라클 10 .NET 지원g DB의
오라클 ODP .NET개요 및 구조오라클 ODP .NET의 장점오라클 ODP .NET의 성능 향상오라클 ODP .NET 데모
ODP.NET
Oracle Data Provider for .NET
ODP.NET provides data access between the Oracle DB and the .NET app server
– Developed by Oracle– Best performing provider
– Oracle’s advanced DB features are available through ODP.NET
– Based upon Microsoft ADO.NET spec
Equivalent to SQL Server’s SQLClient
.NET Data Access to Oracle
VB.NETVB.NET C++.NETC++.NETC#C#ASP.NETASP.NET Any .NET Any .NET ClientClient
Oracle .NET Oracle .NET Data ProviderData ProviderOracle ODBCOracle ODBCOracle OLE DBOracle OLE DB
OLE DB .NETOLE DB .NET ODBC .NETODBC .NET
Oracle Database 10g
ODP.NET Advantages - Features
Full PL/SQL support– Packaged, non-packaged, anonymous, autonomous
Native Oracle data types– LOBs, REF Cursors, BFiles, N-data types, Dates,
TimeStamps, Longs, Raws, etc.
– Safe type mapping to .NET data types
Transactions– Enterprise Services via Oracle Services for MTS
– Local (Implicit and Explicit)
– Savepoints
ODP.NET Advantages - Features
Connection pooling– Min, Max, Timeout, Lifetime, Increment, Decrement
Globalization– Full Unicode support
– Client settings are used to display Oracle data in culturally-appropriate manner
Transparent application failover– Notification callbacks
Proxy user authentication
ODP.NET Advantages - Features
Parameters– Array binding
– Named and positional parameters
DataAdapter Requery
XML DB– XMLType support
– XML repository support via PL/SQL
– Future native XML DB API support
ODP.NET 10g Performance Improvements
Based on atomic tests (10g vs. 9iR2) – no code changes
– Number retrieval is faster
– Char retrieval is faster
– Varchar retrieval is faster
– LOB retrieval is faster
Based on real-life apps– LOB retrieval is 17 times faster
European government global information system
– Decimal retrieval 2 times faster
Financial company historical data system
ODP.NET 예제
using System;using Oracle.DataAccess.Client;
class Example {
OracleConnection con;void Connect() {con = new OracleConnection();con.ConnectionString =
"User Id=scott;" +"Password=tiger;" +"Data Source=oracle";
con.Open();Console.WriteLine(
"Connected to Oracle" +con.ServerVersion);
}
void Close() {con.Close();con.Dispose();
}
static void Main(){Example example =
new Example();example.Connect();example.Close();
}}
ODP .NET powered by TAFDEMO
.NET framework
SharpDevelop
ODP .NET
“O10G1”
Oracle 10g
“O10G2”
Oracle 10g
오라클 DB와Application Server의
관리
10g
용이성
효율적인 데이터 Loading과 MigrationEnterprise Manager를 통한 모든 오라클 제품 관리애플리케이션 및 시스템 자동 튜닝EM2GO를 통한 PDA로 DB관리오라클 Application Server성능 모니터
효율적인 데이타 Loading/Migration.
Oracle Database 10g
새로운 “ Data Pump “– Oracle9i Export 보다 60% 이상 빠름
– Oracle9i Import 보다 15 ~ 20배 이상 빠름
– 자동 병렬 쓰레드를 통한 성능 확장
– Export 덤프화일 사이즈 예측 가능
향상된 “ Transportable Tablespace “– 이기종 플랫폼간의 테이블스페이스 호환
가능
– 읽기전용 테이블스페이스를 여러 개의데이타베이스에 마운트 할 수 있음
Oracle 10g Enterprise Manager
Oracle의 통합 관리 솔루션
Web 기반의 인터페이스
Oracle 환경 내의 일체의 서비스 관리– 호스트, 하드웨어
– 데이터베이스
– 어플리케이션 서버
– 데이터베이스 Listener,
– HTTP 서버, …종류
– EM Database Control
– EM Grid ControlGrid Control
Storage
DatabasesApplication
Servers
OS 및 H/W데이터베이스
10gAS
저장 매체
네트워크
ApplicationsGrid
Control
관리진단보안분배
관리진단보안분배
Oracle 10g Enterprise ManagerGrid Control
Oracle 10g Enterprise ManagerDatabase Home Page
“Dashboard” for the DBA
– Database status
– Host information
– Availability
– Performance
– Alerts
Drill-down capability
Launch pad for all DBA activities
DB + OS Monitor
Oracle 10g Enterprise ManagerComplete Database Administration
SchemaManagement
Data Export& Import
Memory Management
User ManagementDatabase ParameterManagement
Grid Control
Backup &Recovery
Space Management
튜닝 - 수동적 SQL 튜닝의 한계
SQLWorkload
DBA
과도한SQL을어떻게찾을까?
과도한SQL을어떻게
튜닝할까?
DBA과도하게
사용된 SQL
튜닝 - 자가 관리 데이타베이스
Built-in Intelligent Infrastructure
– Code instrumentation
– Automatic Workload Repository
Automation of Routine Tasks
– Automatic disk-based Backup and Recovery
– Automatic optimizer statistics collection
– Automatic Memory Management
– Automatic Storage Management
Tools to Empower the DBA
– Automatic Database Diagnostic Monitor
– Automatic Tuning Optimizer
애플리케이션 & SQL관리
시스템 자원관리
여유 공간관리
백업 및 복구관리
저장 공간관리
Database Management
DEMO튜닝 - Self-Managing Database
자동 사전 경고및
관련 권고 제시
AutomaticTasksDatabase 내의 DBA
AA DD DD MM
Grid Control
Automatic Workload RepositoryAutomatic Workload Repository의사 결정및
조치Database내의 데이타웨어하우스
자동적으로 SQL 부하, 자원 사용 정보 등
의 각종 통계정보 등을 수집관리자
튜닝 - 자동 공유 메모리 튜닝
작업부하의변화에 따라 자동동적 재분배
메모리 사용의극대화 및 성능향상
단지 2개 Pool 영역
SGAPool
PGAPool
대량의
배치 작업
sort
Java Pool
SQL Cache
Large Pool
Buffer Cache
SQL Cache
sort
온라인
사용자
Large Pool
Buffer Cache
Java Pool
DB_CACHE_SIZESHARED_POOL_SIZELARGE_POOL_SIZEJAVA_POOL_SIZE
SGA 변수를하나로 통합
SGA_TARGET
EM2GO for Multiple Devices
Management InterfaceOracle Mgmt UI Other Mgt UI’s User Defined/4GL
Web Server
OC4J ContainerManagement Console
Management Servlets
ManagementRepository
JDBC
Custom Servlets
Custom Servlets
EM2Go AppJSP’s
( Cabo framework)
Tiny HTML
HTML
Oracle Management Service
DEMOEM2GO DEMO
Application Server 성능 모니터링
실시간 및 히스토리 성능 데이터 저장
업무 부하 정책에 대한 분석 및 튜닝
다음과 같은 질문에 대한 응답 가능:– “이 애플리케이션의 JDBC 부분에만
얼마나 많은 시간이 소요되었는가?”– 지난 3개월, 6개월, 9개월 동안의
평균 응답 속도는 어떤가?”
Application Server 모니터링
System Visitors
Transaction TracingHistorical Diagnostics