50
1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

1 Copyright © 2011, Oracle and/or its affiliates. All

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 1 Copyright © 2011, Oracle and/or its affiliates. All

1 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Page 2: 1 Copyright © 2011, Oracle and/or its affiliates. All

2 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Getting Started with Oracle and .NET

Christian Shay

Principal Product Manager, Oracle

Page 3: 1 Copyright © 2011, Oracle and/or its affiliates. All

3 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

3 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Insert Information Protection Policy Classification from Slide 8

The following 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.

Page 4: 1 Copyright © 2011, Oracle and/or its affiliates. All

4 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Page 5: 1 Copyright © 2011, Oracle and/or its affiliates. All

5 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

<Insert Picture Here>

Program Agenda

• Oracle and Microsoft

• Oracle and .NET – Getting Started

• Oracle Developer Tools for Visual Studio

• Oracle Data Provider for .NET

• Oracle Providers for ASP.NET

• Oracle .NET Stored Procedures

• Additional Oracle .NET features

Page 6: 1 Copyright © 2011, Oracle and/or its affiliates. All

6 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Oracle’s Commitment to .NET

20062002-03

.NET 1.x

2005

ODP.NET

ODT &

.NET SP 64-bit ODACODAC

2006

.NET 2.0 &

VS 2005

2007

.NET

3.0VS 2003

ODAC

2008

2007-08

ODAC

2009

2009

ODAC

2010

2010

.NET 4 &

VS 2010.NET 3.5 &

VS 2008

ODAC

11.2

2011

Page 7: 1 Copyright © 2011, Oracle and/or its affiliates. All

7 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Page 8: 1 Copyright © 2011, Oracle and/or its affiliates. All

8 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Oracle .NET – Large Developer Community

• Over 800K Oracle .NET developer community

• Microsoft MVP endorsements of ODAC

– Bill Evjen, founder of INETA

– Andrew Brust

– John Cook

• Top twenty most downloaded OTN software

– ODAC downloads

• One of the most visited websites on OTN

– OTN .NET Developer Center

Page 9: 1 Copyright © 2011, Oracle and/or its affiliates. All

9 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Relationship with Microsoft

Engineering• Close collaboration with Microsoft Engineering teams

• Access to pre-release Microsoft product drops

Marketing

• Visual Studio Industry Partner (VSIP)

• Sponsorship at respective events – TechEd, PDC, OpenWorld

• Joint training, road shows, collateral, etc.

Support• Microsoft Premier Support Agreement

• Collaboration of support teams

Page 10: 1 Copyright © 2011, Oracle and/or its affiliates. All

10 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

<Insert Picture Here>

Program Agenda

• Oracle and Microsoft

• Oracle and .NET – Getting Started

• Oracle Developer Tools for Visual Studio

• Oracle Data Provider for .NET

• Oracle Providers for ASP.NET

• Oracle .NET Stored Procedures

• Additional Oracle .NET features

Page 11: 1 Copyright © 2011, Oracle and/or its affiliates. All

11 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

.NET Developer Center on OTN

• http://otn.oracle.com/dotnet

• Free downloads of Visual Studio tools, ODP.NET

• Whitepapers, Sample code

• Demo Videos

• Help Forums

• New Feature request page

• Latest Oracle on .NET News

Page 12: 1 Copyright © 2011, Oracle and/or its affiliates. All

12 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Oracle .NET Development Environment

Visual

Studio

Application

DevelopmentDeploy

Deploy

Database

Development

Oracle Data Provider

for .NET

Oracle Developer Tools

for Visual Studio

Oracle Database

Extensions for .NET

Oracle Providers for

ASP.NET

.NET

Framework

Web or

Client/Server

Page 13: 1 Copyright © 2011, Oracle and/or its affiliates. All

13 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Develop on Windows –

Run Database on any Platform

ODT and

ODP.NET

Windows

Windows

Linux

Solaris

Oracle 11g, 10g, or 9i

Other

Visual

Studio

Page 14: 1 Copyright © 2011, Oracle and/or its affiliates. All

14 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

<Insert Picture Here>

Program Agenda

• Oracle and Microsoft

• Oracle and .NET – Getting Started

• Oracle Developer Tools for Visual Studio

• Oracle Data Provider for .NET

• Oracle Providers for ASP.NET

• Oracle .NET Stored Procedures

• Additional Oracle .NET features

Page 15: 1 Copyright © 2011, Oracle and/or its affiliates. All

15 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

D E M O N S T R A T I O N

Visual Studio Integration

Page 16: 1 Copyright © 2011, Oracle and/or its affiliates. All

16 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

ODT Feature Overview

• Fully integrated with Visual Studio 2010 and 2008

– Server Explorer

– Entity Framework Designer

– Data Sources Window

– Dataset Designer

– TableAdapter Configuration Wizard

– Query Builder/Query Designer

– More

Page 17: 1 Copyright © 2011, Oracle and/or its affiliates. All

17 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

ODT Feature Overview

• Automatic code generation – WinForm and ASP.NET

– Makes ASP.NET web application development very easy

• Oracle Wizards and Designers– Table/View Designer

– Stored Procedure/Function/package Wizards

