Manual Sqldeveloper
Manual Sqldeveloper
Manual Sqldeveloper
C-2 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Objectives
In this appendix, you are introduced to the graphical tool called SQL Developer. You learn how to
use SQL Developer for your database development tasks. You learn how to use SQL Worksheet to
execute SQL statements and SQL scripts.
SQL Developer
C-3 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
C-4 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
C-5 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
C-7 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
1 2
C-8 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Use the Files Navigator to explore the file system and open
system files.
2 4 6 8
1 3 5 7 9
Enter SQL
statements.
Results are
shown here.
F9 F5
F5
F9
Identify a location,
The contents of the saved
2 enter a file name,
3 file are visible and editable and click Save.
in your SQL Worksheet
window.
Before
formatting
After
formatting
Using Snippets
You may want to use certain code fragments when you use the SQL Worksheet, or create or edit a
PL/SQL function or procedure. SQL Developer has a feature called Snippets, which are code
fragments such as SQL functions, Optimizer hints, and miscellaneous PL/SQL programming
techniques. You can drag Snippets into the Editor window.
To display Snippets, select View > Snippets.
The Snippets window is displayed at the right. You can use the drop-down list to select a group. A
Snippets button is placed in the right window margin, so that you can display the Snippets
window if it becomes hidden.
Inserting a
Snippet
Editing the
Snippet
Database Reporting
SQL Developer provides many reports about the database and its objects. These reports can be
grouped into the following categories:
• About Your Database reports
• Database Administration reports
• Table reports
• PL/SQL reports
• Security reports
• XML reports
• Jobs reports
• Streams reports
• All Objects reports
• Data Dictionary reports
• User-defined reports
To display reports, click the Reports tab to the left of the window. Individual reports are displayed
in tabbed panes at the right of the window. For each report, you can select (using a drop-down list)
the database connection for which to display the report. For reports about objects, the objects
shown are only those visible to the database user associated with the selected database connection,
and the rows are usually ordered by Owner. You can also create your own user-defined reports.
Shortcuts to
frequently used tools
1
Links to popular
search engines and
discussion forums
Setting Preferences
You can customize many aspects of the SQL Developer interface and environment by modifying
the SQL Developer preferences according to your requirements. To modify the SQL Developer
preferences, select Tools, and then Preferences.
The preferences are grouped into the following categories:
• Environment
• Accelerators (Keyboard shortcuts)
• Code Editors
• Database
• Debugger
• Documentation
• Extensions
• File Types
• Migration
• PL/SQL Compilers
• PL/SQL Debugger, and so on
Summary
SQL Developer is a free graphical tool to simplify database development tasks. Using SQL
Developer, you can browse, create, and edit database objects. You can use SQL Worksheet to run
SQL statements and scripts. SQL Developer enables you to create and save your own special set
of reports for repeated use.