Oracle® SQL Developer

Oracle? SQL Developer

User's Guide Release 1.5

E12152-07

August 2013 Provides conceptual and usage information about Oracle SQL Developer, a graphical tool that enables you to browse, create, edit, and delete (drop) database objects; run SQL statements and scripts; edit and debug PL/SQL code; manipulate and export data; migrate third-party databases to Oracle; view metadata and data in third-party databases; and view and create reports.

Oracle SQL Developer User's Guide, Release 1.5

E12152-07

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

Primary Author: Chuck Murray

This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.

The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.

If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:

U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.

This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.

Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.

This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.

Contents

Preface ............................................................................................................................................................... xiii

Audience..................................................................................................................................................... xiii Documentation Accessibility ................................................................................................................... xiii Related Documents ................................................................................................................................... xiii Conventions ............................................................................................................................................... xiii Third-Party License Information............................................................................................................. xiv

1 SQL Developer Concepts and Usage

1.1 Installing and Getting Started with SQL Developer.............................................................. 1-2

1.2 SQL Developer User Interface................................................................................................... 1-2

1.2.1

Menus for SQL Developer.................................................................................................. 1-6

1.2.2

Restoring the Original "Look and Feel"............................................................................ 1-9

1.3 Database Objects ......................................................................................................................... 1-9

1.3.1

Applications (Application Express 3.0.1 and Later) .................................................... 1-10

1.3.2

Cache Groups (Oracle TimesTen In-Memory Database) ............................................ 1-10

1.3.3

Database Links (Public and Private) .............................................................................. 1-11

1.3.4

Directories .......................................................................................................................... 1-11

1.3.5

Functions............................................................................................................................ 1-11

1.3.6

Indexes................................................................................................................................ 1-12

1.3.7

Java Sources ....................................................................................................................... 1-12

1.3.8

Materialized Views........................................................................................................... 1-12

1.3.9

Materialized View Logs ................................................................................................... 1-12

1.3.10

Packages ............................................................................................................................. 1-13

1.3.11

Procedures ......................................................................................................................... 1-13

1.3.12

Queues................................................................................................................................ 1-14

1.3.13

Queue Tables ..................................................................................................................... 1-14

1.3.14

Recycle Bin......................................................................................................................... 1-14

1.3.15

Replication Schemes (Oracle TimesTen In-Memory Database)................................. 1-14

1.3.16

Sequences ........................................................................................................................... 1-15

1.3.17

Synonyms (Public and Private) ...................................................................................... 1-15

1.3.18

Tables.................................................................................................................................. 1-15

1.3.18.1

Flashback Table Support .......................................................................................... 1-16

1.3.19

Triggers .............................................................................................................................. 1-17

1.3.20

Types................................................................................................................................... 1-17

1.3.21

Users (Other Users) .......................................................................................................... 1-17

iii

1.3.22

Views ..................................................................................................................................

1.3.23

XML Schemas ....................................................................................................................

1.3.24

Captured and Converted Database Objects (for Migration) ......................................

1.4 Database Connections .............................................................................................................

1.4.1

Using Folders to Group Connections ............................................................................

1.4.2

Sharing of Connections ....................................................................................................

1.4.3

Advanced Security for JDBC Connection to the Database .........................................

1.4.4

Connections with Operating System (OS) Authentication.........................................

1.4.5

Connections with Proxy Authentication .......................................................................

1.5 Entering and Modifying Data ................................................................................................

1.6 Running and Debugging Functions and Procedures .........................................................

1.6.1

Using Bookmarks When Editing Functions and Procedures .....................................

1.6.2

Remote Debugging ...........................................................................................................

1.6.3

Displaying SQL Trace (.trc) Files ....................................................................................

1.6.4

Using the PL/SQL Hierarchical Profiler .......................................................................

1.6.5

Setting Expression Watches ............................................................................................

1.7 Using the SQL Worksheet.......................................................................................................

1.7.1

SQL*Plus Statements Supported and Not Supported in SQL Worksheet................

1.7.2

Script Runner.....................................................................................................................

1.7.3

Execution Plan...................................................................................................................

1.7.4

Autotrace Pane ..................................................................................................................

1.7.5

DBMS Output Pane ..........................................................................................................

1.7.6

OWA Output Pane ...........................................................................................................

1.7.7

SQL History .......................................................................................................................

1.7.8

Gauges: In the SQL Worksheet and User-Defined Reports........................................

1.8 Using Snippets to Insert Code Fragments............................................................................

1.8.1

User-Defined Snippets .....................................................................................................

1.9 Using Find DB Object to Find Database Objects .................................................................

1.10 Using Extended Search ...........................................................................................................

