SQL and PL/SQL Development and Leveraging Oracle Multitenant in Visual Studio. Christian Shay Product Manager, NET Technologies Oracle



Similar documents
PL/SQL Programming for.net Developers: Tips, Tricks, and Debugging

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

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

New 11g Features in Oracle Developer Tools for Visual Studio. An Oracle White Paper January 2008

Track and Keynote/Session Title 9:00:00 AM Keynote 11g Database Development Java Track Database Apex Track.Net Track. 09:30:00 AM with Oracle and

To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.

Oracle Database Public Cloud Services

Setting up the Oracle Warehouse Builder Project. Topics. Overview. Purpose

Configuring and Integrating Oracle

Oracle Database Cloud Services OGh DBA & Middleware Day

Microsoft Active Directory and Windows Security Integration with Oracle Database

SelectSurvey.NET Developers Manual

Visual Basic. murach's TRAINING & REFERENCE

Oracle Database 12c: New Features for Administrators

Deltek Costpoint New Installation Guide for Microsoft SQL Server

Aradial Installation Guide

Oracle Software. Hardware. Training. Consulting. Mythics Complete.

Getting Started with the Ed-Fi ODS and Ed-Fi ODS API

Setting up SQL Translation Framework OBE for Database 12cR1

Developing SQL and PL/SQL with JDeveloper

ORACLE DATABASE 12C: NEW FEATURES FOR ADMINISTRATORS GRADE CURRICULAR. Enterprise Manager Express home page versus Enterprise Manager Database Control

OBIEE Cloning. Cloning the OBIEE 11g database migration to a new host. Ashok Thiyagarajan ADVANS MARLBOROUGH, MA AND CHENNAI, INDIA

QUANTIFY INSTALLATION GUIDE

linux20 (R12 Server) R Single Node SID - TEST linux1 (10gAS Server) Oracle 10gAS ( ) with OID SID - asinf server name

<Insert Picture Here> Oracle on Windows and.net

Application Development With Data Studio

ICONICS Using the Azure Cloud Connector

Install and Configure Oracle Outlook Connector

Integration Service Database. Installation Guide - Oracle. On-Premises

Top 10 Oracle SQL Developer Tips and Tricks

Getting Started with Telerik Data Access. Contents

Rapid SQL 7.6 Evaluation Guide. Published: January 12, 2009

Oracle Database 12c Plug In. Switch On. Get SMART.

FileMaker 12. ODBC and JDBC Guide

EXAM PRO:Design & Develop Windows Apps Using MS.NET Frmwk 4. Buy Full Product.

Secure Messaging Server Console... 2

Using SQL Developer. Copyright 2008, Oracle. All rights reserved.

Oracle 12c Multitenant and Encryption in Real Life. Christian Pfundtner

<Insert Picture Here> Oracle SQL Developer 3.0: Overview and New Features

StreamServe Persuasion SP4

