Oracle SQL Developer - Focus on a Few Features


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • This session reviews PL/SQL debugging, building extensions, and source code control in Oracle SQL Developer. It initially reviews editing and debugging PL/SQL, with particular reference to debugging remote applications. It then shows the participants how to add context menus, navigator displays, and editors to Oracle SQL Developer by use of XML and Java extensions. The final section introduces source code control. Essential to any file-based project, source code control is now integrated into Oracle SQL Developer.
  • Oracle SQL Developer - Focus on a Few Features

    1. 2. Oracle SQL Developer Kris Rice Director - Database Tools Research
    2. 3. 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.
    3. 4. SQL Developer Exchange
    4. 5. Agenda <ul><li>SQL Developer Features </li></ul><ul><li>SQL Developer 1.5 Features </li></ul><ul><li>Data Modeling </li></ul><ul><li>Meet a Customer! </li></ul><ul><li>Working with PL/SQL </li></ul><ul><li>Creating SQL Developer Extensions </li></ul><ul><li>Use Source Code Control </li></ul><ul><li>Summary </li></ul><Insert Picture Here>
    5. 6. <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 &quot;FREE&quot;! 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 Tompkins Development Branch Head - Civilian Marine United States Marine Corp
    6. 7. SQL Developer Features <ul><li>Creating database connections </li></ul><ul><li>Creating and browsing objects </li></ul><ul><li>Querying and updating data </li></ul><ul><li>Using the SQL Worksheet </li></ul><ul><li>Running the Query Builder </li></ul><ul><li>Importing data, exporting data and objects </li></ul><ul><li>Creating and running PL/SQL </li></ul><ul><li>Running and defining reports </li></ul><ul><li>Building extensions </li></ul><ul><li>Browsing and migration from third-party databases </li></ul><ul><li>Integrating with Oracle APEX 3.0.1+ </li></ul><ul><li>Integrating with TimesTen </li></ul><ul><li>Working with files and version control </li></ul>
    7. 8. SQL Developer 1.5 Features <ul><li>Database connections </li></ul><ul><ul><li>OS authentication, Proxy, LDAP </li></ul></ul><ul><ul><li>Force thick driver usage </li></ul></ul><ul><ul><li>Group connections in folders </li></ul></ul><ul><li>Navigator support for </li></ul><ul><ul><li>Queues, Queue tables </li></ul></ul><ul><ul><li>Browse and load Java </li></ul></ul><ul><ul><li>Generating DB documentation </li></ul></ul><ul><ul><li>Managing the database </li></ul></ul><ul><li>Schema copy and compare </li></ul><ul><li>Create new table on XLS import </li></ul><ul><li>Tuning support </li></ul><ul><ul><li>Hierarchical Profiler </li></ul></ul><ul><ul><li>GUI view of trace files </li></ul></ul><ul><li>SQL Worksheet includes: </li></ul><ul><ul><li>Updated SQL formatter </li></ul></ul><ul><ul><li>Code refactoring options </li></ul></ul><ul><ul><li>Increased code insight </li></ul></ul><ul><ul><li>Code templates </li></ul></ul><ul><ul><li>Flashback </li></ul></ul><ul><li>Extended search </li></ul><ul><li>Integrated support for versioning and source control systems: </li></ul><ul><ul><li>CVS and Subversion </li></ul></ul><ul><li>Migration </li></ul><ul><ul><li>Sybase Adaptive Server </li></ul></ul><ul><li>Integrated support for TimesTen </li></ul>
    8. 9. Oracle SQL Developer Data Modeling SQL Developer 2.0 (Watch for Preview Release) <ul><li>Oracle SQL Developer Data Modeling supports </li></ul><ul><ul><li>Designing logical Entity Relation Diagrams (ERD) </li></ul></ul><ul><ul><li>Building physical schema designs </li></ul></ul><ul><ul><li>Generating and executing DDL scripts </li></ul></ul><ul><ul><li>Reverse engineering of existing data structures </li></ul></ul><ul><ul><li>Import of data models from Erwin and Designer </li></ul></ul><ul><li>Provides modeling for multiple databases </li></ul><ul><ul><li>Oracle Database </li></ul></ul><ul><ul><li>DB2 (Mainframe & UDB) </li></ul></ul><ul><ul><li>Microsoft SQL Server </li></ul></ul><ul><li>Support includes </li></ul><ul><ul><li>Multi-dimensional modeling </li></ul></ul><ul><ul><li>Multi-level logical and physical design environment </li></ul></ul><ul><ul><li>Spatial modeling </li></ul></ul><ul><ul><li>Model validation rules </li></ul></ul><ul><li>Increases migration productivity </li></ul><ul><ul><li>Migrate and model using one product </li></ul></ul>
    9. 10. <Insert Picture Here> Working with PL/SQL
    10. 11. Creating and Running PL/SQL <ul><li>Code editor </li></ul><ul><ul><li>Syntax highlighting </li></ul></ul><ul><ul><li>Code formatter </li></ul></ul><ul><ul><li>Code insight (auto complete) </li></ul></ul><ul><ul><li>Code folding </li></ul></ul><ul><ul><li>Query Builder </li></ul></ul><ul><li>Code snippet viewer </li></ul><ul><ul><li>Drag and drop code snippets </li></ul></ul><ul><ul><li>Add and customize snippets </li></ul></ul><ul><li>Compile, run and debug </li></ul><ul><ul><li>Inline error reporting </li></ul></ul><ul><ul><li>Full debug capabilities </li></ul></ul><ul><li>Code bookmarking </li></ul><ul><li>Preferences </li></ul><ul><ul><li>Customizable quick keys </li></ul></ul>
    11. 12. Running PL/SQL <ul><li>Run procedures, functions, and packages </li></ul><ul><ul><li>DBMS_OUTPUT </li></ul></ul><ul><ul><li>Function return values </li></ul></ul><ul><ul><li>OUT parameters </li></ul></ul><ul><li>Run PL/SQL dialog </li></ul><ul><ul><li>Specifies run targets </li></ul></ul><ul><ul><li>Shows parameter detail </li></ul></ul><ul><ul><li>Generates editable PL/SQL block </li></ul></ul><ul><ul><ul><li>For parameter values </li></ul></ul></ul><ul><ul><ul><li>For output parameters </li></ul></ul></ul><ul><ul><ul><li>Works with records </li></ul></ul></ul>
    12. 13. Debugging PL/SQL <ul><li>Set breakpoints </li></ul><ul><ul><li>Configure conditions </li></ul></ul><ul><li>Compile for Debug </li></ul><ul><li>Control program execution (Step into, over…) </li></ul><ul><li>Run to Cursor </li></ul><ul><li>Inspect and modify variables </li></ul><ul><li>Review </li></ul><ul><ul><li>Smart data </li></ul></ul><ul><ul><li>Data </li></ul></ul><ul><li>Watches expressions </li></ul><ul><li>View debug log </li></ul>
    13. 14. Remote Debugging <ul><li>Problem : Test a procedure being executed in a separate application </li></ul><ul><li>SQL Developer </li></ul><ul><ul><li>Select Remote Debug </li></ul></ul><ul><ul><li>Set up remote debug detail; machine, port </li></ul></ul><ul><ul><li>Browse to procedure </li></ul></ul><ul><ul><li>Set a breakpoint </li></ul></ul><ul><li>Remote session </li></ul><ul><ul><li>execute DBMS_DEBUG_JDWP.CONNECT_TCP (‘’, 4000) </li></ul></ul><ul><ul><li>Execute procedure </li></ul></ul><ul><li>SQL Developer </li></ul><ul><ul><li>Debug </li></ul></ul>
    14. 15. Hierarchical Profiler
    15. 16. Extended Search <ul><li>Across schemas </li></ul><ul><li>For object types </li></ul><ul><li>For usages </li></ul><ul><li>PLScope support (Oracle Database 11g) </li></ul>
    16. 17. <Insert Picture Here> Creating Extensions
    17. 18. Extensible Framework <ul><li>Easily extended </li></ul><ul><ul><li>Based on the JDeveloper IDE </li></ul></ul><ul><li>Oracle custom extensions: </li></ul><ul><ul><li>Migration Workbench </li></ul></ul><ul><ul><li>TimesTen (SQL Developer 1.5) </li></ul></ul><ul><ul><li>Data Mining (SQL Developer 1.2.1) </li></ul></ul><ul><ul><li>Rdb (under development) </li></ul></ul>
    18. 19. Customer Developed Extensions <ul><li>Users writing their own extensions </li></ul><ul><ul><li>Insider for Oracle SQL Developer </li></ul></ul><ul><ul><li>Error lookup for Oracle SQL Developer </li></ul></ul><ul><ul><li>GIS extension for Oracle SQL Developer </li></ul></ul><ul><ul><li>OrindaBuild for Oracle SQL Developer </li></ul></ul><ul><ul><li>Digger for Oracle SQL Developer </li></ul></ul>
    19. 20. Adding XML Extensions <ul><li>Create XML </li></ul><ul><li>Associate Extension type with file location </li></ul>
    20. 21. User Defined XML Extensions <ul><li>XML Extensions include: </li></ul><ul><ul><li>Reports </li></ul></ul><ul><ul><li>Editors </li></ul></ul><ul><ul><li>Actions </li></ul></ul><ul><ul><li>Navigators </li></ul></ul>
    21. 22. XML Extension – Adding Extra Tabs <ul><li><items> </li></ul><ul><li><item type=&quot;editor&quot; node=&quot;TableNode&quot; vertical=&quot;true&quot;> </li></ul><ul><li><title><![CDATA[SubPartitions]]></title> </li></ul><ul><li><query> </li></ul><ul><li><sql><![CDATA [Select SUBPARTITION_NAME, HIGH_VALUE from ALL_TAB_SUBPARTITIONS </li></ul><ul><li>where table_owner = :OBJECT_OWNER and table_name = :OBJECT_NAME]]></sql> </li></ul><ul><li></query> </li></ul><ul><li></item> </li></ul><ul><li></items> </li></ul>
    22. 23. SQL Developer SDK on the Wiki
    23. 24. Creating Java Based Extensions <ul><li>Install </li></ul><ul><ul><li>A Java IDE </li></ul></ul><ul><ul><ul><li>JDeveloper </li></ul></ul></ul><ul><ul><ul><li>Eclipse </li></ul></ul></ul><ul><ul><li>SQL Developer </li></ul></ul><ul><li>In JDeveloper </li></ul><ul><ul><li>Using Check for Updates, set up the SDK </li></ul></ul><ul><ul><li>Install SDK Samples </li></ul></ul><ul><li>Create or open a workspace </li></ul><ul><ul><li>Create or edit a project </li></ul></ul><ul><li>Change the deployment profile </li></ul><ul><li>Deploy </li></ul><ul><li>Open SQL Developer </li></ul><ul><li>Run </li></ul>
    24. 25. D E M O N S T R A T I O N SQL Developer XML Extensions
    25. 26. <Insert Picture Here> Working with source code control
    26. 27. File Based Development <ul><li>Explore files in the File navigator </li></ul><ul><li>Open files in the SQL Worksheet </li></ul><ul><li>Place files under version control </li></ul>
    27. 28. Integrated Version Control Support <ul><li>SQL Developer provides integrated support for versioning and source control systems: </li></ul><ul><ul><li>CVS (Concurrent Versions System) </li></ul></ul><ul><ul><li>Subversion </li></ul></ul><ul><li>Access through the SQL Developer Versioning menu </li></ul>
    28. 29. D E M O N S T R A T I O N SQL Developer Version Control
    29. 30. Oracle SQL Developer Data Modeling <ul><li>Supports a variety of visual models </li></ul><ul><ul><li>Entity Relationship (ERD) - supports Barker and Bachman notation (EAR) </li></ul></ul><ul><ul><li>Relational </li></ul></ul><ul><ul><li>DataTypes (SQL99) </li></ul></ul><ul><ul><li>Multi-Dimensional (MD) </li></ul></ul><ul><ul><li>Data Flow </li></ul></ul><ul><li>Records details for </li></ul><ul><ul><li>Physical implementation </li></ul></ul><ul><ul><li>Business information </li></ul></ul><ul><ul><li>Domains </li></ul></ul><ul><li>Imports from various sources including </li></ul><ul><ul><li>DDL and Dictionary import from Oracle Database </li></ul></ul><ul><ul><li>Oracle Designer repository </li></ul></ul><ul><ul><li>DDL and Dictionary import from SQL Server, UDB and DB2 </li></ul></ul><ul><ul><li>General JDBC based dictionary import for non-Oracle databases </li></ul></ul><ul><ul><li>Other modeling tools </li></ul></ul><ul><li>Exports to various sources </li></ul><ul><ul><li>DDL for Oracle and non-Oracle Databases </li></ul></ul><ul><ul><li>Oracle Analytical Workspaces </li></ul></ul><ul><ul><li>Multi-Dimensional XMLA format </li></ul></ul>
    30. 31. Logical Modeling <ul><li>Model entities, attributes and relations </li></ul><ul><li>Supports </li></ul><ul><ul><li>Super type </li></ul></ul><ul><ul><li>Sub types </li></ul></ul><ul><li>One logical for many relational and MD models </li></ul><ul><li>Forward and reverse engineering </li></ul>
    31. 32. Relational Modeling <ul><li>Model tables, columns and FK’s </li></ul><ul><li>One logical for many relational models </li></ul><ul><li>Forward and reverse engineering </li></ul>
    32. 33. Multi-Dimensional Modeling <ul><li>Modeling of Cubes, Dimensions, Levels and Hierarchies, Measures and slices </li></ul><ul><li>Start from ROLAP, XMLA or from scratch </li></ul><ul><li>Generate Oracle Analytical Workspaces </li></ul>
    33. 34. Physical Modeling <ul><li>One relational model for many physical models </li></ul><ul><li>Supports </li></ul><ul><ul><li>Oracle Database 9 i , 10 g and 11 g </li></ul></ul><ul><ul><li>Microsoft SQL Server </li></ul></ul><ul><ul><li>IBM UDB and DB2 </li></ul></ul><ul><li>DDL file editor supports </li></ul><ul><ul><li>Design Rules </li></ul></ul><ul><ul><li>Object selection </li></ul></ul><ul><ul><li>Drop objects </li></ul></ul><ul><ul><li>Table scripts </li></ul></ul>
    34. 35. Forward and Reverse Engineering <ul><li>Mapping from one Logical </li></ul><ul><ul><li>To one or more relational Models </li></ul></ul><ul><li>Mapping from Relational </li></ul><ul><ul><li>To one Logical Model </li></ul></ul><ul><li>Mapping from one Relational </li></ul><ul><ul><li>To one or more Physical models </li></ul></ul><ul><li>Mapping from Physical </li></ul><ul><ul><li>To one Relational Model </li></ul></ul><ul><li>Options </li></ul><ul><ul><li>General </li></ul></ul><ul><ul><li>Compare/copy </li></ul></ul><ul><ul><li>Synchronization </li></ul></ul>
    35. 36. Finding More Detail <ul><li>SQL Developer on OTN </li></ul><ul><ul><li>White papers,Oracle by Example (OBE) and online demos </li></ul></ul><ul><ul><li>Team Blogs: Blogs, Magazine Articles & Podcasts </li></ul></ul><ul><ul><li> </li></ul></ul><ul><li>SQL Developer Exchange </li></ul><ul><ul><li>Share reports, snippets, code, and add feature requests </li></ul></ul><ul><ul><li> </li></ul></ul><ul><li>Forums </li></ul><ul><ul><li>SQL Developer </li></ul></ul><ul><ul><li>Migration Workbench </li></ul></ul><ul><li>Migration Sites </li></ul><ul><ul><li> </li></ul></ul>
    36. 37. Summary <ul><li>Oracle SQL Developer provides support for: </li></ul><ul><ul><li>Creating database connections </li></ul></ul><ul><ul><li>Creating and browsing </li></ul></ul><ul><ul><li>Querying and updating </li></ul></ul><ul><ul><li>Importing and exporting </li></ul></ul><ul><ul><li>Using scripts and statements in a worksheet </li></ul></ul><ul><ul><li>Building queries using a graphical drag and drop interface </li></ul></ul><ul><ul><li>Building and running database reports </li></ul></ul><ul><li>Advanced capabilities include </li></ul><ul><ul><li>PL/SQL editing and debugging </li></ul></ul><ul><ul><li>Creating SQL Developer extensions </li></ul></ul><ul><ul><li>Migration from third-party databases to Oracle </li></ul></ul><ul><ul><li>Support for SQL Tuning </li></ul></ul><ul><ul><li>Support for TimesTen </li></ul></ul>
    37. 38. For More Information SQL Developer or
    38. 39. “ This presentation is for informational purposes only and may not be incorporated into a contract or agreement.”