1.11 Using Versioning .....................................................................................................................

1.11.1

About CVS and SQL Developer .....................................................................................

1.11.1.1

Pending Changes (CVS) ...........................................................................................

1.11.2

About Subversion and SQL Developer .........................................................................

1.12 SQL Developer Reports...........................................................................................................

1.12.1

About Your Database reports .........................................................................................

1.12.2

All Objects reports ............................................................................................................

1.12.3

Application Express reports............................................................................................

1.12.4

ASH and AWR reports.....................................................................................................

1.12.5

Charts reports....................................................................................................................

1.12.6

Database Administration reports ...................................................................................

1.12.7

Data Dictionary reports ...................................................................................................

1.12.8

Jobs reports ........................................................................................................................

1.12.9

PL/SQL reports.................................................................................................................

1.12.10 Security reports .................................................................................................................

1.12.11 Streams reports .................................................................................................................

1.12.12 Table reports......................................................................................................................

1.12.13 XML reports.......................................................................................................................

1-17 1-17 1-18 1-18 1-20 1-20 1-20 1-21 1-21 1-21 1-23 1-25 1-26 1-26 1-26 1-27 1-27 1-30 1-31 1-31 1-32 1-32 1-32 1-33 1-33 1-34 1-34 1-35 1-35 1-36 1-37 1-37 1-37 1-38 1-39 1-39 1-40 1-40 1-40 1-40 1-41 1-41 1-41 1-41 1-42 1-42 1-44

iv

1.12.14 Migration reports..............................................................................................................

1.12.15 User Defined reports ........................................................................................................

1.12.15.1

User-Defined Report Example: Chart.....................................................................

1.12.15.2

User-Defined Report Example: Dynamic HTML..................................................

1.13 SQL Developer Preferences ....................................................................................................

1.13.1

Environment ......................................................................................................................

1.13.2

Accelerators (Keyboard Shortcuts) ................................................................................

1.13.3

Code Editor........................................................................................................................

1.13.4

Compare and Merge.........................................................................................................

1.13.5

Database .............................................................................................................................

1.13.6

Debugger............................................................................................................................

1.13.7

Extensions ..........................................................................................................................

1.13.8

File Types ...........................................................................................................................

1.13.9

Global Ignore List .............................................................................................................

1.13.10 Migration............................................................................................................................

1.13.11 Versioning..........................................................................................................................

1.13.12 Web Browser and Proxy ..................................................................................................

1.14 Location of User-Related Information ..................................................................................

1.15 Oracle TimesTen In-Memory Database Support.................................................................

1.16 Using the Help..........................................................................................................................

1.17 For More Information..............................................................................................................

1-44 1-44 1-44 1-46 1-46 1-46 1-47 1-47 1-49 1-50 1-54 1-54 1-55 1-55 1-55 1-58 1-61 1-61 1-62 1-63 1-63

2 Migrating Third-Party Databases

2.1 Migration Quick Start................................................................................................................. 2-2

2.1.1

Standard Migration ............................................................................................................. 2-2

2.1.2

Quick Migration................................................................................................................... 2-3

2.2 Overview of Migration............................................................................................................... 2-5

2.2.1

How Migration Works ........................................................................................................ 2-5

2.2.2

Migration Implemented as SQL Developer Extensions................................................. 2-6

2.3 Preparing a Migration Plan ....................................................................................................... 2-6

2.3.1

Task 1: Determining the Requirements of the Migration Project ................................. 2-6

2.3.2

Task 2: Estimating Workload ............................................................................................. 2-8

2.3.3

Task 3: Analyzing Operational Requirements ................................................................ 2-9

2.3.4

Task 4: Analyzing the Application.................................................................................... 2-9

2.3.5

Task 5: Planning the Migration Project.......................................................................... 2-10

2.4 Before You Start Migrating: General Information............................................................... 2-10

2.4.1

Creating a Database User for the Migration Repository............................................. 2-11

2.4.2

Requirements for Creating the Destination Oracle Objects........................................ 2-11

2.5 Before You Start Migrating: Source-Specific Information.................................................. 2-12

2.5.1

Before Migrating From Microsoft SQL Server or Sybase Adaptive Server.............. 2-12

2.5.2

Before Migrating From Microsoft Access...................................................................... 2-13

2.5.2.1

Creating Microsoft Access XML Files..................................................................... 2-15

2.5.3

Before Migrating From MySQL...................................................................................... 2-15

2.6 Capturing the Source Database ............................................................................................. 2-15

2.6.1

Online Capture.................................................................................................................. 2-16

2.6.2

Offline Capture ................................................................................................................. 2-16

2.7 Creating and Customizing the Converted Model............................................................... 2-17

v

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download