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

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

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

Best Practices for Performance Part 2.NET and Oracle Database

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

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.

What s New for.net Developers in Oracle Database

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

Getting Started with Oracle and.net

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

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

Best Practices for Performance Part 1.NET and Oracle Database

Best Practices for Performance

Getting Started with Oracle and.net

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

Moving Databases to Oracle Cloud: Performance Best Practices

Oracle Database 12c R2: Administration Workshop Ed 3 NEW

Oracle Database 12c R2: Administration Workshop Ed 3

Course: Oracle Database 12c R2: Administration Workshop Ed 3

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

What s New for Oracle Database 11gR2 on Windows?

Managing Oracle Database 12c with Oracle Enterprise Manager 12c

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

ORACLE DBA I. Exploring Oracle Database Architecture

Oracle12c Release 1 New Features for Administrators (5 Days)

OpenWorld 2018 SQL Tuning Tips for Cloud Administrators

Oracle - Oracle Database 12c R2: Administration Workshop Ed 3

Oracle Database 12c: Performance Management and Tuning

Oralogic Education Systems

Oracle Database 12c R2: Managing Multitenant Architecture Ed 2

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

Oracle Database 12c R2: New Features for Administrators Part 1 Ed 1

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

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

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

Enterprise Manager: Scalable Oracle Management

Oracle Database 18c and Autonomous Database

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

Oracle Database 12c: New Features for Administrators (40 hrs.) Prerequisites: Oracle Database 11g: Administration Workshop l

"Charting the Course... Oracle 18c DBA I (3 Day) Course Summary

"Charting the Course... Oracle 12c New Features for Administrators. Course Summary

Using Automatic Workload Repository for Database Tuning: Tips for Expert DBAs. Kurt Engeleiter Product Manager

EZY Intellect Pte. Ltd., #1 Changi North Street 1, Singapore

Real Application Security Administration

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

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

Oracle Database 12c. Boeblingen Bootcamp February 2014 SIG Washington DC April 2014

1z0-062.exam.215q 1z0-062 Oracle Database 12c: Installation and Administration

Oracle Database 12c: Administration Workshop Ed 2

Oracle Database 12c: Administration Workshop Ed 2

APEX Times Ten Berichte. Tuning DB-Browser Datenmodellierung Schema Copy & Compare Data Grids. Extension Exchange.

In the Oracle Database 12c: Performance Management and

Oracle Database. Installation and Configuration of Real Application Security Administration (RASADM) Prerequisites

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

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

Oracle 1Z0-417 Exam Questions and Answers (PDF) Oracle 1Z0-417 Exam Questions 1Z0-417 BrainDumps

Toad for Oracle Suite 2017 Functional Matrix

Oracle Application Express: Administration 1-2

Session id: The Self-Managing Database: Guided Application and SQL Tuning

Safe Harbor Statement

"Charting the Course... Oracle 18c DBA I (5 Day) Course Summary

Behind the scenes of Oracle MulCtenant

Data Integration and ETL with Oracle Warehouse Builder

Database Performance Analysis Techniques Using Metric Extensions and SPA

Oracle 1Z Oracle Database 12c - Installation and Administration. Download Full version :

Oracle Database 12c R2: New Features for 12c R1 Administrators Ed 1

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

PERFORMANCE TUNING TRAINING IN BANGALORE

Oracle Database 12c R1: New Features for Administrators Ed 2

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

<Insert Picture Here>

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

Oracle 12C Administration Course Content:

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services

Oracle Database 12c: New Features for Administrators NEW

Exploring Oracle Database 12c Multitenant Best Practices for your Cloud Ami Aharonovich

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

1Z Oracle Database Performance and Tuning Essentials 2015 Exam Summary Syllabus Questions

Lab4 - Managing Database Storage Structures Using Enterprise Manager Database Express

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

An Oracle White Paper October Deploying and Developing Oracle Application Express with Oracle Database 12c

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

Oracle Database 12c: Administration Workshop Ed 2 NEW

Oracle Database 12c: Administration Workshop Duration: 5 Days Method: Instructor-Led

Oracle Database: SQL and PL/SQL Fundamentals

Exploring Oracle Database 12c Multitenant Best Practices for your Cloud

Manually Create Sql Profile Oracle 10g

Manage Change With Confidence: Upgrading to Oracle Database 11g with Oracle Real Application Testing

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

Oracle Database 11g for Experienced 9i Database Administrators

Oracle Database Cloud for Oracle DBAs Ed 3

Oracle 1Z0-497 Exam Questions and Answers (PDF) Oracle 1Z0-497 Exam Questions 1Z0-497 BrainDumps

