Oracle SQL Developer Kris Rice Director - Database Tools Research.

40

Transcript of Oracle SQL Developer Kris Rice Director - Database Tools Research.

Oracle SQL DeveloperKris RiceDirector - Database Tools Research

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.

SQL Developer Exchangehttp://sqldeveloper.oracle.com

<Insert Picture Here>

Agenda

• SQL Developer Features• SQL Developer 1.5 Features• Data Modeling• Meet a Customer!• Working with PL/SQL• Creating SQL Developer Extensions• Use Source Code Control• Summary

<Insert Picture Here>

“We've given up all of our licenses for other tools. We simply don't need them anymore. SQL Developer

does it all for us. We've saved a lot of money because it's "FREE"! It's also given our development staff a

standard tool and they love it! It's made training and support easier. Going to SQL Developer wasn't a

management decision. Our developers picked it!”

Maggie TompkinsDevelopment Branch Head -

Civilian Marine United States Marine Corp

SQL Developer Features

• Creating database connections• Creating and browsing objects• Querying and updating data• Using the SQL Worksheet• Running the Query Builder• Importing data, exporting data and objects• Creating and running PL/SQL• Running and defining reports• Building extensions• Browsing and migration from third-party databases• Integrating with Oracle APEX 3.0.1+• Integrating with TimesTen• Working with files and version control

SQL Developer 1.5 Features

• Database connections• OS authentication, Proxy, LDAP • Force thick driver usage• Group connections in folders

• Navigator support for• Queues, Queue tables• Browse and load Java• Generating DB documentation• Managing the database

• Schema copy and compare• Create new table on XLS import• Tuning support

• Hierarchical Profiler• GUI view of trace files

• SQL Worksheet includes:• Updated SQL formatter

• Code refactoring options

• Increased code insight

• Code templates

• Flashback

• Extended search • Integrated support for versioning

and source control systems:• CVS and Subversion

• Migration• Sybase Adaptive Server

• Integrated support for TimesTen

Oracle SQL Developer Data ModelingSQL Developer 2.0 (Watch for Preview Release)

• Oracle SQL Developer Data Modeling supports• Designing logical Entity Relation Diagrams (ERD)• Building physical schema designs• Generating and executing DDL scripts• Reverse engineering of existing data structures • Import of data models from Erwin and Designer

• Provides modeling for multiple databases• Oracle Database • DB2 (Mainframe & UDB) • Microsoft SQL Server

• Support includes • Multi-dimensional modeling• Multi-level logical and physical design environment• Spatial modeling• Model validation rules

• Increases migration productivity• Migrate and model using one product

<Insert Picture Here>

Working with PL/SQL

Creating and Running PL/SQL

• Code editor• Syntax highlighting • Code formatter • Code insight (auto complete)• Code folding• Query Builder

• Code snippet viewer• Drag and drop code snippets• Add and customize snippets

• Compile, run and debug• Inline error reporting• Full debug capabilities

• Code bookmarking• Preferences

• Customizable quick keys

Running PL/SQL

• Run procedures, functions, and packages• 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• SQL Developer

• Select Remote Debug

• Set up remote debug detail; machine, port

• Browse to procedure

• Set a breakpoint

• Remote session• execute DBMS_DEBUG_JDWP.CONNECT_TCP (‘127.0.0.1’, 4000)

• Execute procedure

• SQL Developer• Debug

Hierarchical Profiler

Extended Search

• Across schemas• For object types• For usages• PLScope support

(Oracle Database 11g)

<Insert Picture Here>

Creating Extensions

Extensible Framework

• Easily extended• Based on the JDeveloper IDE

• Oracle custom extensions:• Migration Workbench• TimesTen (SQL Developer 1.5)• Data Mining (SQL Developer 1.2.1)• Rdb (under development)

Customer Developed Extensions

• Users writing their own extensions• Insider for Oracle SQL Developer • Error lookup for Oracle SQL Developer • GIS extension for Oracle SQL Developer • OrindaBuild for Oracle SQL Developer • Digger for Oracle SQL Developer

