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

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

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

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

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

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

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

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

Toad for Oracle Suite 2017 Functional Matrix

<Insert Picture Here> Oracle SQL Developer Data Modeler 3.0: Technical Overview

SQL Developer. 101: Features Overview. Jeff Smith Senior Principal Product Database Tools, Oracle Corp

Oracle SQL Developer & REST Data Services

David Peake Product Manager Oracle Application Express. October Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Oracle APEX 18.1 New Features

Oracle Developer Day

Rapid SQL 7.5 Evaluation Guide. Published: September 28, 2007

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

Overview. Principal Product Manager Oracle JDeveloper & Oracle ADF

Rapid Application Development with APEX 5.0

Using SQL Developer. Oracle University and Egabi Solutions use only

<Insert Picture Here>

Embarcadero PowerSQL 1.1 Evaluation Guide. Published: July 14, 2008

SQL Developer Oracle Migration Workbench Taking Database Migration to the next level

<Insert Picture Here> Looking at Performance - What s new in MySQL Workbench 6.2

Oracle Application Express 5 New Features

Oracle Data Integrator 12c New Features

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

Oracle Application Express

An Oracle White Paper April Oracle Application Express 5.0 Overview

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

Contents I Introduction 1 Introduction to PL/SQL iii

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

DB2 for z/os Stored Procedure support in Data Server Manager

Microsoft Visual Studio 2010

ORACLE SQL DEVELOPER

PL/SQL Developer 7.0 New Features. December 2005

Database Explorer Quickstart

Data Integration and ETL with Oracle Warehouse Builder

Getting Started with Oracle and.net

Chapter 1 GETTING STARTED. SYS-ED/ Computer Education Techniques, Inc.

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

Toad Data Point - Professional Edition. The Toad Data Point Professional edition includes the following new features and enhancements.

Introduction to IBM Data Studio, Part 1: Get started with IBM Data Studio, Version and Eclipse

Introduction to IBM Data Studio, Part 1: Get started with IBM Data Studio, Version and Eclipse

Toad for IBM DB2 functional matrix

Getting Started with Oracle and.net

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

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

Build and Deploy Stored Procedures with IBM Data Studio

User Guide Zend Studio for Eclipse V6.1

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

Imagine. Create. Discover. User Manual. TopLine Results Corporation

using PL/SQL and APEX

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

Oracle Application Express 5.1

Techno Expert Solutions An institute for specialized studies!

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

Rapid SQL XE and Rapid SQL Evaluation Guide

Application Express 4.0 Architecture & Configuration Marc Sewtz Senior Software Development Manager Oracle America Inc.

Embarcadero DB Optimizer 1.0 Evaluation Guide. Published: July 14, 2008

Embarcadero DBArtisan XE Product Review Guide

Managing Your Database Using Oracle SQL Developer

Call: Datastage 8.5 Course Content:35-40hours Course Outline

<Insert Picture Here> JDeveloper Treasure Hunt

Proje D2K. CMM (Capability Maturity Model) level Project Standard:- Corporate Trainer s Profile

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

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

IBM Application Performance Analyzer for z/os Version IBM Corporation

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

Embarcadero Rapid SQL

Analytics: Server Architect (Siebel 7.7)

DB Change Manager. User Guide. Version 17.0 Published December 2017

Connect Databases to AutoCAD with dbconnect Nate Bartley Test Development Engineer autodesk, inc.

<Insert Picture Here> Making the Most of PeopleSoft Query

Oracle Application Express Student Guide

PL/SQL Developer 10.0 User s Guide. February 2013

May 22, 2013 Ronald Reagan Building and International Trade Center Washington, DC USA

DBArtisan 8.6 New Features Guide. Published: January 13, 2009

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

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

Kendo UI. Builder by Progress : What's New

Enterprise Manager Cloud Control 12c Release 4 ( )

Real Application Security Administration

User's Guide c-treeace SQL Explorer

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

What s new in Mainframe Express 3.0

Noopur Gupta Eclipse JDT/UI Committer IBM India

