DBA Basics: Getting Started with Performance Tuning.pdf
Oracle database connection with the .net developers
1.
2. <Insert Picture Here>
Oracle Database 11g for Windows and .NET
Alex Keh
Principal Product Manager, Server Technologies
3. Agenda
• Oracle Database 11g on Windows
• Oracle Database – Best Performance
• Windows OS Integration
• Oracle for .NET Developers
• Ease of Development
• Performance
• Manageability and Installation
• Unified Oracle and Microsoft Server Management
• Oracle Fusion Middleware
• Next Steps
5. Oracle Database 11g Value Proposition
• Easiest to Manage
• Highest Quality of Service
• Highest Performance and Scalability
• Fault Tolerant
• Most Secure
• Best Information
• Lowest Cost
• Lowest Risk of Change
6. Oracle Database 11g - Performance
Java Just-In-Time
Compiler
Up to
11 x Faster
Database Resident
Connection Pool
Up to
20 x connections
RAC Performance
Enhancements
Up to
70% Faster
Query Result
Caching
Up to
25% Faster
Client Side
Caching
0%
20%
40%
60%
80%
100%
120%
140%
Improvement
Up to
22% Faster
Oracle Secure
Backup
Up to
25% Faster
Oracle Streams
Enhancements
Up to
2 x Faster
Optimizer Stats
Collection
0
200
400
600
800
1000
Stats Collection
Up to
10 x Faster
8. New in Oracle Database 11g
Extended XML Support with Binary XML
XML - Binary
XML - LOB
XML - Object Relational
Unstructured Structured
Flexible
Performant
Schema-less
Schema-based
9. Best Price/Performance on Windows
• #1 TPC-C Price/Performance amongst all platforms
• Oracle Database 11g on Windows
• …And Oracle has the #1 TPC-C Performance also
TPC-C by Price/Performance 11g SQL 2005
Highest Ranking Benchmark 1st 3rd
Price/tpmC $0.73 $0.84
tpmC 102,454 82,774
Publication Date 9/12/07 3/27/07
As of 9/12/07: HP ProLiant ML350G5, 102,454 tpmC, $.73/tpmC available 12/31/07. HP Integrity Superdome Server, 4,092,799 tpmC, $2.93 tpmC, available 8/6/07
(#1 TPC-C performance). Source: Transaction Processing Performance Council (TPC) www.tpc.org
10. Windows Integration - Active Directory
and Windows Security
• Database Registration and Name Resolution
• Support authenticated connection to Active Directory using
OS authentication
• Kerberos Authentication
• Stronger encryption algorithms (DES3, AES, RC4)
• Support default encryption type supported by MS KDC
• Use DNS Domain Name as Kerberos REALM name by
default
• Kerberos authentication to Oracle database in a MS cross-
domain setup
• Removal of 30 character limit on the Kerberos user name
11. • Network Attached Storage (NAS) use Network File
System (NFS)
• Oracle Database 11g allows direct Windows NFS v3
access
• Part of DB kernel in Oracle Disk Manager library
• Benefits: easier manageability, simplified tuning, and
better diagnostics
• Common Oracle NFS interface for potentially all host
platforms and NFS servers
Direct NFS Client on Windows
13. Oracle Database Express Edition
• Small-footprint starter database
• Free to download, develop, deploy, distribute
• Installs in about 10 minutes
• Uses native Windows installer
• Standard silent install method
• Download size
• Server (includes client) - 157 MB
• Client - 30 MB
• Quick start tutorials for DB and developer novices
14. Oracle Database
Solutions That Grow with You
400
1,000
10,000
Average
Connected
Users
Standard Edition One
(2 sockets max)
Standard Edition
(4 sockets max)
Enterprise Edition
(Unlimited processors)
15. Where to Buy*….
CDW
www.CDW.com/oracle
Dell
www.dell.com/oracle
1-800-274-3355
Insight
http://www.insight.com
Search on ‘Oracle’
SE1 NUP
$125
EDC 560325
Call
A0188526
$115
L10314
Proc
$3,744
EDC 875678
Call
A0188528
$3,885
L10312
Standard
Edition
NUP
$250
EDC 440283
Call
A0041841
$233.33
L10004
Proc
$15,000
EDC 440289
Call
A0052806
$11,666.66
A90610
Enterprise
Edition
NUP
$800
EDC 440259
Call
A0053326
Call
L10001
Proc
$30,804.99
EDC 440465
Call
A0039545
Call
A90611
* LIST PRICES SHOWN WHERE AVAILABLE
17. .NET Development Environment
Visual Studio
Environment
IIS
Oracle Developer
Tools for VS
C++, C#,
VB .NET
Application
Develop
ODP.NET
Deploy
Oracle DB
Extensions
For .NET
IIS
(ASP
ASP.NET)
MTS/
COM+
Application
Deploy
Oracle Services for MTS
Database
Development
Oracle Providers
for ASP.NET
18. Oracle Developer Tools for Visual
Studio
• Free
• “Add-in” for Visual Studio 2005 and VS .NET 2003
• Easy to use and intuitive
• Powerful features that enhance productivity
• Fully integrated with Visual Studio
• Easy ASP.NET web application development
• Designers and wizards
• Automatic .NET code generation
• PL/SQL editor/debugger
• Source Control Integration
• Much more
• Stay in Visual Studio for project lifecycle
19. Oracle Data Provider for .NET
• Free
• Easy to learn, even if new to Oracle
• Compliant with ADO.NET 1.x, 2.0, and higher
• No learning curve
• Complete access to .NET functionality
• Native access to Oracle Database
• Utilize advanced Oracle Database features
• RAC, performance, security, data types, XML, etc.
• Oracle Providers for ASP.NET use ODP.NET
20. Oracle Database Extensions for .NET
(AKA .NET Stored Procedures)
• Write Microsoft Visual C# or Visual Basic .NET
procedures/functions
• Oracle Database 10g Release 2 or higher on Windows
option
• Build assembly in Visual Studio .NET
• Deploy from Visual Studio .NET into Oracle using .NET
Deployment Wizard
21. Develop on Windows, Database on any
Platform
Visual Studio
Environment
ODT and
ODP.NET
Windows
Windows
Linux
Unix
Oracle 11g,10g, 9i, or 8i
Other
22. Oracle on .NET Customers
”
“
We’re taking the best
of both worlds – .NET
and Oracle – to give us
the best platform
possible. ODP.NET is
vital to the success of
our next-generation
application
Bill Evjen,
Technical Architect
”
“
“
Jason Lin, Assistant Vice
President, Application
Integration and Architecture
“ “
Since we use a
Microsoft .NET
middle tier, Oracle
Data Provider for
.NET provided the
high throughput, high
performance, and
bulletproof
connectivity to the
database
”
Integrating
ODP.NET was easy
and straightforward..
we were able to take
advantage of…
the power and high
availability of the
grid
Jim Lombardi,
Principal Database Engineer
23. New .NET Feature Themes
• Ease of Development
• Tight integration with Visual Studio 2005
• Web Application Development (ASP.NET)
• Objects
• Performance
• Expose new tuning features
• Improve performance out of the box
• Manageability and Installation
• Deployment: smaller client and easier packaging
25. Visual Studio Integration –
Oracle Developer Tools
• Fully integrated with Visual Studio 2005
• Server Explorer
• Data Sources Window
• Data Source Configuration Wizard
• Dataset Designer
• TableAdapter Configuration Wizard
• Query Builder/Query Designer
• More
• Automatic code generation – Winform and ASP.NET
• Data Sources Window
• Integration with SQLDataSource control
• Makes ASP.NET web application development very easy
26. Visual Studio Integration
• New Oracle Database Project
• Manage, Edit and Run SQL scripts
• SQL*Plus is built in
• Source control integration – SourceSafe and Team Foundation
Server
• Oracle Query Window
• New UI
• Explain Plan
• Auto-commit toggle
• ODT Options page
• Customize how you use ODT
28. Web Application Development
(ASP.NET)
• ASP.NET Providers
• Pre-built services to store website state into databases
• Easy to learn
• Based on standard ASP.NET provider APIs and schema
• Installation
• Run PL/SQL scripts to create provider schemas
• Namespace
• Oracle.Web
29. Web Application Development
(ASP.NET)
• Oracle Providers for ASP.NET Components
• Cache Dependency Provider
• Membership Provider
• Profile Provider
• Role Provider
• Site Map Provider
• Session State Provider
• Web Parts Personalization Provider
• Web Event Provider
• Administrators can pick and choose which providers
to use
32. Performance – Data Retrieval
• Data retrieval performance improvements (11g)
• Client Result Cache
• Caches results sets either on client or server
• Shared across sessions in the same process
• Cache remains consistent via DB Change Notification
• Better LOB performance
• LOB prefetching – fewer roundtrips
• Improved statement caching
• Cache ODP.NET parameter contexts
33. Performance – 64-bit
• Allow ODP.NET and .NET stored procedures to use
more scalable 64-bit hardware (10.2.0.3)
• Windows x64
• 64-bit ODP.NET
• 64-bit .NET Stored Procedures
• Windows Itanium
• 64-bit ODP.NET
• 64-bit .NET Stored Procedures
• Available for download on OTN from .NET Center
35. Installation – Simpler Deployment
• Easier to package ODP.NET for large scale
deployments
• Xcopy – administrators script to specific requirements,
generally large deployments
• OUI – for small scale deployments
• Smaller ODP.NET footprint
• OUI install – small footprint
• Xcopy install – smallest footprint
• Faster ODP.NET deployment
• Xcopy
• No difference in ODP.NET functionality
36. Installation – Simpler Deployment
• IC xcopy components
• ODP.NET
• Oracle Providers for ASP.NET
• Oracle Provider for OLE DB
• OO4O
• Oracle Services for MTS
• IC deployment
• Via OUI - Use the installer as you normally would
• Via xcopy
• Step 1: Copy IC files to disk
• Step 2: Run install.bat
• Step 3: Add installation directories to Windows PATH
• Step 4: Modify NLS_LANG to desired locale
38. Grid Control for Microsoft Servers
Systematic way to extend system coverage
• Key Benefit: Centralize
Management
• Enable GC to monitor and
manage new components
• Windows Host Management
• MOM Connector
• Microsoft plug-ins:
• Exchange
• SQL Server
• Active Directory
• .NET Framework
• IIS
40. Oracle Fusion Middleware and .NET
Bridging MS and non-MS Infrastructure with Enterprise Capabilities
Msft Outlook Msft InfoPath
Msft Word
Msft Excel Msft .Net UI
Msft
SQL Server
Msft
Active
Directory
Msft
MSMQ
J2EE –
BEA, IBM,
JBoss, etc.
ID Mgmt –
Sun, Novell
OpenLDAP,
etc.
DBMS –
Oracle, DB2,
Informix, etc.
TP Monitors, Messaging –
Tuxedo MQ, Sonic,
CICS, IMS Tibco
M
i
c
r
o
s
o
f
t
Msft Servers
i.e. BizTalk
Portal BPM
Sys. Mgmt
BI
Security &
ID Mgmt
Enterprise
Service Bus
HA
Oracle Fusion Middleware
IDE
App/Services
Service, Event
Registry
Sys Mgmt –
HP, CA, IBM,
BMC, etc.
BI –
Business Objects,
Cognos, etc.
Apps –
Oracle, Psft,JDE, SAP,
Siebel, Legacy, etc.
42. More Information
• OTN Windows Technology Center
• http://otn.oracle.com/windows
• OTN .NET Developer Center
• http://otn.oracle.com/dotnet
• .NET Blog
• http://cshay.blogspot.com/
• For more questions
• alex.keh@oracle.com
43. More Information
• OTN Fusion Middleware and Microsoft
• http://www.oracle.com/technology/products/mid
dleware/fusion-middleware-microsoft-
interoperability.html
• OTN Grid Control Plug-ins and Connectors
• http://www.oracle.com/technology/products/oe
m/extensions
44. The preceding is intended to outline our general
product direction. It is intended for information
purposes only, and may not be incorporated into any
contract. It is not a commitment to deliver any
material, code, or functionality, and should not be
relied upon in making purchasing decisions.
The development, release, and timing of any
features or functionality described for Oracle’s
products remains at the sole discretion of Oracle.