D78846GC30 - Oracle Database 12c R2: Administration Workshop Ed 3

Oracle Database 12c: New Features for Administrators Duration: 5 Days

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

RAC Performance Monitoring and Diagnosis using Oracle Enterprise Manager. Kai Yu Senior System Engineer Dell Oracle Solutions Engineering

<Insert Picture Here> DBA s New Best Friend: Advanced SQL Tuning Features of Oracle Database 11g

<Insert Picture Here> DBA Best Practices: A Primer on Managing Oracle Databases

Oracle12c Release 1 & 2 New Features for Administrators (5 Days)

Transcription:

1

ALM with Visual Studio: SQL and PL/SQL Development, Source Control, and Deployment Christian Shay Product Manager, Oracle

Program Agenda SQL and PL/SQL Development Lifecycle Overview Create Development Database - Oracle Multitenant Create Users, Roles and Grant Privileges Creating Schema Objects Visual Studio Source Control Integration PL/SQL and SQL Editing SQL and Performance Tuning PL/SQL Debugging in Visual Studio Schema Compare and Deployment <Insert Picture Here> 3

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

Oracle.NET Development Environment Oracle Developer Tools for Visual Studio Visual Studio Application Development.NET Framework Oracle Data Provider for.net Deploy Database Development Deploy Web or Client/Server Oracle Database Extensions for.net Oracle Providers for ASP.NET 5

Oracle Application Development Lifecycle Create Development Database.NET Coding Deploy Tune PL/SQL and SQL Editing/Debug Test Source Control 6

Application Development Lifecycle Overview Oracle Developer Tools for Visual Studio Tightly integrated Add-in for Visual Studio 2012 and 2010 ODP.NET ADO.NET compliant data provider Native access to Oracle database Utilize advanced Oracle Database features RAC, performance, security, data types, XML, etc. Both available for free download today http://otn.oracle.com/dotnet 7

Create Development Database SQL Plus script Oracle Multitenant 8

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

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

PDB Functionality in Server Explorer Pluggable Databases Node New pluggable database: Fast provisioning from the seed Plug: Plug in an XML file and some DBFs Pluggable Databases Node Clone: Fast copy Unplug: Removes PDB from CDB and creates XML manifest Open, Close: Equivalent to Startup and Shutdown Delete: Removes PDB from CDB and deletes files 11

Connect to PDBs in Server Explorer Server Explorer connections automatically made to new or cloned pluggable databases TNSNAMES.ORA updated and connection to ADMIN made No Server Explorer connection made when plugging in Need to update TNSNAMES.ORA Connect descriptor same as container, but service_name = pdb name 12

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

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

Create Users, Roles and Grant Privileges User Designer Role Designer Grant and Revoke Privileges Dialog 15

D E M O N S T R A T I O N User/Role Designer Privileges Wizard 16

Create Schema Objects Oracle Wizards Table Designer PL/SQL Package Wizard Table Import Wizard to import data..many others (one Wizard/Designer for every schema type) Query Window Run SQL*Plus Script 17

D E M O N S T R A T I O N Creating Schema Objects 18

Visual Studio Source Control Integration Configure Source Control in Visual Studio Oracle Database Project Generate Create Script to Source Control 19

D E M O N S T R A T I O N Source Control Integration 20

PL/SQL and SQL Editing Oracle PL/SQL Editor database based Collapsible Regions Syntax Coloring Integrated Online Help Supports Debugging Oracle SQL Editor file based 21

D E M O N S T R A T I O N SQL and PL/SQL Editors 22

Performance Tuning in Visual Studio SQL Tuning Advisor Use when designing new SQL statements Tune ad-hoc SQL statements in Query Window Tune bad SQL found by Oracle Performance Analyzer Use if SQL is performing poorly under load 23

SQL Tuning Advisor Requirements ADVISOR privilege Oracle Database license for Oracle Diagnostic Pack Oracle Database license for the Oracle Tuning Pack How to run: Oracle Query Window Tune SQL button Oracle Performance Monitor Tune SQL button 24

SQL Tuning Advisor Implement Findings Button Automatically fix the problem for certain finding types View Report Button View more details about how to fix a problem 25

Performance Tuning in Visual Studio Oracle Performance Analyzer Detects performance issues in an application s use of the database under load Requirements SYSDBA Oracle Database license for Oracle Diagnostic Pack Can be use during testing Can be also used on production applications 26

D E M O N S T R A T I O N SQL Tuning Advisor 27

Oracle Performance Analyzer 28