Index. Symbols. /**, symbol, 73 >> symbol, 21

Extend EBS Using Applications Express

Visual Studio Schema Compare Does Not Support The Specified Database

IBM PDTools for z/os. Update. Hans Emrich. Senior Client IT Professional PD Tools + Rational on System z Technical Sales and Solutions IBM Systems

Oracle Application Express Workshop I Ed 2

Getting Started with Team Coding Applicable to Toad for Oracle Suite 2016 (v12.9) and higher

Perceptive Nolij Web. Administrator Guide. Version: 6.8.x

Policy Commander Console Guide - Published February, 2012

Unleash the power of Essbase Custom Defined Functions

Database Migration with MySQL Workbench. Alfredo Kojima, Team Lead MySQL Workbench Mike Frank, Product Manager

CO Oracle Database 12c: Advanced PL/SQL

Oracle Application Express: Administration 1-2

MAS 90/200 Intelligence Tips and Tricks Booklet Vol. 1

Transcription:

3

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

The following 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.

Agenda SQL Developer 2.1 New Features Working with PL/SQL Remote Debugging Unit Testing Other PL/SQL Related Features

SQL Developer 2.1 New Feature Overview PL/SQL Unit Testing Data Modeler Viewer Migration support for IBM DB2 UDB and Teradata Updated Data Grids Manage columns, filter on data New SQL Worksheet Dockable dbms_output, multiple worksheets Increased Connections navigator support for Jobs, Editions (for 11gR2), XML DB Repository Updated display editors PL/SQL edit mode, subpartitions Version Control support for Serena Dimensions, Perforce Updated filtering mechanism Schema level, generated objects

Working with PL/SQL <Insert Picture Here>

Creating and Editing PL/SQL Code editor Syntax highlighting Code formatter Code insight (auto complete) Code folding Query Builder Code snippets Drag and drop code snippets Add and customize snippets Code templates

Preparing Code Skeletons with Dialogs Use dialog to create Procedures & Functions Triggers Package spec & body Create Trigger Table View Schema Database

Compiling and Running PL/SQL Compiling Inline error reporting Run procedures, functions, and packages Use DBMS_OUTPUT Function return values OUT parameters Run PL/SQL dialog Specifies run targets Shows parameter detail Generates editable PL/SQL block For parameter values For output parameters Works with records

Debugging PL/SQL Set breakpoints Configure conditions Compile for Debug Control program execution (Step into, over ) Run to Cursor Inspect and modify variables Review Smart data Data Watches expressions View debug log

Remote Debugging Problem: Test a procedure being executed in a separate application In SQL Developer Select Remote Debug Set up remote debug detail; machine, port Browse to procedure Set a breakpoint In remote session execute DBMS_DEBUG_JDWP.CONNECT_TCP ( 127.0.0.1, 4000) Execute procedure In SQL Developer Debug as normal Use the environment variable SET ORA_DEBUG_JDWP=host=127.0.0.1;port=4000

Working with PL/SQL Unit Testing <Insert Picture Here>

Unit Testing Overview Tests Suites Reports Library Static and dynamic lookups Multi user repository based Code coverage Command line use Target any database

Unit Testing - Tests Input/Return Static or Dynamic Values Startups/TearDown Table Copy/Restore Row Copy/Restore Custom Code coverage Success or failure testing Validation Custom

Unit Testing - Suites Startups/TearDown Table Copy/Restore Row Copy/Restore Custom Code Coverage Tests are run sequentially Startup and teardowns for tests can be turned off

Unit Testing - Library Stores reusable items Dynamic Values Startups Teardowns Validations Referenced or copied to local tests

Unit Testing - Reports Includes Standard reports Suites Tests Code Coverage Reports against the repository Users can query the repository directly

Unit Testing Multi User Use database users Control admin vs. user Managed with roles

Unit Testing Running Suites/Tests Inside SQL Developer simply change the Combo List Command line by passing arguments Results are stored in the repository

Refactor, Review, Search, Tune and Monitor SQL Developer provides a PL/SQL related utilities PL/SQL Hierarchical Profiler Extended Search using PL/SQL SQL Monitor SQL Developer PL/SQL Reports General refactoring APEX refactoring

Hierarchical Profiler

Searching Find (and replace) in all editors Find DB Objects Across schemas Navigate to object Extended search Across schemas For object types For usages PLScope support (Oracle Database 11g)

Real-Time SQL Monitoring Real time view of SQL Use /*+MONITOR*/ Drill to view details Visual indicators for current step Queries over 5 seconds monitored DBMS_SQLTUNE.REPORT_SQL_MONITOR

SQL Monitor and PL/SQL Reports Shipped PL/SQL Reports SQL Monitor Search Source Code Program Unit Arguments User Defined Reports Using plsql-dbms_output Formatting code

Refactoring Extract a procedure Surround blocks with For While Begin block Variable renames Extract anonymous PL/SQL blocks from APEX apps

Integrating with Oracle APEX Providing integration points to Oracle APEX Remote debugging Tuning SQL Refactoring PL/SQL code

Finding More Detail www.oracle.com/technology/products/database/sql_developer SQL Developer on OTN White papers,oracle by Example (OBE) and online demos Team Blogs: Blogs, Magazine Articles & Podcasts www.oracle.com/technology/products/database/sql_developer SQL Developer Exchange Share reports, snippets, code, and add feature requests http://sqldeveloper.oracle.com Forums SQL Developer forums.oracle.com/forums/forum.jspa?forumid=260

Summary PL/SQL Creating, editing, compiling and debugging Unit Testing Creating, Running, Reporting Batch processing Creating SQL Developer extensions Real-Time SQL Monitoring Watch SQL as it runs Refactoring Convert APEX anonymous blocks into a Package

For More Information search.oracle.com SQL Developer or www.oracle.com/technology/products/database/sql_developer