Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Oracle SQL Developer 2.1
Oracle SQL Developer 2.1
Oracle SQL Developer 2.1
Ebook927 pages7 hours

Oracle SQL Developer 2.1

Rating: 0 out of 5 stars

()

Read preview

About this ebook

In Detail

As technology rapidly evolves, many developers are looking for valuable tools to assist them with their daily tasks. When dealing with databases, a clean, easy-to-navigate interface for working and browsing is essential. Oracle SQL Developer is a graphical user interface that makes life much easier by allowing you to browse database objects, run SQL statements and scripts, and create, edit, and debug PL/SQL statements in the most efficient way. It enhances productivity and simplifies your database development tasks. Although the SQL Developer journey looks simple and easy, there are many areas that can go undiscovered, leaving you just scratching the surface.

It's easy to get started and master this powerful tool with this book to hand. It will provide you with in-depth details about all aspects of using SQL Developer to assist you in your day-to-day database tasks and activities. You will learn to utilize SQL Developer's extensible environment to support your ongoing needs

This book offers detailed instructions for installing, configuring, and effectively using Oracle SQL Developer. You will learn how to utilize every feature of this development tool and make the most out of it. While none of the tasks are complex, the book progresses from the easy, most commonly used features, such as browsing objects and writing queries in the SQL Worksheet, to the more involved and possibly less frequently used features, such as Tuning and Testing SQL and PL/SQL, and adding User Extensions, and finally to those features used by a smaller more targeted audience, such as Migrations, Oracle APEX, and the Data Modeler. Throughout the book there are tips and suggestions gathered as a result of working with the current SQL Developer user base. This book will also show you how to assess the health of your database with built-in as well as customized reports.

By the end of the book you will be confident in making the best use of SQL Developer, and be able to set up and maintain a productive environment for quick and easy database development.

Use the powerful GUI to browse your database objects, run SQL statements and scripts, and create, edit, debug, and test PL/SQL code in a highly productive environment

Approach

Covering SQL Developer fundamentals as well more intermediate and advanced topics, this book uses in-depth explanation and detailed examples to help you get the most out of Oracle SQL Developer. The book has a modular structure, so that you can dip into any chapter that covers your current area of focus and get going.

Who this book is for

This book is for Oracle developers who want to ease their database development, and enhance their productivity using Oracle SQL Developer. You should have a programming knowledge of SQL and PL/SQL, and a general familiarity with Oracle database concepts.

LanguageEnglish
Release dateDec 16, 2009
ISBN9781847196279
Oracle SQL Developer 2.1
Author

Sue Harper

Sue Harper studied psychology and English literature at the University of Toronto and graduated with a master's degree in English language and literature from the University of Guelph. After thirty-one years in education (including teaching motorcycling and skiing) and co-authoring thirteen English textbooks, Harper returned to school at age sixty-two to do a Masters of Fine Arts in creative non-fiction. A self-professed "senior nomad" (some would suggest "crazy person"), Harper and her partner spend back-to-back winters in Kelowna, BC and their adopted hometown of Wanaka, New Zealand. Harper writes for lifestyle, travel and wine magazines. Winter in the City of Light is her first full-length book.

Related to Oracle SQL Developer 2.1

Related ebooks

Information Technology For You

View More

Related articles

