Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Similar documents
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Oracle and.net Introduction and What s New. Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Best Practices for Performance Part 1.NET and Oracle Database

Getting Started with Oracle and.net

Getting Started with Oracle and.net

What s New for.net Developers in Oracle Database

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

PL/SQL Programming for.net Developers: Tips, Tricks, and Debugging. Christian Shay Product Manager, Oracle

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

Best Practices for Performance Part 2.NET and Oracle Database

Oracle and.net: Best Practices for Performance. Christian Shay & Alex Keh Product Managers Oracle October 28, 2015

Best Practices for Performance

Using.NET Core and Entity Framework Core Linux/Windows with Oracle Database

<Insert Picture Here> Getting Started with Oracle and.net

<Insert Picture Here> What's New for.net Developers for Oracle Database

What s New with Oracle Database 12c on Windows: On-Premises and in the Cloud

What s New for Oracle Database 11gR2 on Windows?

Consolidate and Prepare for Cloud Efficiencies Oracle Database 12c Oracle Multitenant Option

Pro ODP.NET for Oracle. Database 11 g. Edmund Zehoo. Apress

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into

Oracle Data Provider for.net Microsoft.NET Core and Entity Framework Core O R A C L E S T A T E M E N T O F D I R E C T I O N F E B R U A R Y

Maximum Availability Architecture (MAA): Oracle E-Business Suite Release 12

ZDLRA High Availability for Backup and Recovery

<Insert Picture Here> Scale your PHP Application to Tens of Thousands of Connections

Multitenancy and Continuous Availability for Java Applications Oracle Database 18

Oracle Multitenant What s new in Oracle Database 12c Release ?

The Fastest and Most Cost-Effective Backup for Oracle Database: What s New in Oracle Secure Backup 10.2

<Insert Picture Here> Maximizing Database Performance: Performance Tuning with DB Time

Create a DBaaS Catalog in an Hour with a PaaS-Ready Infrastructure

2008 Oracle Corporation

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8

This presentation is for informational purposes only and may not be incorporated into a contract or agreement.

Putting Oracle Database 11g to Work for Java. Kuassi Mensah Group Product Manager, Java Platform Group db360.blogspot.com

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Introduction to Web Development with Microsoft Visual Studio 2010

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12

Oracle Database 18c and Autonomous Database

New Features PowerBuilder 12.0

Successful Upgrade Secrets: Preventing Performance Problems with Database Replay

10267 Introduction to Web Development with Microsoft Visual Studio 2010

What every DBA needs to know about JDBC connection pools Bridging the language barrier between DBA and Middleware Administrators

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13

Announcing Oracle Secure Backup 10.3: Fastest, Most Cost-Effective Oracle Backup

WLS Neue Optionen braucht das Land

SQL Gone Wild: Taming Bad SQL the Easy Way (or the Hard Way) Sergey Koltakov Product Manager, Database Manageability

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13

Developing Web Applications Using Microsoft Visual Studio 2008 SP1

Oracle Database 12c Release 2

Oracle Enterprise Data Quality - Roadmap

DBAs can use Oracle Application Express? Why?

Oracle Net Services 12c Best Practices for Database Performance and Scalability

Connecting your Microservices and Cloud Services with Oracle Integration CON7348

Developing Microsoft Azure Solutions: Course Agenda

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here> Maximum Availability Architecture (MAA) Best Practices: Online Patching and Rolling Upgrades with Oracle Database

<Insert Picture Here> Oracle SQL Developer: PL/SQL Support and Unit Testing

1Z Upgrade to Oracle Database 12cm Exam Summary Syllabus Questions

NoSQL + SQL = MySQL Get the Best of Both Worlds

Safe Harbor Statement

Moving Databases to Oracle Cloud: Performance Best Practices

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

Oracle APEX 18.1 New Features

Enterprise Manager: Scalable Oracle Management

Mobile Application Development: Introducing ADF Mobile Native Client Framework

RACifying Multitenant

DE Introduction to Web Development with Microsoft Visual Studio 2010

Global Data Services (GDS)

Oracle Database: SQL and PL/SQL Fundamentals

Introduction to Oracle Objects

Trouble-free Upgrade to Oracle Database 12c with Real Application Testing

1Copyright 2012, Oracle and/or its affiliates. All rights reserved.

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Application High Availability with Oracle

Introduction to Web Development with Microsoft Visual Studio 2010

Course Outline. Lesson 2, Azure Portals, describes the two current portals that are available for managing Azure subscriptions and services.

Managing Oracle Database 12c with Oracle Enterprise Manager 12c