Adding XML Extensions

• Create XML• Associate Extension type with file location

User Defined XML Extensions

• XML Extensions include:• Reports• Editors• Actions• Navigators

XML Extension – Adding Extra Tabs

<items>

<item type="editor" node="TableNode" vertical="true">

<title><![CDATA[SubPartitions]]></title>

<query>

<sql><![CDATA [Select SUBPARTITION_NAME, HIGH_VALUEfrom ALL_TAB_SUBPARTITIONS

where table_owner = :OBJECT_OWNER and table_name = :OBJECT_NAME]]></sql>

</query>

</item>

</items>

SQL Developer SDK on the Wiki

Creating Java Based Extensions

• Install• A Java IDE

• JDeveloper• Eclipse

• SQL Developer• In JDeveloper

• Using Check for Updates, set up the SDK• Install SDK Samples

• Create or open a workspace• Create or edit a project

• Change the deployment profile• Deploy• Open SQL Developer• Run

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

SQL DeveloperXML Extensions

<Insert Picture Here>

Working with source code control

File Based Development

• Explore files in the File navigator• Open files in the SQL

Worksheet• Place files under version

control

Integrated Version Control Support

• SQL Developer provides integrated support for versioning and source control systems:• CVS (Concurrent

Versions System)

• Subversion

• Access through the SQL Developer Versioning menu

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

SQL DeveloperVersion Control

Oracle SQL Developer Data Modeling

• Supports a variety of visual models• Entity Relationship (ERD) - supports Barker and Bachman notation (EAR)• Relational • DataTypes (SQL99) • Multi-Dimensional (MD)• Data Flow

• Records details for • Physical implementation• Business information• Domains

• Imports from various sources including• DDL and Dictionary import from Oracle Database• Oracle Designer repository• DDL and Dictionary import from SQL Server, UDB and DB2 • General JDBC based dictionary import for non-Oracle databases• Other modeling tools

• Exports to various sources • DDL for Oracle and non-Oracle Databases• Oracle Analytical Workspaces• Multi-Dimensional XMLA format

Logical Modeling

• Model entities, attributes and relations

• Supports• Super type

• Sub types

• One logical for many relational and MD models

• Forward and reverse engineering

Relational Modeling

• Model tables, columns and FK’s

• One logical for many relational models

• Forward and reverse engineering

Multi-Dimensional Modeling

• Modeling of Cubes, Dimensions, Levels and Hierarchies, Measures and slices

• Start from ROLAP, XMLA or from scratch

• Generate Oracle Analytical Workspaces

Physical Modeling

• One relational model for many physical models

• Supports• Oracle Database 9i, 10g and 11g

• Microsoft SQL Server

• IBM UDB and DB2

• DDL file editor supports• Design Rules

• Object selection

• Drop objects

• Table scripts

Forward and Reverse Engineering

• Mapping from one Logical• To one or more relational Models

• Mapping from Relational• To one Logical Model

• Mapping from one Relational• To one or more Physical models

• Mapping from Physical• To one Relational Model

• Options• General

• Compare/copy

• Synchronization

Finding More Detailwww.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 • http://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

http://forums.oracle.com/forums/forum.jspa?forumID=260• Migration Workbench

http://forums.oracle.com/forums/forum.jspa?forumID=1• Migration Sites

• http://otn.oracle.com/migration

Summary

• Oracle SQL Developer provides support for:• Creating database connections• Creating and browsing• Querying and updating • Importing and exporting• Using scripts and statements in a worksheet• Building queries using a graphical drag and drop interface• Building and running database reports

• Advanced capabilities include• PL/SQL editing and debugging• Creating SQL Developer extensions• Migration from third-party databases to Oracle• Support for SQL Tuning• Support for TimesTen

For More Information

http://search.oracle.com

SQL Developer

or

http://www.oracle.com/technology/products/database/sql_developer

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