Oracle Performance Analyzer Simple to use Run your application Enter amount of time to analyze Press Start to start timer Sufficient database time required to get results View findings and actions Implement recommended actions 29

AWR and ADDM Built into the Oracle Database 10g Automatic Workload Repository (AWR) Evolution of statspack Built-in repository Captures performance statistics at regular intervals Automatic Database Diagnostic Monitor (ADDM) Methodically analyses captured AWR stats Generates recommendations 30

AWR and ADDM AWR Snapshots A collection of database statistics and performance metrics gathered at a single point in time. Two snapshots make up one analysis time period Oracle Database automatically takes periodic snapshots ADDM Tasks An analysis of Oracle database performance over a period of time Requires two AWR Snapshots to define that time period 31

AWR and ADDM in Visual Studio AWR Snapshots New AWR Snapshot Dialog AWR Snapshots Node in Server Explorer ADDM Tasks New ADDM Task Dialog ADDM Tasks Node in Server Explorer ADDM Task results are displayed in Oracle Performance Analyzer 32

D E M O N S T R A T I O N Performance Analyzer 33

Oracle Performance Analyzer Manual Method, instead of using Timer Run your application Create a Snapshot, via New AWR Snapshot dialog Wait desired time period Create second snapshot Create ADDM Task, via New ADDM Task dialog View Results. If insufficient database time, wait a while and create one more snapshot and another ADDM task 34

Oracle Performance Analyzer Manual Method Pros Can close Visual Studio during time period If insufficient database time, you can extend the time period by creating one more snapshot, without having to wait entire duration again Can use database created AWR Snapshots if desired Can elect to monitor all statistics when creating the snapshots 35

PL/SQL Debugging - Configuration GRANT debug privileges as SYSDBA 9.2 or later: GRANT DEBUG ANY PROCEDURE TO username, and 10g or later also requires: GRANT DEBUG CONNECT SESSION TO username Set port range and IP in Debugging Options page Tools -> Options->Oracle Developer Tools Compile PL/SQL units for Debug Via menu in PL/SQL editor or in Oracle Explorer 36

PL/SQL Debugging - Configuration New requirement in 12c: SYSDBA must grant ACL access on IP Address Port Range Schema name Use new Grant Debugging Privileges dialog Right click on Schema name to be granted both debugging roles and the ACL privileges 37

PL/SQL Debugging - Configuration Or issue this PL/SQL as SYSDBA: BEGIN DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE( HOST => 127.0.0.1', LOWER_PORT => 65000, UPPER_PORT => 65300, ACE => XS$ACE_TYPE(PRIVILEGE_LIST => XS$NAME_LIST('jdwp'), PRINCIPAL_NAME => 'HR', PRINCIPAL_TYPE => XS_ACL.PTYPE_DB)); END; 38

Direct Database Debugging Debug directly inside the database, no application code Step Into from Server Explorer Run Debug from Server Explorer Enter parameters manually Not useful with array parameters or complex types 39

Application Debugging Mode Step from.net code into PL/SQL and back from one instance of Visual Studio Useful for client server code (not web apps) Check off Tools -> Oracle Application Debugging ODT automatically starts listener using port in range given in Options page Uncheck "Enable the Visual Studio hosting process" in the.net Project Properties Debug tab 40

External Application Debugging Dedicated VS instance for debugging PL/SQL only Use additional VS instance for any.net code (eg ASP.NET app) 10.2 client or later running on ANY platform Set ORA_DEBUG_JDWP in client environment SET ORA_DEBUG_JDWP=host=mymachine;port=4444 Set in web app environment BEFORE connecting Start Listener Tools-> Start Oracle External Application Debugger 41

D E M O N S T R A T I O N PL/SQL Debugging 42

Deployment Run create scripts Run diff scripts Schema Compare Plug Development PDB into Production CDB Oracle Multitenant 43

Using PDBs for Deployment Unplug from development/test environment Plug into production environment 44

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 (eg compare all tables, or all packages, etc) 45

Schema Compare View Differences 46

Schema Compare Typical Use Case of Visual Studio Developer Development schema identical to production schema Development schema evolves to meet needs of app Use Schema Compare to inspect what has changed Use Schema Compare to generate diff script Deploy diff script with app 47

D E M O N S T R A T I O N Schema Compare 48

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 49

Additional Oracle.NET Resources OTN.NET Developer Center http://otn.oracle.com/dotnet Twitter @OracleDOTNET YouTube http://www.youtube.com/user/oracledotnetteam For more questions christian.shay@oracle.com 50

Conclusion and Q & A 51

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

53

54