Exadata Implementation Strategy

Understanding Oracle RAC ( ) Internals: The Cache Fusion Edition

Oracle Client HA Configuration with Oracle

Copyright 2018, Oracle and/or its affiliates. All rights reserved.

Oracle Real Application Clusters (RAC) 12c Release 2 What s Next?

Oracle Database 11g Production Case Study: Porting to Oracle Database 11 - Tips, Techniques, and Experiences

An Oracle Technical White Paper September Oracle VM Templates for PeopleSoft

TipsandTricks. Jeff Smith Senior Principal Product Database Tools, Oracle Corp

Personalized Experiences Enabled Through Extensibility

Oracle Corporation

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio

Oracle Database 11g: RAC Administration Release 2 NEW

<Insert Picture Here> Active Directory and Windows Security Integration with Oracle Database

This presentation is for informational purposes only and may not be incorporated into a contract or agreement.

Help Us Help You - TFA Collector and the Support Tools Bundle

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

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

WebLogic Active GridLink: Intelligent integration between WebLogic Server and Oracle Database Real Application Clusters

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

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

Transcription:

1

What s New For Oracle and.net Alex Keh Senior Principal Product Manager

Program Agenda Supported Oracle Database 12c Features Oracle Multitenant High Availability and Scalability Ease of Use and Application Migration Entity Framework Schema Compare and Tools 3

Program Agenda ODP.NET, Managed Driver Current and Future ODAC Releases 4

Oracle Multitenant New in Oracle Database 12c 5

Multitenant Architecture Components of a Multitenant Container Database (CDB) PDBs Pluggable Databases (PDBs) Root CDB 6

Multitenant for Test and Development Clone production, plug into development. Clone/destroy test instances 7

Deployment Unplug from development/test environment Plug into production environment 8

Oracle Multitenant in Visual Studio 9

PDB Functionality in Server Explorer Pluggable Databases Node Menu: New pluggable database, Plug Pluggable Databases Node Menu: Clone, Unplug, Open, Close, Delete Server Explorer connections automatically made to new or cloned pluggable databases 10

Oracle Multitenant in Visual Studio 11

Oracle Multitenant with ODP.NET ODP.NET works implicitly with PDBs Connect to the PDB service name Hostname and port are same as container Requires Oracle Database 12c and ODAC 12c 12

For More Information Oracle OpenWorld session ALM with Visual Studio: SQL and PL/SQL Development, Source Control, and Deployment CON8889 Wednesday, September 25, 3:30 PM - 4:30 PM Marriott Marquis - Golden Gate C2 13

High Availability and Scalability New in Oracle Database 12c 14

Global Data Services Extend RAC services to a global basis Access to FCF, load balancing, and affinity capabilities RAC, Active Data Guard, and GoldenGate can participate Benefit Optimizes utilization, HA, and performance No code changes Requires Oracle Database 12c and ODP.NET 12c 15

Global Data Services Concepts Sales Service Sales Service Sales Global Service GoldenGate GoldenGate Without GDS With GDS 16

Faster and More Graceful Planned Outage Offline DB alerts ODP.NET of impending downtime ODP.NET stops allocating and closes idle connections Connections returned to the pool are closed Benefit DB brought offline as quickly as possible without end user disruptions Set ODP.NET attribute HA Events = true Requires Oracle Database 12c and ODP.NET 12c 17

Transaction Guard ODP.NET can determine whether a transaction committed even upon a DB failure Benefit Ensures transaction commits at most once App can query transaction outcome OracleConnection properties return transaction ID and status OracleLogicalTransactionStatus class Requires Oracle Database 12c and ODP.NET 12c 18

Recoverable Error Detection and Recovery After DB error, ODP.NET determines if failed transaction is recoverable or not Returns error message if operation cannot be retried OracleException.IsRecoverable property indicates if transaction recoverable and can be retried Benefit Determine with certainty whether can rollback or resubmit Requires Oracle Database 12c and ODP.NET 12c 19

Transaction Guard Scenario 1. ODP.NET receives FAN down event or error. 2. IsRecoverable=false roll back. IsRecoverable=true re-submit. 3. To re-submit, retrieve LogicalTransactionId. 4. Obtain new session and retrieve txn status. 5. If committed and completed, done. If not committed nor completed, re-submit. 20

ODP.NET FAN Uses ONS Oracle Notification Service (ONS) replaces AQ Benefits Faster, more scalable, eliminates firewall issue, supports Active Data Guard, and consolidates publish/subscribe service No code changes required But configuration changes required Managed and unmanaged always uses ODP.NET 12c Except unmanaged with Oracle DB 11.2 or earlier 21