– Grant/Revoke Privileges Wizard

– UDT Designers

– UDT Custom Class Code Generation Wizard

– Table/View Migration Wizard

– Advanced Queuing (AQ) Designers

Page 18: 1 Copyright © 2011, Oracle and/or its affiliates. All

18 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

ODT Feature Overview

• Oracle Data Window

• Oracle Database Project– Edit and Run SQL scripts

– SQL*Plus is built in

– Source control integration

• Integrated PL/SQL Editor and Debugger

• Oracle Query Window

– Ad Hoc SQL

– Explain Plan

Page 19: 1 Copyright © 2011, Oracle and/or its affiliates. All

19 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

ODT Feature Overview

• .NET Stored Procedure Deployment

• Integrated help system – SQL, PL/SQL keywords

Page 20: 1 Copyright © 2011, Oracle and/or its affiliates. All

20 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

<Insert Picture Here>

Program Agenda

• Oracle and Microsoft

• Oracle and .NET – Getting Started

• Oracle Developer Tools for Visual Studio

• Oracle Data Provider for .NET

• Oracle Providers for ASP.NET

• Oracle .NET Stored Procedures

• Additional Oracle .NET features

Page 21: 1 Copyright © 2011, Oracle and/or its affiliates. All

21 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

ODP.NET - Basics

• Implements standard ADO.NET• Adds Oracle DB-specific capabilities

• Easy to use and intuitive

• Native access to Oracle Database– Utilize advanced Oracle Database features

– E.g. RAC, performance, security, data types, XML, etc.

Page 22: 1 Copyright © 2011, Oracle and/or its affiliates. All

22 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

ODP.NET - Basics

• DB server can be on any operating system

• DB client can be 32-bit or 64-bit

– Supports .NET Framework 1.0 and higher

• DB client and server versions not need to match

Page 23: 1 Copyright © 2011, Oracle and/or its affiliates. All

23 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

ODP.NET Object Model

DataSet Oracle

DataAdapter

Oracle

Transaction

Oracle

Command

Oracle

Connection

Oracle

DataReader

Connected Layer

(ODP.NET)

Disconnected

Layer

Oracle

Oracle CommandBuilder

Data

Layer

Page 24: 1 Copyright © 2011, Oracle and/or its affiliates. All

24 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

D E M O N S T R A T I O N

ODP.NET

Page 25: 1 Copyright © 2011, Oracle and/or its affiliates. All

25 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Key ODP.NET Features

• Connection pooling

– RAC: automatic load balancing

– RAC and Data Guard: automatic “dead” connection cleanup

– Performance counters

• Full PL/SQL support

– Packaged, non-packaged, anonymous, autonomous

– Batch SQL available with anonymous PL/SQL

Page 26: 1 Copyright © 2011, Oracle and/or its affiliates. All

26 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Key ODP.NET Features

• Native Oracle data types

– REF Cursors, LOBs, XMLType, TimeStamp, etc.

– Safe type mapping to .NET data types

– Oracle data types in DataSet

• OracleDataAdapter.ReturnProviderSpecificTypes = true

Page 27: 1 Copyright © 2011, Oracle and/or its affiliates. All

27 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Key ODP.NET Features

• Performance tuning

– Statement caching

– FetchSize and RowSize

• Security and auditing

– Proxy authentication

– End-to-end tracing with Client Id, Action, and Module

• Deployment

– Oracle Universal Installer – great for individuals

– Xcopy Instant Client – great for large deployments

Page 28: 1 Copyright © 2011, Oracle and/or its affiliates. All

28 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Microsoft OracleClient Migration to ODP.NET

• Microsoft OracleClient (MSOC)

• Microsoft’s ADO.NET provider for Oracle database

• Deprecation announced June, 2009

– Microsoft strongly recommends using another Oracle provider

Page 29: 1 Copyright © 2011, Oracle and/or its affiliates. All

29 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Microsoft OracleClient Migration to ODP.NET

• MSOC to ODP.NET migration

1. Add ODP.NET reference

2. Add ODP.NET namespace

3. Update connection string (if necessary)

4. Add one line of code for binding parameters

• OracleCommand.BindByName = true; //C#

• http://www.oracle.com/technetwork/topics/dotnet/index-

085703.html

Page 30: 1 Copyright © 2011, Oracle and/or its affiliates. All

30 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Upcoming Features in ODP.NET

• Entity Data Model Wizard and Designer

– Generate a conceptual model from Oracle Database

– Update conceptual model, storage model, and mappings from

Oracle Database

– Generate Oracle SQL DDL script from the conceptual model

Oracle Support for LINQ and Entity Framework

Page 31: 1 Copyright © 2011, Oracle and/or its affiliates. All

31 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Oracle Support for LINQ and Entity Framework

• Query language interfaces

– LINQ to Entities

– Entity SQL

– DML capabilities (insert/update/delete)

• Entity Framework auto-generates DML statements for Oracle

Database

• Or use your own Oracle stored procedures for DML

Page 32: 1 Copyright © 2011, Oracle and/or its affiliates. All

32 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Oracle Support for LINQ and Entity Framework

• Availability