Reviews for Oracle SQL Developer 2.1

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Oracle SQL Developer 2.1 - Sue Harper

    Table of Contents

    Oracle SQL Developer 2.1

    Credits

    About the Author

    Acknowledgement

    About the Reviewers

    Preface

    What this book covers

    I: Getting started

    II: Delving a little deeper

    III: Focus areas

    Standards and assumptions

    Who this book is for

    Conventions

    Reader feedback

    Customer support

    Errata

    Piracy

    Questions

    1. Getting Started with SQL Developer

    Preparing your environment

    Finding and downloading the software

    Downloading and installing the Java Development Kit

    Installing and starting SQL Developer

    Working with different platforms

    Microsoft Windows

    Alternative platforms

    Mac OS X

    Linux

    Migrating settings from a previous release

    Maintaining your environment

    Verifying the current release

    Using Check for Updates

    Managing the system folder and other files

    Sharing preferences

    Alternative installations of SQL Developer

    Oracle JDeveloper

    Oracle Database 11g

    Troubleshooting

    Removing extensions

    Resetting shortcut keys

    Reset the environment, do not reinstall the product

    A quick overview

    Sample schemas

    Creating your first connection

    Using basic commands in the SQL Worksheet

    Browsing and updating data

    Running reports

    Navigating around SQL Developer

    Managing SQL Developer windows

    Tiling windows

    Splitting documents

    Maximizing detail

    Resetting the window layout

    Finding more help

    Summary

    2. Browsing and Editing Database Objects and Data

    Browsing objects

    Working with the Connections navigator

    Opening connections

    Working with objects

    Filtering objects

    Schema level filtering

    Display editors

    General display editors

    Working with the display editors

    Using the SQL display editor

    Working with the data grids

    Controlling the column display

    Sorting the data

    Filtering columns

    More data grid context menus

    Highlighting data

    Count Rows and the Single Record View

    Save Grid as Report

    Working with Updating Data Grids

    Sorting and filtering data

    Updating data

    Working with LOBS in the data grid

    Using flashback

    Reviewing other database object nodes

    Working with PL/SQL objects

    Accessing objects you don't own

    Other users

    Synonyms and filters

    Recycle Bin

    Creating and updating database objects

    Creating new objects

    Creating tables

    Early decisions

    Adding constraints

    Creating column sequences

    Additional properties

    Storage

    Partitions

    Creating views

    Writing the SQL query

    Using the Quick-pick objects

    Building the query using elements in the tree

    Reviewing a few specific objects

    Creating new users

    Setting the privilege to create new objects

    Editing objects: Putting context menus to work

    Editing objects

    Diving into context menus

    Using context menus as utilities

    Normalizing data

    Triggers and sequences

    Summary

    3. Working with the SQL Worksheet

    Introducing the SQL Worksheet

    Controlling the environment

    Opening SQL Worksheets

    Working with multiple worksheets

    Switching connections

    Getting started

    Writing and executing commands

    Writing your first statements

    Running statements

    Run script

    Using SQL*Plus commands

    Supporting SQL*Plus

    Bind variables

    The advantage of using bind variables

    Bind variables and performance

    Security and bind variables

    Running scripts

    Reviewing unsupported SQL*Plus commands

    Working with SQL

    Dragging and dropping tables to create queries

    Formatting code

    Managing the case

    Formatting SQL for use in other languages

    Working with code completion insight

    Controlling code completion insight in the SQL Worksheet

    Including code snippets

    Managing the Snippets window

    Adding code snippets

    Creating code templates

    Using the File navigator

    Opening files

    Using extra features in the worksheet

    SQL History

    DBMS Output

    OWA Output

    Using the Query Builder

    Building an SQL query

    Selecting the tables, column, and joins

    Viewing the Results

    Adding the WHERE clause

    Returning to the SQL Worksheet

    Summary

    4. The Power of SQL Reports

    Introducing SQL Developer reports

    Who can run reports?

    When do you use reports?

    Running a report

    Using bind variables

    Privileges required for running reports

    Switching users

    Browsing shipped reports

    Running data dictionary reports

    Getting to know the data dictionary

    About the database

    Reviewing Privileges and Security reports

    Assisting with quality assurance

    Using the PL/SQL reports

    Running ASH and AWR reports

    Other categories

    Migration reports

    Application Express reports

    Data Modeler reports

    Running reports from other menus

    Monitor sessions

    Managing the database

    Real-time SQL monitoring

    Creating your own reports

    Getting started

    Creating folders

    Storing reports

    Creating general reports

    Building general tabular reports

    Adding bind variables

    Drilling down through reports

    Creating a drill-down report

    Master-detail reports

    Creating master-detail reports

    Creating sibling details

    Adding charts

    Building other graphical reports

    Creating pie chart reports

    Using gauges in reporting

    Other reports styles

    Using the Script style report

    Using PL/SQL in a report

    Sharing reports

    Copying and reusing reports

    Importing and exporting

    Sharing reports through user defined extensions

    Summary

    5. Working with PL/SQL

    Creating PL/SQL code

    Writing PL/SQL in the SQL Worksheet

    Using code insight

    Using code snippets and code templates

    Creating and compiling PL/SQL program units

    Working with triggers

    Using the Create Trigger dialog

    Creating INSTEAD OF triggers

    Creating system triggers on the database or schema

    Viewing trigger details

    Controlling triggers

    Adding triggers that populate columns

    Adding functions or procedures

    Editing program units

    Working with errors

    Testing and executing program units

    Creating packages

    Creating the body

    Reviewing a package

    Testing packages

    Editing code

    Refactoring code

    Searching for code

    Finding DB Object

    Debugging PL/SQL

    Debugging PL/SQL code

    Using the debugging mechanism in SQL Developer

    Using the Oracle debugging packages

    Debugging

    Navigating through the code

    Remote debugging

    Preparing for remote debugging

    Remote debugging with Application Express

    Summary

    6. SQL and PL/SQL Tuning Tools

    Support for tuning code in the SQL Worksheet

    Working with EXPLAIN PLAN

    Controlling the Explain Plan output

    Execution plan details

    Using Autotrace

    Additional performance tuning tools

    Using SQL reports

    Running the Top SQL reports

    Monitoring your environment

    Inspecting SQL trace files

    Profiling PL/SQL

    Getting started

    Preparing the environment

    Reviewing the output

    Summary

    7. Managing Files

    Introducing source code control

    Overview

    Ways of working

    The repository is the point of truth

    SQL Developer integration

    Subversion (SVN)

    Concurrent Versions System (CVS)

    Other version control systems

    Getting started

    Invoking the Files navigator

    Browsing and editing files

    Reviewing the file editors

    Editing other file types

    Working with the file history

    Introducing the Versioning Navigator

    Managing general version control preferences

    Setting up the repository

    Working with the Subversion repository

    Adding CVS repositories

    Creating connections to a version repository

    Browsing files in the repository

    Working with files under version control

    Placing files under version control

    Importing files into the repository

    Working with directories

    Performing a Check Out after import

    Refreshing the repository

    Understanding revision numbers

    Checking out files

    Identifying checked out files

    Tracking the working copy

    Saving files

    Pending changes preferences

    Checking files in

    Updating the working copy

    Reverting changes

    Committing changes to the repository

    Comparing and merging code

    Creating patches

    Summary

    8. Importing, Exporting, and Working with Data

    Exporting data

    Exporting instance data

    Setting up the export file

    Exporting SQL DML

    Exporting to HTML

    Supporting export for SQL*Loader

    Exporting to Microsoft Excel

    Exporting to XML

    Exporting DDL (Metadata)

    Exporting table DDL

    Selecting multiple tables for DDL export

    Using the Database Export wizard to export DDL and data

    Starting the export wizard

    Selecting objects for generation

    Specifying objects

    Specifying data

    Running the script

    Importing data

    Importing data from SQL script files

    Importing data from XLS and CSV files

    Creating a table on XLS import

    Using the Database Copy wizard

    Comparing the database copy alternatives

    Running the Database Copy wizard

    Comparing schemas

    Summary

    9. Database Connections and JDBC Drivers

    Working with Oracle connections

    Using alternative Oracle connection types

    Reviewing the Basic connection

    Accessing the tnsnames.ora file

    Accessing LDAP server details

    Creating advanced connections with JDBC URLs

    Connecting to Oracle TimesTen

    Reviewing JDBC drivers

    Oracle JDBC thin driver (Type IV driver)

    Oracle JDBC thick driver (Type II driver)

    SQL Developers shipped drivers

    Fixing connection errors

    Using different authentication methods

    OS Authentication

    Setting the database environment variables

    Creating a connection using OS Authentication

    Using Proxy authentication

    Using Kerberos authentication

    Implementing Kerberos authentication in SQL Developer

    Kerberos authentication using the thin JDBC driver

    Kerberos authentication using the thick driver

    Set up the sqlnet.ora file

    Setting up the user

    Preparing the authentication ticket

    Connecting to Oracle using Kerberos, SQLNET, and SQL Developer

    Using RADIUS authentication

    Creating non-Oracle database connections

    Setting up JDBC drivers

    Using Check for Updates

    Manually adding JDBC drivers

    Creating connections to the third-party databases

    Connecting to IBM DB2

    Microsoft Access

    Connecting to Sybase Adaptive Server or Microsoft SQL Server

    Connecting to MySQL

    Organizing your connections

    Creating folders

    Working with folders

    Managing folders

    Exporting and importing connections

    Summary

    10. Introducing SQL Developer Data Modeler

    Oracle SQL Developer Data Modeler

    Feature overview

    Integrated architecture

    Getting started

    Installing and setting up the environment

    Oracle clients and JDBC drivers

    Creating your first models

    Importing from the Data Dictionary

    Creating a database connection

    Using the import wizard

    Reviewing the results

    Saving designs

    Working with diagrams and their components

    Formatting the elements

    Changing the default format settings

    Setting general diagram properties

    Creating subviews and displays

    Adding subviews to your design

    Adding displays

    Creating a composite view

    Controlling the layout

    Adjusting the level of detail displayed

    Adjusting the width and height across the model

    Controlling alignment

    Working with lines

    Managing lines with elbows

    Managing straight lines

    Analysis, design, and generation

    Flow of work

    Starting with analysis (top down)

    Importing existing models (bottom up)

    Building the relational model

    Logical models

    Creating an ERD

    Creating entities

    Adding attributes

    Working with relationships

    Creating arcs

    Supporting alternate notations

    Supporting subtypes and supertypes

    Creating constraints, domains, and setting default values

    Working with domains

    Creating domains

    Using domains to implement check constraints

    Assigning domain valid values to an attribute or column

    Setting valid values at attribute or column level

    Adding a default value

    Introducing forward and reverse engineering

    Forward engineering

    General engineering dialog features

    Maintaining the model layout

    Reverse engineering models

    Creating relational models

    Working with the relational model

    Creating a table and adding columns

    Including Foreign Key constraints

    Setting naming standards templates

    Applying the templates to the model

    Updating the object names prefix

    Building the physical model

    Importing a schema from the data dictionary

    Creating a new physical model

    Adding new database sites

    Reviewing physical properties

    Propagate properties

    Generating the DDL

    Reviewing and applying Design Rules

    Generating the DDL script

    Updating an existing schema

    Integration with Oracle SQL Developer

    Creating a new model

    Creating and running reports

    Setting up the reporting schema

    Summary

    11. Extending SQL Developer

    Introducing extensibility

    Extensibility in SQL Developer

    Who builds extensions?

    Why extend?

    SQL Developer XML extension types

    Adding an XML extension

    Sharing user-defined reports

    Adding display editors

    Examples of display editors

    Include subpartitions

    Use restricted queries

    Add display editors for new navigator nodes

    Building the XML file for a display editor

    Working with context menus

    Adding a context menu to the connections menus

    Passing parameters

    Creating a utility using context menus

    Including the user-defined extension for context menus

    Adding new nodes to the Connections navigator

    Including user-defined extensions for a navigator node

    Adding a new tree to the navigator

    Adding multiple nodes

    Reviewing an example

    Adding support for dimensions

    Adding a dimensions navigator

    Adding dimension display editors

    Adding context menus

    Working with extensions

    Controlling existing extensions

    Adding in new Java extensions

    Removing extensions

    Sharing extensions

    Summary

    12. Working with Application Express

    Setting the scene

    Setting up in Application Express

    Creating a workspace and database schema

    Creating an Application Express user

    Browsing applications in SQL Developer

    Creating a connection in SQL Developer

    Browsing and working with schema objects

    Browsing the applications

    Drilling down into lists of values

    Focusing on pages

    Mapping objects in SQL Developer to Application Express

    Tuning SQL and PL/SQL code using SQL Developer

    Working with Region Source SQL

    Tuning with Explain Plan

    Working with PL/SQL code

    Replacing the anonymous block in Application Express

    Managing applications in SQL Developer

    Importing applications

    Modifying applications

    Deploying applications

    Controlling services

    Reporting on applications using SQL Developer

    Summary

    13. Working with SQL Developer Migrations

    Introducing SQL Developer Migrations

    An overview of the migration process

    Offline or online migration choices

    Supported third-party databases

    Setting up your environment

    Setting up the JDBC drivers

    Creating third-party connections

    Accessing non-Oracle databases

    Browsing database objects

    Using the SQL Worksheet

    Managing the repository

    Creating the repository

    Associating a repository with a user

    Planning database connections

    Setting up the source database connection

    Setting up the target database connection

    Migrating

    Using Quick Migrate

    The migration

    Verifying the results

    Delving into a complex migration

    Preparing for the migration

    Offline versus online migration

    Capturing the model

    Reviewing the captured model

    Updating the model

    Converting objects at a more granular level

    Converting the model

    Setting the conversion data mapping

    Reviewing the logs

    Translating procedural code

    Generating the scripts

    Executing the script

    Populating the target tables with data

    Offline migrations

    Additional migration activities

    Migration reports

    Summary

    Index

    Oracle SQL Developer 2.1

    Sue Harper


    Oracle SQL Developer 2.1

    Copyright © 2009 Packt Publishing

    All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

    Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

    Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

    First published: November 2009

    Production Reference: 1171109

    Published by Packt Publishing Ltd.

    32 Lincoln Road

    Olton

    Birmingham, B27 6PA, UK.

    ISBN 978-1-847196-26-2

    www.packtpub.com

    Cover Image by Sue Harper (<sue.harper@oracle.com>)

    Credits

    Author

    Sue Harper

    Reviewers

    Barry McGillin

    Michael Wickham

    Dermot O'Neill

    Joyce Scapicchio

    Kris Rice

    Raghvendra Saboo

    Vadim Tropashko

    Acquisition Editor

    James Lumsden

    Development Editor

    Ved Prakash Jha

    Technical Editor

    Hithesh Uchil

    Indexer

    Monica Ajmera

    Editorial Team Leader

    Akshara Aware

    Project Team Leader

    Priya Mukherji

    Project Coordinator

    Leena Purkait

    Proofreader

    Joel T. Johnson

    Graphics

    Nilesh R. Mohite

    Production Coordinator

    Adline Swetha Jesuthas

    Cover Work

    Adline Swetha Jesuthas

    About the Author

    Sue Harper is a product manager for Oracle SQL Developer, SQL Developer Data Modeler, and SQL Developer Migrations working in the Database Development Tools group at Oracle. She has a BSc in Mathematics and Physics from the University of the Witwatersrand, Johannesburg, and a post graduate teaching diploma. It was this teaching qualification that opened the doors to working with Oracle products in South Africa, where Sue started as an instructor in 1992, teaching SQL, PL/SQL, and SQL Forms and Reports. Before long, she'd added Oracle Designer to her repertoire and soon left for the UK to join the Oracle Designer curriculum development team. Sue was a course writer and then an Oracle Designer product manager, traveling extensively, meeting customers, presenting at conferences, and running train-the-trainer classes. Later, she became a product manager for Oracle JDeveloper working with the database and modeling tools and helping the Orac le Designer community learn about the new tools, before moving to the Database Development Tools group.

    Based at home, Sue works with her team scattered around the world and with customers. She runs web-based training sessions and writes supporting material for the products. She frequently attends and presents at conferences and has a number of blogs, which she contributes to sporadically.

    Sue lives in West London, where she enjoys walking her dog in the extensive local parks. As a walker, her favorite stomping ground is the Drakensberg in South Africa. With the 'berg' too many miles away, any local hills will do. As a keen photographer, she now enjoys the long distance trails in the UK and is often out in the countryside with her camera.

    Acknowledgement

    I'd like to thank the people who have helped me complete this book. In particular Barry McGillin, who reviewed each chapter for technical errors, and Michael Wickham, who joined Barry, to add his technical insight when my writing became more sporadic and the chapters backed up! The editorial staff and publishing team at Packt who patiently accepted each new delay to the schedule, while gently reminding me of the ever-encroaching deadlines.

    I'd like to thank my friends who patiently listened each time I said I couldn't go out, because I was writing... even those in different countries who were also on the receiving end of my tales that life had become seven-days SQL Developer!

    I wasn't planning on writing a book. Working with the product, the team, and customers keeps me busy enough, but there seemed to be more demand for a source of answers to the many questions that bubble up to the surface from forums and events, that it seemed a good thing to do. Believe it or not, I enjoyed it. This would not have been possible without the support of my team, which I am very happy to be a part of. Despite the distances, we are in regular contact, whether chatting to team members in Ireland or Northern Ireland, India or Bulgaria, or in any of the various States of America. We know that we can pick up the phone or dash off a quick instant messenger note and have a chat or ask a question. In particular, I'd like to thank my manager, Kris Rice, and Mike Hichwa who runs the group. Without their guidance and support, the team wouldn't work the way it does, a rare gift when managing a remote and culturally disparate group. Kris in particular, who has his hands full helping me keep things in perspective and constantly tries to help me maintain the balance.

    About the Reviewers

    Barry McGillin is the development manager for Oracle SQL Developer and has been with Oracle over 15 years. He is married to Lisa with two children, Rebecca and Katie-Ellen. Barry holds an honors degree in Computing and Information Systems from the University of Ulster and lives in Omagh, Northern Ireland. He has worked across most business areas in Oracle, from product development support and consulting, specializing in core database technology, and database migration, before working with Sue Harper and Kris Rice on Oracle SQL Developer. Barry has worked on several books as a Reviewer and Technical Advisor over the years, culminating in this work with Sue.

    I'd like to thank Sue for asking me to review this book. She has a passion for completeness and accuracy, which has helped us create better tools for our customers. I'd also like to thank my family, my wife Lisa for patience, love and support, and the tea and coffee. And lastly, my two little ladies, Rebecca and Katie-Ellen who constantly challenge us to answer the questions of life and force us to be better as a result of trying to.

    Michael Wickham is the Global Technical Lead for SQL Developer at Oracle Technical Support. He has a Bachelors Degree and Masters Degree in Computer Science from Colorado Technical University, an Associates Degree in Electronics and an Associates Degree in Aviation.

    Michael may be reached at <mwickham_1@comcast.net>

    Other interests are Videography and Hydroponics.

    I would like to thank Sue Harper who has authored this book. For the years of assistance that she has given me and for all she has done for the advancement of Oracle Tools such as Oracle Designer, SQL Developer, SQL Developer Data Modeler, and others.

    Preface

    Oracle SQL Developer is a relatively new product included in the range of Oracle products. It was first introduced to the world in September 2005, by its code name Project Raptor. Raptor is a name many still cling to, despite being replaced very quickly with the full product name, Oracle SQL Developer (and referred to in the rest of the book as SQL Developer). The first production version was released in early 2006 and had many Oracle customers both skeptical and excited.

    SQL Developer is a Graphical User Interface (GUI) for browsing and working with databases. Primarily developed for the Oracle database, it also provides a GUI for a selection of popular non-Oracle databases. As technology has evolved, many developers are looking for modern tools to assist them in daily tasks. A clean, easy to navigate interface is essential and many tools are judged on looks, performance, and functionality.

    Initially billed as a light-weight, clean, easy to install GUI for the Oracle database, SQL Developer is gaining momentum in the market and broadening its scope in its offering.

    The skeptics mentioned are ever concerned that Oracle is not really interested in the product, backing up this concern with the fact that SQL Developer is free. Disappointing as it is that free is equated with poor quality, the last couple of years have considerably stilled many of these dissenting voices and the market using SQL Developer continues to increase. Time will tell.

    What this book covers

    The book is designed to allow you to dip into any chapter that is your current area of focus. Having said that, if you have never used SQL Developer before, are new to Oracle and SQL, or have never used a GUI tool before, we recommend that you read the introduction, which gets you started slowly. You can then work through the first few chapters in order. Once you have covered the first three chapters, you should be on your way.

    As the chapters progress, while they do not necessarily get more complex, they do rely to some extent on existing knowledge. The latter portion of the book is not considered to be more complex, but instead focuses on areas used by specific target audiences, such as Oracle Application Express or migrating from non-Oracle databases.

    We have loosely divided the book into the following three sections.

    I: Getting started

    The first few chapters introduce SQL Developer. Use them to get to know the layout of the product and the essential features it provides. For those new to Oracle, or application developers who spend the day using other development tools, these first few chapters may be the only chapters needed.

    In Chapter 1: Getting Started with Oracle SQL Developer, we provide general information about SQL Developer, where you can find it, how to install it, and how to get started. Using a simple example, you quickly walk through the product, touching a variety of areas to get a feel for the navigation, the layout, and some of the features available. We introduce the environment, how to navigate and manage the interface, the database, and schemas used in this book. The chapter includes tips for customizing the environment to suit your preferences.

    In Chapter 2: Browsing and Editing Database Objects and Data, you will create, edit, and update database objects, such as tables, views, sequences, and instance data (the data in those tables), using data grids. You'll also learn how to access and use the utilities, wizards, and dialogs, which SQL Developer provides, to work with data and database objects. Lastly, you will use SQL commands and scripts, accessing the code formatter and other assistants that separate a GUI tool from a command–line environment.

    In Chapter 3: Working with the SQL Worksheet, you see that the SQL Worksheet provides a scratch pad for all SQL, PL/SQL, and SQL*Plus statements and commands. In this chapter, you learn to work with the SQL Worksheet and the commands it supports, how to use code insight, templates, snippets, and formatting code. You learn how to manage the environment and to work with multiple worksheets. We introduce the Query Builder and how to write, test, and run SQL queries using the Query Builder.

    In Chapter 4: The Power of SQL Reports, you look at the variety of SQL reports provided by SQL Developer, why they are useful in daily tasks, and how to run and use them. You'll learn how to create your own reports, such as master-detail or drill-down reports, and share your user-defined reports.

    II: Delving a little deeper

    These chapters are intended for all developers, perhaps more focused on those of you who spend your days working with database objects and data. While not strictly advanced features, there are areas here that can be more involved, and knowledge of how the tool works will complement your existing knowledge of developing and working with code.

    In Chapter 5: Working with PL/SQL, we start by reviewing various PL/SQL structures. This chapter covers creating, editing, compiling, and debugging PL/SQL code. You'll see how the various search tools work, and use code templates and snippets. You'll learn how to refactor PL/SQL code, and search using the Oracle Database 11g PL/Scope feature.

    Chapter 6: SQL and PL/SQL Tuning Tools. Although not designed to teach you how to optimize your code, this chapter shows you the different utilities that SQL Developer provides to help you see problem areas and work at fixing them. Utilities include using Explain Plan, reviewing trace files, and auto trace.

    In Chapter 7: Managing Files, you'll see that SQL Developer provides an integrated file navigator that allows you to browse the file system and open files from within the tool. This chapter introduces the file navigator and the features it supports. Working in conjunction with the file navigator, SQL Developer integrates with open source version control systems. This chapter discusses the alternatives and shows you how to place your code under version control and work within a team sharing code, by comparing and merging code.

    In Chapter 8: Importing, Exporting, and Working with Data, you'll learn how SQL Developer provides a number of utilities for moving or copying both the data structures and the instance data between schemas and databases. This chapter introduces you to the schema copy, diff, and export wizards and related export and import utilities.

    III: Focus areas

    The last few chapters are focused on specific audiences. We don't specifically cover complex features, but there are aspects of some of these features that require knowledge beyond the scope of this book.

    In Chapter 9: Database Connections and JDBC Driverstext, we'll look at the various types of database connections available, how to set them up, and when to use them. We'll look at various authentication methods, such as LDAP, OS authentication or strong authentication methods like Kerberos, and compare Basic, TNS, and JDBC connections.

    This chapter also looks at setting up the required JDBC drivers and creating connections to non-Oracle databases. The chapter closes with a section on managing your connections.

    Chapter 10: Introducing SQL Developer Data Modeler. Whether you just want a diagram of how your tables connect, or you want to build an entity relationship diagram, transform that to a relational model, and generate the DDL script to create the objects in your database, the SQL Developer Data Modeler provides the tools you need. This chapter introduces some of the modeling utilities available in SQL Developer Data Modeler. You'll also learn about the integration points with SQL Developer and the Data Modeler Viewer in SQL Developer.

    In Chapter 11: Extending SQL Developer, you'll see that SQL Developer is an extensible tool. This means you, as an end user of the tool, can add in your own features. These may be small, providing just a single input or output field, and only require XML and SQL knowledge, while others are more extensive and require Java skills. This chapter reviews the various ways you can extend SQL Developer using SQL and XML.

    In Chapter 12: Working with Application Express, you'll see how SQL Developer connects to and provides utilities for interacting with Application Express (Oracle APEX). In this chapter, features you'll learn to use include setting up the environment to work with Oracle APEX, importing, browsing, and deploying applications. You'll also see how to tune and refactor SQL and PL/SQL code.

    In Chapter 13: Working with SQL Developer Migrations, you'll understand how SQL Developer helps you connect to and browse non-Oracle or third-party databases. This chapter looks at preparing the SQL Developer environment, and browsing the supported third-party databases. The focus of the chapter is on migrating from a third-party database to Oracle, from setting up the repository, through the capture and conversion phases, and ending with data migration. You'll also learn to translate pieces of code, such as translating T-SQL to PL/SQL.

    Standards and assumptions

    Unless otherwise stated, the environment used in the examples and referred to

    Enjoying the preview?
    Page 1 of 1