Ease of Use and Application Migration New in Oracle Database 12c 22

Boolean Data Type ODP.NET OracleBoolean data type Can be used with PL/SQL Booleans Benefit Eases parameter binding Stored procedures Entity Framework Function Imports 23

Identity Column DB automatically increments for next value as needed Supports ANSI s IDENTITY keyword Benefit Easier to set up auto incrementing values (e.g. primary keys) Integrated with ODT and ODP.NET E.g. ODT: Create table with auto-incrementing Identity column E.g. ODP.NET: Add row without explicitly providing identity value 24

Large VARCHAR2, NVARCHAR2, and RAW ODP.NET VARCHAR2, NVARCHAR2, and RAW data types now can be up to 32 KB in size Benefit Continue using fundamental data types even with larger data No need to modify schema or use more advanced type 25

Return Row Count Per Array DML Iteration ODP.NET returns number of rows affected for each input value, not just the total number of rows affected New OracleCommand.ArrayBindRowCount property Returns number of affected rows for each executed array bound DML iteration Benefit Provides more info on DML correctness and efficiency 26

Enhanced Implicit REF CURSOR (RC) ODP.NET retrieves result set without explicit RC declaration nor metadata in.net config Can retrieve multiple implicit RCs ExecuteNonQuery Returns array of RCs ExecuteReader Returns DataReader, each accessible via calling NextResult Benefit Simplifies retrieving result sets from PL/SQL 27

Enhanced Implicit REF CURSOR (RC) Calling DBMS_SQL.RETURN_RESULT(cursor) Returns RC implicitly to ODP.NET Intended to support DBs and apps migrated to Oracle Entity Framework Still requires RC metadata, but new auto-generation feature 28

Entity Framework 29

Entity Framework - Implicit RC RC metadata can be automatically generated specifically for EF implicit result sets Steps 1. While in EF project, run stored procedure in Server Explorer 2. Check off Select for Config box(es) 3. Click Add to Config button Benefit Eliminates hand-coding metadata thereby increasing productivity 30

D E M O N S T R A T I O N EF: RC Metadata Auto Generation 31

New Entity Framework Features All DB versions Implicit RC automatic metadata generation Boolean Oracle DB 12c and higher Identity column SQL APPLY keyword for lateral views 32

Schema Compare and Tools 33

Schema Compare Tool in Visual Studio New in Oracle Developer Tools for Visual Studio ODAC 12c Oracle Database 10.2 or higher Compare two schemas in the same or different DBs Visually inspect differences using UI Generate a diff script for deployment purposes Reverse schema compare to rollback changes Can compare down to granularity of schema type e.g. compare all tables, or all packages, etc. 34

Schema Compare View Differences 35

Schema Compare Typical Use Case of Visual Studio Developer 1. Development schema identical to production schema 2. Development schema evolves to meet needs of app 3. Use Schema Compare to inspect what has changed 4. Use Schema Compare to generate diff script 5. Deploy diff script with app 36

For More Information Oracle OpenWorld session ALM with Visual Studio: SQL and PL/SQL Development, Source Control, and Deployment CON8889 Wednesday, September 25, 3:30 PM - 4:30 PM Marriott Marquis - Golden Gate C2 37

Automated ODP.NET Connection Configuration OUI copies tnsnames.ora and sqlnet.ora files from an existing Oracle Home into the new ODAC home If no existing Oracle Home present, OUI will ask for database alias and connectivity info 38

Automated ODT Connection Configuration Server Explorer Connection Dialog Added EZ Connect connection type For TNS Retrieves current tnsnames.ora aliases in current Oracle Home Use aliases defined in other Oracle Homes 1. Dialog to search for tnsnames.ora in other homes 2. Once found, available aliases displayed 3. ODT copies aliases over to current tnsnames.ora 39

Managed ODP.NET 40

Current ODP.NET Architecture Managed and Unmanaged Managed Unmanaged Database ODP.NET Oracle.Data Access.dll ODP.NET Unmanaged DLLs OCI NET Oracle 41

Forthcoming ODP.NET Architecture Fully Managed Managed Database ODP.NET Oracle.Managed DataAccess.dll Oracle 42

Managed ODP.NET vs. Unmanaged ODP.NET Benefits One assembly for both 32-bit and x64 Easier side by side deployment Deploy smaller and fewer binaries Before: 150 MB After: Less than 10 MB Easier patching process Fully integrated with Code Access Security 43

