Getting Started with Oracle and .NET Christian Shay Eric Courville Product Manager Senior Member of Technical Staff Oracle Verizon Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted Program Agenda 1 Oracle and Microsoft 2 Oracle and .NET – Getting Started 3 Oracle Developer Tools for Visual Studio 4 Oracle Data Provider for .NET 5 Additional Oracle .NET Features Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle and Microsoft Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle’s Commitment to .NET ODP ODT & ODAC 64-bit ODAC ODAC ODAC ODAC ODAC ODAC 12c ODAC 12c .NET .NET SP 2006 ODAC 2008 2009 11.2 R2 11.2 R4 11.2 R5 R1 & R2 R3 & R4 2002-03 2005 2006 2007 2007-08 2009 2010 2011 2012 2013 2014-15 .NET VS .NET 2.0 & .NET .NET 3.5 & .NET 4 & EF .NET 4.5 & VS 2013 & VS 2015, 1.x 2003 VS 2005 3.0 VS 2008 VS 2010 VS 2012 Managed NuGet & EF Code First Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Relationship with Microsoft • Close collaboration with Microsoft Engineering teams Engineering • Access to pre-release Microsoft product drops • Visual Studio Industry Partner (VSIP) • Event sponsorship – MS Ignite and Worldwide Partner Marketing Conference • Joint training, road shows, collateral, etc. • Microsoft Premier Support Agreement Support • Collaboration of support teams Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle and .NET Getting Started Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle .NET Development Environment Oracle Developer Tools Oracle Data Provider Oracle Providers for for Visual Studio for .NET ASP.NET App Development Deploy Visual .NET Studio Framework Deploy Database Web or Development Client/Server Oracle Database Extensions for .NET Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Develop on Windows Run Database on any Platform ODT and Windows ODP.NET 12c Linux Visual Studio Solaris Windows Other Oracle DB 12c or 11g Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | OTN .NET Developer Center • http://otn.oracle.com/dotnet • Free ODAC downloads • White papers, articles, and tutorials • Demo and YouTube videos • Discussion forums • Request and vote on new features • Latest Oracle on .NET news Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | D E M O N S T R A T I O N OTN .NET Developer Center Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Developer Tools for Visual Studio 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 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Data Provider for .NET 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 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | ODP.NET Object Model Disconnected Connected Layer Data Layer (ODP.NET) Layer Oracle Oracle DataSet DataAdapter CommandBuilder Oracle Oracle DataReader Command Oracle Oracle Transaction Connection Oracle Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | ODP.NET Architecture ODP.NET Managed ODP.NET Oracle.Managed Oracle.Data Layer DataAccess.dll Access.dll ODP.NET Unmanaged Unmanaged DLLs Layer Oracle DB Client Database Oracle Oracle 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 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 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 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 • Deployment – Oracle Universal Installer – great for individual installs – Xcopy – great for large deployments – Web.deploy (Managed Driver) 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 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 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Additional Oracle .NET Features 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 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 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…. 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…. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Eric Courville Sr. Member Technical Staff • 16 Year IT Pro/DBA managing Oracle Financials, PeopleSoft, SAP • Founder of the Northern California PowerShell User Group (norcalposh.org) • Code available at github.com/organicit/OpenWorld2015-ODP.NET Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | PowerShell Training and Resources • Training links – http://www.microsoftvirtualacademy.com/ – http://www.pluralsight.com/ – http://itpro.tv • Forums/Blogs – http://powershell.org/wp/ – http://stackoverflow.com/search?q=powershell – http://blogs.technet.com/b/heyscriptingguy/ – http://www.powershellmagazine.com/ – http://powershell.com/cs/ Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | ODP.NET and PowerShell at Verizon • Perform CRUD operations from your PowerShell scripts • Inject Oracle data into your PowerShell Objects • Process web services from Cmdlets such as invoke-webrequest and invoke- restmethod • Deploy PowerShell monitoring scripts and load results into tables via ODP.NET Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Getting Started • Deploy via Nuget, Xcopy, Full install • Leverage the Add-Type Cmdlet to reference the ODP.NET dll • Use New-Object to capture your results into custom PS Objects for reuse later. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Example $ODPDll = "C:\oracle\odp.net\managed\common\Oracle.ManagedDataAccess.dll" Add-Type -Path $ODPDll $con = New-Object Oracle.ManagedDataAccess.Client.OracleConnection("User Id=<username>;Password=<password>;Data Source=<hostname>/<SID>") $con.Open() $cmd=$con.CreateCommand() $cmd.CommandText="select URL_NAME, URL_URI, APP_NAME from CMDB.WEB_LINKS" $rdr=$cmd.ExecuteReader() while ($rdr.Read()) {$rdr.GetString(0) + $rdr.GetString(1) } #rdr.NextResult() $con.Close() Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Upcoming .NET Sessions • What’s New for Oracle and .NET – Today - 5:15 PM - 6:00 PM Moscone South – 305 • Oracle and.NET Best Practices for Performance – Wednesday – 4:15 PM – 5:00 PM Moscone South – 254 • Deep-Dive into Oracle Data Provider for .NET, Managed Driver; and Entity Framework – Thursday – 12:00 PM – 12:45 PM Moscone South – 303 • SQL and PL/SQL Development and Leveraging Oracle Multitenant in Visual Studio • Thursday – 1:15 PM – 2:00 PM Moscone South – 303 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Demogrounds • Visit .NET experts at the OOW Demogrounds: .NET Development for Oracle Database 12c – Open through Wednesday – Moscone
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages40 Page
-
File Size-