– Beta 2: Available now: version 11.2.0.2.40

– Production: End of 2011

Page 33: 1 Copyright © 2011, Oracle and/or its affiliates. All

33 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Upcoming Features in ODP.NET

• 100% managed provider

– Including Oracle Client

• Fully ADO.NET compliant

• Release schedule

– Beta – 2011

– Production – TBD

Fully Managed ODP.NET

Page 34: 1 Copyright © 2011, Oracle and/or its affiliates. All

34 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Current ODP.NET ArchitectureManaged and Unmanaged

ODP.NET

Oracle.Data

Access.dll

ODP.NET

Unmanaged

DLLsOracle

OCI

UnmanagedManaged

NET

Database

Page 35: 1 Copyright © 2011, Oracle and/or its affiliates. All

35 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Forthcoming ODP.NET ArchitectureFully Managed

ODP.NET

Oracle.Managed

DataAccess.dllOracle

Managed Database

Page 36: 1 Copyright © 2011, Oracle and/or its affiliates. All

36 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

<Insert Picture Here>

Program Agenda

• Oracle and Microsoft

• Oracle and .NET – Getting Started

• Oracle Developer Tools for Visual Studio

• Oracle Data Provider for .NET

• Oracle Providers for ASP.NET

• Oracle .NET Stored Procedures

• Additional Oracle .NET features

Page 37: 1 Copyright © 2011, Oracle and/or its affiliates. All

37 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Oracle Providers for ASP.NET: Concepts

• Pre-built services to store website state into databases

• Easy to learn

– Based on standard ASP.NET provider APIs and schema

• Can be managed by IIS

– Membership and role information

• Installation

– Run PL/SQL scripts to create provider schemas

Page 38: 1 Copyright © 2011, Oracle and/or its affiliates. All

38 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Oracle Providers for ASP.NET: Components

• Eight providers available

– Cache Dependency Provider

– Membership Provider

– Profile Provider

– Role Provider

– Site Map Provider

– Session State Provider

– Web Parts Personalization Provider

– Web Events Provider

Page 39: 1 Copyright © 2011, Oracle and/or its affiliates. All

39 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Oracle Providers for ASP.NET: Components

• Administrators pick which providers to use

– One or more in any combination

Page 40: 1 Copyright © 2011, Oracle and/or its affiliates. All

40 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

<Insert Picture Here>

Program Agenda

• Oracle and Microsoft

• Oracle and .NET – Getting Started

• Oracle Developer Tools for Visual Studio

• Oracle Data Provider for .NET

• Oracle Providers for ASP.NET

• Oracle .NET Stored Procedures

• Additional Oracle .NET features

Page 41: 1 Copyright © 2011, Oracle and/or its affiliates. All

41 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Oracle Database Extensions for .NET

• Database option

– Windows only

– Both 32-bit and 64-bit supported

– Must have .NET Framework

• Oracle Database 10g Release 2 or later

Page 42: 1 Copyright © 2011, Oracle and/or its affiliates. All

42 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

C#,VB,C++

Server

Project

Assembly

foo.dll

(proc SP)

Build

Develop

Stored

Procedure,

SQL …

Client

Application

InvokeDeploy

Oracle Developer

Tools for VS.NET

Oracle Database Extensions for .NET

Oracle Developer Tools

for Visual Studio

Visual

Studio

Oracle Database

Extensions for .NET

Page 43: 1 Copyright © 2011, Oracle and/or its affiliates. All

43 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

<Insert Picture Here>

Program Agenda

• Oracle and Microsoft

• Oracle and .NET – Getting Started

• Oracle Developer Tools for Visual Studio

• Oracle Data Provider for .NET

• Oracle Providers for ASP.NET

• Oracle .NET Stored Procedures

• Additional Oracle .NET features

Page 44: 1 Copyright © 2011, Oracle and/or its affiliates. All

44 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

TimesTen Data Provider for .NET

• What is TimesTen

– Memory-optimized relational database for instant responsiveness

and very high throughput

– Deployed in application tier as an embedded or standalone DB

• Available with 11.2.0.2

• Supports ODP.NET classes, enumerations, interfaces,

delegates, and structures

Page 45: 1 Copyright © 2011, Oracle and/or its affiliates. All

45 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Additional Oracle .NET Capabilities

• Coherence

• Oracle Application Testing Suite

• Berkeley DB

• Oracle Business Process Management

• Grid Control Plug-Ins

• And more….

Page 46: 1 Copyright © 2011, Oracle and/or its affiliates. All

46 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

More Oracle .NET Resources

• .NET Technology Center– http://otn.oracle.com/dotnet

• For more questions

[email protected]

Page 47: 1 Copyright © 2011, Oracle and/or its affiliates. All

47 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Q&A

Page 48: 1 Copyright © 2011, Oracle and/or its affiliates. All

48 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Page 49: 1 Copyright © 2011, Oracle and/or its affiliates. All

49 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

49 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.

Insert Information Protection Policy Classification from Slide 8

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.

Page 50: 1 Copyright © 2011, Oracle and/or its affiliates. All

50 Copyright © 2011, Oracle and/or its affiliates. All rights

reserved.