Managed ODP.NET 100% managed provider Assembly Oracle.ManagedDataAccess.dll No other Oracle Client files required Unless using distributed transactions Namespaces Oracle.ManagedDataAccess.Client Oracle.ManagedDataAccess.Types 44

Managed ODP.NET Same assembly for either 32-bit and x64 Windows Can be deployed side by side With unmanaged ODP.NET With managed ODP.NET Installable via OUI and xcopy 45

Managed ODP.NET Certification Certified with.net Framework 4 and 4.5 Visual Studio 2010 and 2012 Windows Client: 7 and 8 Server: 2008, 2008 R2, and 2012 Supports Oracle DB 10.2 and higher 46

D E M O N S T R A T I O N Hello (Managed) World 47

Managed ODP.NET Features Standard ADO.NET provider objects, methods, and properties Oracle Developer Tools for Visual Studio Server Explorer connections Drag and drop code generation Connection pooling features Min, Max, Timeout, Lifetime, Increment, Decrement RAC Load Balancing and Fast Connection Failover Performance counters 48

Managed ODP.NET Features Full SQL or PL/SQL Entity Framework ODT and ODP.NET Native Oracle data types REF Cursor, LOBs, Date, String, Decimal, Binary, TimeStamp, etc. SecureFiles/LOB and LONG retrieval APIs Oracle data types in DataSet Self-tuning 49

Distributed Transactions Requires an additional managed DLL (for now) Oracle.ManagedDataAccessDTC.dll Only needed if using distributed transactions Provides enlistment and commit services Implicitly loaded Recovery services via unmanaged Windows service Two DLL versions with same name One for 32-bit and one for x64 Must match 32-bit or 64-bit COM calls 50

Managed ODP.NET vs. Unmanaged ODP.NET Features Unavailable in First Release User defined types Oracle-specific XML features and data types Advanced Queuing Client Result Cache BulkCopy Transaction Guard 51

Managed ODP.NET Deployment Concepts Option 1: single configuration file deployment.net config file contains TNS, SQL*Net, and LDAP settings i.e. Machine.config, web.config, app.config Option 2: multi-file configuration.net config file Tnsnames.ora, sqlnet.ora, and ldap.ora Option 3: no configuration files Store connect info in Data Source attribute 52

D E M O N S T R A T I O N Deploying Managed ODP.NET 53

Unmanaged to Managed Migration Application migration process 1. Replace Oracle.ManagedDataAccess.dll reference to project 2. Modify namespace(s) to Managed ODP.NET 3. Change.NET config settings for Managed ODP.NET Include *.ora file settings Managed ODP.NET APIs same as ODP.NET APIs Initially, Managed ODP.NET does not support all ODP.NET features Plan is eventual feature parity 54

Current and Future ODAC Releases 55

Current ODAC Releases Oracle Database 12c Release 1 Managed ODP.NET High availability Ease of development Oracle Multitenant data access ODAC 12c Release 1 Oracle Schema Compare Oracle Multitenant tools Managed ODP.NET only download 56

Upcoming ODAC Releases ODAC 12c Release 2 End of 2013/Beginning of 2014 Visual Studio 2013.NET Framework 4.5.1 Post-ODAC 12c Release 2 Release timeframe TBD More Entity Framework features Add more data types to managed ODP.NET 57

Conclusion and Q & A 58

Additional Oracle.NET Resources OTN otn.oracle.com/dotnet Twitter twitter.com/oracledotnet YouTube youtube.com/oracledotnetteam Email alex.keh@oracle.com 59

Upcoming.NET Sessions Tuesday Sept 24 PL/SQL Programming for.net Developers: Tips, Tricks, and Debugging 3:45 PM - 4:45 PM, Marriott Marquis - Golden Gate C2 60

Upcoming.NET Sessions Wednesday Sept 25 ALM with Visual Studio: SQL and PL/SQL Development, Source Control, and Deployment 3:30 PM - 4:30 PM, Marriott Marquis - Golden Gate C2 Oracle Database 12c on Windows 5:00 PM 6:00 PM, Moscone South - 104 61

Upcoming.NET Sessions Thursday Sept 26 Hands-on Lab: Building.NET Applications with Oracle 11:00 AM - 1:30 PM, Marriott Marquis - Salon 3/4 Oracle and.net: Best Practices for Performance and Deployment 2:00 PM - 3:00 PM, Marriott Marquis - Golden Gate C2 62

Visit.NET Experts at the Demogrounds Monday through Wednesday.NET Development for Oracle Database 12c Moscone South, Left Rear in Oracle Database Section Booth # SL-044 63

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. 64

65

66