How To Set Up Safetica Insight 9 (Safetica) For A Safetrica Management Service (Sms) For An Ipad Or Ipad (Smb) (Sbc) (For A Safetaica) (

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

FileMaker 13. ODBC and JDBC Guide

FioranoMQ 9. High Availability Guide

NSi Mobile Installation Guide. Version 6.2

CLOUD COMPUTING & WINDOWS AZURE

Oracle SQL Developer for Database Developers. An Oracle White Paper June 2007

Microsoft Corporation. Project Server 2010 Installation Guide

Oracle SQL Developer for Database Developers. An Oracle White Paper September 2008

Reference Guide TEAM. Pogoplug Team. Reference Guide Cloud Engines Inc., All Rights Reserved.

Maximizing Performance for Oracle Database 12c using Oracle Enterprise Manager

Module 11 Setting up Customization Environment

Oracle Database 12c Upgrade Tools and Best Practices from Oracle Support

Net Developer Role Description Responsibilities Qualifications

Migrating Non-Oracle Databases and their Applications to Oracle Database 12c O R A C L E W H I T E P A P E R D E C E M B E R

Braindumps.C questions

Install and Configure Fusion Applications - DBA perspective. Masthan Babu Phani Kottapalli AST Corporation August 14, 2014

Click Studios. Passwordstate. Password Discovery, Reset and Validation. Requirements

VitalQIP DNS/DHCP & IP Address Management Software and Appliance Solution

Installing & Managing Databases with P6 Pro 8.2 February, Don McNatty Certified P6 Trainer/Consultant

How To - Implement Single Sign On Authentication with Active Directory

CitectSCADA V7.20 WebClient Quick Start Guide

FileMaker 11. ODBC and JDBC Guide

TIBCO Silver Fabric Continuity User s Guide

DeviceAnywhere Enterprise. ios Device Onboarding Guide

Adatbázis tesztkörnyezetek kialakítása. Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Copyright 2014 Oracle and/or its affiliates. All rights reserved.

Crystal Reports Installation Guide

Centralized Oracle Database Authentication and Authorization in a Directory

ResPAK Internet Module

RemoteLab 2.0 Admin Guide

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy

Oracle Forms 12c Change Begins Here

Debugging Export Connectors With Visual Studio.NET

Download and Installation of MS SQL Server

Adobe Marketing Cloud Bloodhound for Mac 3.0

PROJECTIONS SUITE. Database Setup Utility (and Prerequisites) Installation and General Instructions. v0.9 draft prepared by David Weinstein

Configuring and Managing a Private Cloud with Enterprise Manager 12c

Secret Server Installation Windows 8 / 8.1 and Windows Server 2012 / R2

Infor Cloud Printing Service Administration Guide

Active Directory Management. Agent Deployment Guide

Workshop for WebLogic introduces new tools in support of Java EE 5.0 standards. The support for Java EE5 includes the following technologies:

Security Compliance and Data Governance: Dual problems, single solution CON8015

Develop your Database using Database Projects from SQL Server Data Tools (SSDT)

ORACLE BUSINESS INTELLIGENCE WORKSHOP

Jabber MomentIM Outlook Add-in Administrator Guide

Oracle Database Cloud Service Rick Greenwald, Director, Product Management, Database Cloud

Wakanda Studio Features

Oracle Net Service Name Resolution

Rob Zoeteweij CUSTOMER CASE CONFIGURATION MANAGEMENT PROVISIONING & AUTOMATED PATCHING

Leveraging Rational Team Concert's build capabilities for Continuous Integration

EventSentry Overview. Part I Introduction 1 Part II Setting up SQL 2008 R2 Express 2. Part III Setting up IIS 9. Part IV Installing EventSentry 11

Windows Azure Pack Installation and Initial Configuration

Oracle Data Integration Solutions GoldenGate New Features Summary

Quick Deployment: Step-by-step instructions to deploy the SampleApp Virtual Machine v406

Oracle Database Cloud

Transcription:

SQL and PL/SQL Development and Leveraging Oracle Multitenant in Visual Studio Christian Shay Product Manager, NET Technologies Oracle Oracle Confidential Internal/Restricted/Highly Restricted

Program Agenda 1 2 3 PL/SQL Editing and Debugging in Visual Studio Schema Compare and Script Management Oracle Multitenant and Visual Studio

Oracle s.net Products Oracle Developer Tools for Visual Studio Tightly integrated Add-in for Visual Studio 2015, 2013, 2012 Oracle Data Provider for.net (ODP.NET) ADO.NET compliant data provider Utilize advanced Oracle Database features RAC, performance, security, data types, XML, etc. Both available for free download: http://otn.oracle.com/dotnet/

PL/SQL Editing and Debugging

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

Oracle PL/SQL Debugging Architecture Oracle Developer Tools for Visual Studio Visual Studio Environment VS sends requests to Oracle over TCP/IP connection: Step Into Please What are the local variable values? Set Breakpoint here Connect user/pass When connect to Oracle we pass: ORA_DEBUG_JDWP= host=hostname;port=portnum Oracle 10.2 or later PL/SQL Debugging Engine Does all the work of debugging

PL/SQL Debugging Configuration Can be tricky the first time since so many steps Check out the PL/SQL Debugging Chapter in ODT online doc Debugging Setup Checklist Work through the Oracle by Example demo: http://goo.gl/sxvz8w

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

PL/SQL Debugging Configuration GRANT debug privileges as SYSDBA GRANT DEBUG ANY PROCEDURE TO username 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 Server Explorer Server Explorer Icons change color to remind you to recompile later

PL/SQL Debugging Configuration New requirement in Oracle Database 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

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;

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

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

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

D E M O N S T R A T I O N Direct and App Debugging

External Application Debugging Dedicated VS instance for debugging PL/SQL only Use additional VS instance for any.net code (eg ASP.NET app) PL/SQL called by 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

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

Using DBMS_DEBUG_JDWP Package Allows you to pick and choose when debugging is turned on Good solution when PL/SQL packaged procedure is called often but you only are interested in debugging specific cases Enable External Application Debugging Provide port number and IP address

Using DBMS_DEBUG_JDWP Package Add calls to these PL/SQL Procedures to your SP: DBMS_DEBUG_JDWP.CONNECT_TCP(HOST VARCHAR2, PORT VARCHAR2) DBMS_DEBUG_JDWP.DISCONNECT Compile Debug Set Breakpoint Enable External Application Debugging Call SP from external application or middle tier

Schema Compare and Script Management

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

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

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

Offline Schema Compare in Visual Studio Running Database Instance Oracle Database Project V2 (SQL Scripts in source control)

Offline Schema Compare in Visual Studio Schema Comparison using SQL Scripts in Database Project New beta feature in Oracle Developer Tools for Visual Studio 12.1.0.2.4 Compare DBProjv2 against your live DB instance and view differences Generate deployment script to make live DB schema equal to DBProjv2 Automatically update DBProjv2 scripts to equal live DB

Offline Schema Compare Import your schema into DBProjv2 Creates a set of standardized SQL scripts, one for each SQL statement Only one SQL statement (CREATE) per file by convention Can be edited but only the single CREATE statement is honored by Schema Compare SQL Scripts can be added or deleted Check into source control Can Build a single Schema create script merging all the SQL scripts into one file Schema Compare Dialog updated to include DBProjv2 as source/target Generate Script and Update Target toolbar icons Can select specific Schema objects to update instead of the entire Schema

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

Oracle Multitenant and Visual Studio

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

Multitenant for Test and Development Clone Test system, plug into Development. Clone/destroy test instances

Multitenant is great for developers Very rapid cloning and creating database About as long as copying the database files (minutes) Using DBCA to create a database takes a long time Rapid sharing with other devs for testing Unplugged PDBs are an XML file and several DBF files Zip these up and share with other developers who can plug them in and be using them in minutes

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 Database Nodes 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

PDB Functionality 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 create TNSNAMES.ORA aliases or use EZ Connect Connect info for PDB is the same as container (host, port, etc) EXCEPT: service_name = pdb name

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

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

D E M O N S T R A T I O N Oracle Multitenant and Visual Studio

Additional Oracle.NET Resources OTN otn.oracle.com/dotnet Twitter twitter.com/oracledotnet YouTube youtube.com/oracledotnetteam Email christian.shay@oracle.com

Q+A

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 40

Oracle Confidential Internal/Restricted/Highly Restricted 41

Keep Learning with Oracle University Classroom Training Learning Subscription Live Virtual Class Training On Demand Cloud Technology Applications Industries education.oracle.com Oracle Confidential Internal 42