Top Banner
30

Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Mar 06, 2018

Download

Documents

vankiet
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database
Page 2: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Getting Started with Oracle and .NET

Alex Keh Senior Principal Product Manager Server Technologies November 17, 2015

Page 3: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Program Agenda

Oracle and Microsoft

Oracle and .NET – Getting Started

Oracle Developer Tools for Visual Studio

Oracle Data Provider for .NET

Additional Oracle .NET Features

1

2

3

4

5

Page 4: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle and Microsoft

Page 5: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle’s Commitment to .NET

2006 2002-03

.NET 1.x

2005

ODP .NET

ODT & .NET SP

64-bit ODAC

ODAC 2006

.NET 2.0 & VS 2005

2007

.NET 3.0

VS 2003

ODAC 2008

2007-08

ODAC 2009

2009

ODAC 11.2 R2

2010

.NET 4 & VS 2010

.NET 3.5 & VS 2008

ODAC 11.2 R4

2011

EF

2012

.NET 4.5 & VS 2012

ODAC 11.2 R5

2013

VS 2013 & Managed ODP.NET

ODAC 12c R1 & R2

ODAC 12c R3 & R4

2014-15

VS 2015, NuGet &

EF Code First

Page 6: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, 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)

• Event sponsorship – Microsoft TechEd/Ignite and Worldwide Partner Conference

• Joint training, road shows, collateral, etc.

Support • Microsoft Premier Support Agreement

• Collaboration of support teams

Page 7: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle and .NET Getting Started

Page 8: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle .NET Development Environment

Visual Studio

App Development Deploy

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 9: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Develop on Windows Run Database on any Platform

ODT and ODP.NET 12c

Windows

Linux

Solaris

Oracle DB 12c or 11g

Other

Visual Studio

Windows

Page 10: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle Developer Tools for Visual Studio

Page 11: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, 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 12: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle Data Provider for .NET

Page 13: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

ODP.NET Overview

• Implements standard ADO.NET

– In addition, includes 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.

• Download from OTN website or from NuGet – Note: NuGet download alone does not provide support for VS Designers

Page 14: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, 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 15: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

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

ODP.NET

Page 16: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

ODP.NET Architecture – Managed vs. Unmanaged

ODP.NET Oracle.ManagedDataAccess.dll

Oracle

Managed Layer

Database

Unmanaged Layer

ODP.NET Oracle.DataAccess.dll

Oracle

ODP.NET Unmanaged DLLs

Oracle DB Client

Page 17: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Key ODP.NET Features

• Connection pooling and performance counters

• Runtime Load Balancing: RAC and GDS

• Fast Connection Failover: RAC and GDS

• Transaction Guard

• Planned Outage

• Full PL/SQL support

– Packaged, non-packaged, anonymous, autonomous

– Batch SQL available with anonymous PL/SQL

Page 18: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Key ODP.NET Features

• Native Oracle data types

– REF Cursors, LOBs, XMLType, UDTs, arrays, etc.

– Boolean and Identity – New in ODAC 12c

• Performance – Self-tuning statement cache

– FetchSize and RowSize

– Client Result Cache

– Continuous Query Notification

– TimesTen In-Memory Database

Page 19: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Key ODP.NET Features

• Entity Framework and LINQ – Entity Framework 6 certification

– Code First and Code First Migrations

• Install/Deployment – Oracle Universal Installer – great for individual installs

– Xcopy – great for large deployments

– NuGet (ODP.NET, Managed Driver)

– MSI (ODP.NET, Managed Driver)

Page 20: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, 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 21: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, 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#

• More information – http://www.oracle.com/technetwork/topics/dotnet/index-085703.html

Page 22: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Additional Oracle .NET Features

Page 23: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle Providers for ASP.NET

• Pre-built services to store website state into databases

– Easy to configure for any DB, including Oracle

• Tightly integrated with existing ASP.NET services, controls, and tools

– DB use is nearly transparent to developer

• Easy to learn – Based on standard ASP.NET provider APIs and schema

• Installation

– Run PL/SQL scripts to create provider schemas

Page 24: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle Database Extensions for .NET

• Database feature

• Windows only

• Must have .NET Framework on DB server

Page 25: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, 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 26: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, 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 27: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Additional Oracle .NET Resources

OTN otn.oracle.com/dotnet

Twitter twitter.com/OracleDOTNET

YouTube youtube.com/OracleDOTNETTeam

Email [email protected]

Page 28: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Safe Harbor Statement

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.

Oracle Confidential – Internal/Restricted/Highly Restricted 28

Page 29: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 29

Page 30: Getting Started with Oracle and - DOAG Deutsche · PDF fileGetting Started with Oracle and .NET ... Access.dll Oracle ODP.NET ... –Microsoft’s ADO.NET provider for Oracle database