User Guide: SQL Navigator 7.6
User Guide: SQL Navigator 7.6
User Guide
Copyright 2019 Quest Software Inc. ALL RIGHTS RESERVED.
This guide contains proprietary information protected by copyright. The software described in this guide is furnished under a
software license or nondisclosure agreement. This software may be used or copied only in accordance with the terms of the
applicable agreement. No part of this guide may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying and recording for any purpose other than the purchaser’s personal use without the written
permission of Quest Software Inc.
The information in this document is provided in connection with Quest Software products. No license, express or implied, by
estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Quest Software
products. EXCEPT AS SET FORTH IN THE TERMS AND CONDITIONS AS SPECIFIED IN THE LICENSE AGREEMENT FOR
THIS PRODUCT, QUEST SOFTWARE ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED
OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT
SHALL QUEST SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR
INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS
INTERRUPTION OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT,
EVEN IF QUEST SOFTWARE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Quest Software makes no
representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right
to make changes to specifications and product descriptions at any time without notice. Quest Software does not make any
commitment to update the information contained in this document.
If you have any questions regarding your potential use of this material, contact:
Quest Software Inc.
Attn: LEGAL Dept
4 Polaris Way
Aliso Viejo, CA 92656
Refer to our Web site (www.quest.com) for regional and international office information.
Patents
Quest Software is proud of our advanced technology. Patents and pending patents may apply to this product. For the most current
information about applicable patents for this product, please visit our website at www.quest.com/legal.
Trademarks
Quest, Toad, Toad World, SQL Navigator, Benchmark Factory and the Quest logo are trademarks and
registered trademarks of Quest Software Inc. For a complete list of Quest marks, visit www.quest.com/legal. All
other trademarks and registered trademarks are property of their respective owners.
Legend
CAUTION: A CAUTION icon indicates potential damage to hardware or loss of data if instructions
are not followed.
WARNING: A WARNING icon indicates a potential for property damage, personal injury, or death.
IMPORTANT NOTE, NOTE, TIP, MOBILE, or VIDEO: An information icon indicates supporting
information.
Quick Overview 14
Better code, faster. 14
Who should use SQL Navigator? 14
Enter A New Authorization Key 14
Check for Updates 15
Navigation 21
Main Menu 21
File Menu 21
Edit Menu 22
Search Menu 24
View Menu 24
Session Menu 26
Object Menu 27
Tools Menu 30
Team Coding Menu 33
Help Menu 34
Task Bar 35
Toolbars 35
Component List 36
Connection Category Color 40
Main Menu Keyboard Shortcuts 41
Customize The Screen Layout 43
Float / Dock 43
Toolbars in the Main Window 44
Main Menu Bar 44
Oracle Logon 45
Code Editor 52
SQL Development 52
PL/SQL Development 52
Toolbox 53
Code Editor SQL 53
General Code Editor Functions 53
SQL Specific Functions 54
Team Coding Version Control 56
Tools and Applications 57
Code Editor PL/SQL 58
General Code Editor Functions 58
PL/SQL Specific Functions 59
Team Coding Version Control 60
Tools and Applications 61
Edit, Compile And Execute 61
SQL*Plus command support 66
Executing Scripts Invoked By At Sign (@) or Double At Sign (@@) SQL*Plus Commands 67
Connect To A Database Via The Code Editor 67
Bind Variables 67
Auto Code Completion 68
Scan Defines/Substitutions 68
Specifying substitution variables in SQL statements 69
DEFINE and UNDEFINE 70
New Stored Object Dialog 70
SQL Statement CRUD Matrix Dialog 71
SQL Query Results 71
SQL Query Results Data Grid 71
Quick Overview
Oracle Sessions
Icon Menu Description
Session Connect to an Oracle database instance / Open a new Oracle session. Manage your
Menu | database connections.
New
Open the Oracle Logon Dialog.
Session
TIP: SQL Navigator saves your connection profiles in the Project Manager window
for easy access.
l You can set up multiple sessions with one or many database instances.
l Each session-related window (code editor, object editor, and so on)
remembers and automatically opens in the appropriate database session.
Send to Inside the Code Editor, while editing SQL code, you can send the current Code Editor tab
Session or a selected piece of code to another session. Highlight the code and click Send to New
Session. For more information, see Code Editor SQL on page 53.
Task SQL Navigator executes long-running tasks in separate threads in the background. The
Manager Task Manager is a display of all active and complete tasks for the current session.
Finding Objects
SQL Navigator gives you several convenient point-and-click options for quick access to database objects.
Database Search stored programs, triggers and views for a character string in the source code.
Source
Code TIP: You can use this utility to perform a quick "where-used" impact analysis.
Search
Locate In Show the location of the current database object (for example, the one you are editing) in
Tree the DB Navigator hierarchy. Expand all intermediate nodes in the DB Navigator tree and
display the object’s detail view.
Project The Project Manager provides instant access to your frequently used database objects and
Manager connections. Projects are holding areas where you can store shortcuts to things that you
frequently need to work with instead of searching for them in various lists and directories.
TIP: To find an object in DB Navigator from Project Manager: Right click on the
object in Project Manager and select Locate in DB Navigator. This opens the DB
Navigator window, expands tree nodes as necessary, and displays the details of the
selected object.
TIP:
TIP: Another way to open an object for editing - drag the object from:
l DB Navigator
l Find objects Dialog
l Project Manager
Describe The Oracle DESCRIBE command reports the attributes, methods and arguments of an
object type. With the SQL Navigator Describe command you can describe not only
procedures, functions, packages, synonyms, and object types, but also tables, indexes,
clusters and objects.
Web Development
The SQL Navigator Web Development module provides an integrated development environment with advanced
coding, testing, and viewing of PL/SQL programs for the Oracle Web server. This allows users to develop the
PL/SQL code independent of the web server and view the HTML in an integrated web browser, thereby
eliminating the need to switch from their coding environment to an external browser. The stored procedure will
output the HTML code via the Oracle Web Cartridge.
Capture Web Enable the web server. Each time you execute PL/SQL code, the generated HTML
Output is displayed in the HTML viewer.
Web Support Enter details of your Web server’s configuration.
Configuration
Dialog
Code Editor Code Web Server Procedures. The editor includes drag and drop coding for Web
toolkit packages, including htp and htf items. Execute the procedure.
HTML Viewer View HTML pages.
Publish Java to PL/SQL Create a PL/SQL package from a Java class stored in the database.
Analyze Tool View and collect statistics, validate structure and list chained rows for database
structures such as tables, clusters and indexes.
Explain Plan Analyze the execution of a single SQL statement. By examining the execution plan,
Tool you can see exactly how Oracle executes your SQL statement, and how it can be
improved.
ER Diagram Model a table and graphically see the dependencies and joins to other tables.
Integration Benchmark Factory® is a highly scalable load testing, capacity planning and
with performance tuning tool capable of simulating thousands of users accessing your
Benchmark database, file, Internet and messaging servers.
Factory
Navigation
Main Menu
File Menu
Operations on files and projects, plus the Exit command.
New Project Open a new project window. See also Project Manager.
Use File | Reopen Project to return to the previous project.
Rename Rename the current project window. See also Project Manager.
Project
Delete Project Delete the current project window. See also Project Manager.
Save File As Save the file to disk. Optionally change the file name and location before
saving.
Print Print the file.
Edit Menu
Common text and code-editing actions.
Uncomment Remove the PL/SQL comment marks from the selected text
Code Editor
Nil Insert Menu Menu Name More Information
Icon
Open Open the database object referenced at the current cursor location.
Object at
Use to instantly find objects from stored programs or scripts, and open them in the
Cursor
Visual Object Editors.
Describe Show DESCRIBE information for the database object referenced at the current cursor
Object at location.
Search Menu
Find text, code and database objects.
Find Next Find the next occurrence as per Find and Replace
Find previous Find the previous occurrence as per Find and Replace
Find Objects Find one or more database objects matching a search argument.
Find objects Dialog
View Menu
Control what is displayed in the main application area.
Redo Log Group Open a new instance of the Redo Log Group
Editor Editor
Screen Layout Save up to ten layouts of dockable windows and recall them. For more information,
see Customize The Screen Layout on page 43.
Session Menu
Manage and configure your connection to the database.
New Session Connect to an Oracle database instance / Open a new Oracle session. Manage your
database connections, including to create a database connection.
Oracle Logon Dialog
Select Switch between open Oracle Sessions. Show the current Oracle session.
You can set up multiple sessions with one or many database instances.
Wallet Features to decrypt the table keys to encrypt or decrypt application data
Operations
Menu Icon Menu Name
Open Wallet
Close Wallet
Commit Commit all pending changes in all open editors for the current Oracle session.
Release any row or table locks held by the session.
Rollback Undo some or all of the changes made to the database during the current Oracle
session.
Release any row or table locks held by the session.
Empty Empty the recycle bin for the current Oracle session.
Recycle Bin
Reconnect Re-establish the database connection.
Close Close the current session. Close the Oracle connection. Disconnect from the Oracle
instance.
You can disconnect from an Oracle instance and remain connected to other
instances.
Object Menu
Operations on database objects.
Describe Show attributes, methods and arguments of the selected procedure, function, package,
synonym, table, index or cluster.
Ensure the required database connection is active.
Describe
See also Auto Describe Tool
Drop with Remove the selected object from the database permanently. Do not place the object in
Purge the Recycle Bin.
Extract Extract the DDL or other SQL statements that define the selected object or access control.
DDL On requesting Extract DDL the SQL Navigator Preferences open: View | Preferences
| Extract DDL | General.
SQL Navigator encloses non-alphanumeric and mixed-case object names inside double-
quotes
You may like to use DB Navigator to select object(s).
Extract DDL runs as a background task. See Task Manager.
Publish Create a PL/SQL package from the selected Java class stored in the database.
Java to
Execute Execute the selected stored program and display the results in the PL/SQL Execution
Console.
Quick Execute the SQL query for the selected table object in the Code Editor to view chained
Browse rows information.
See Quick Browse, SQL Query Results Data Grid
Edit Data Execute the SQL query for the selected table object in the Code Editor with Updateable
switched on.
See Edit Data, SQL Query Results Data Grid
Analyze View and collect statistics, validate structure and list chained rows for database structures
such as tables, clusters and indexes.
Analyze Tool
Truncate Remove all rows from a table and reset the STORAGE parameters to the values when
the table or cluster was created.
See also Task Manager.
To disable the Truncate command: View | Preferences | General | "Drop" and "Truncate"
safety options
Storage Oracle allocates space to objects in segments. Segments consist of contiguous sections
called extents.
For more information, see the Oracle documentation on the ALTER TABLE and ALTER
INDEX commands.
Locate in When an object is open in an editing window, and you want to see where that object
Tree resides in the schema, you can use Locate in Tree to jump to that object’s node in DB
Navigator.
Locate In Tree
Tools Menu
Invoke and control integrated tools.
Code Test The Code Test panel automates the process of testing PL/SQL programs.
Code Test
Code Analysis Code Analysis analyzes code against a set of rules for best practices.
Code Analysis
Formatter Format PL/SQL, SQL*Forms, Oracle Forms, and SQL*Plus source code.
Tools
Menu Menu More Information
Icon Name
Search Knowledge Xpert (formerly RevealNet) is a library of more than 900 pre-built PL/SQL
Knowledge routines, written by some of the world's leading PL/SQL experts, that can be
Xpert integrated into the standard PL/SQL environment.
Search Knowledge Xpert
PL/SQL Analyze the execution time and efficiency of your stored programs.
Profiler
PL/SQL Profiler
SQL Modeler Create the framework of a Select, Insert, Update, or Delete statement.
SQL Modeler
Code Road Show the complex PL/SQL inter dependencies within a database.
Map
Code Road Map
ER Diagram Model a table and graphically see the dependencies and joins to other tables.
ER Diagram
Java Manager Load and unload multiple Java source files, classes, resources and archives. This is
a convenient alternative to the Oracle LoadJava and UnloadJava command line
utilities.
Java Manager
Import HTML Convert a HTML file into a PL/SQL stored procedure, to be output via the Oracle Web
as PL/SQL Cartridge.
Import HTML as PL/SQL
Administer Use the Team Coding Administration page to install, set up, and manage the Team
Coding environment.
Open Administer Team Coding.
Team View the status of the Team Coding configuration and features. See Team Coding
Coding Status.
Status
Team Use the Team Coding Manager to manage and work with the objects that are controlled
Coding by Team Coding. The Team Coding Manager displays Team Coding status and
Manager controlled objects for the current active connection.
Open Team Coding Manager.
Team View the summary of all controlled objects for the current active connection.
Coding
Summary
info
Check out Use to check out and check in an object or script. See Check in and Check out.
To indicate the object or script to check in or check out:
l Select the object in DB Navigator, Find objects Dialog, Team Coding Manager,
Object editing windows.
Check in
l Open the object in one of the Visual Object Editors or Code Editor.
Not applicable when Automatic Check-Out and Automatic Check-In are enabled. For
more information, see Team Projects on page 115.
Undo Cancel the check-out. You are prompted to confirm that you want to discard any changes
Check Out you have made and restore the database version of the item as it was prior to checkout.
Confirm You have made and saved changes to the object and you want to discard
Yes those changes.
Confirm You have made and saved changes to the object and you want those
No changes to be retained in the database. As a result the version saved in the
third party version control system will be different from the version saved in
the database.
Compare Select a database object (in DB Navigator for example) and compare it with the latest
Contents revision.
Get Latest Get the latest version of an object or script as it is held in the Version Control System.
Revision
The Get Latest Revision command overwrites the version of the object or script in the
database, replacing it with the latest version held in the Version Control System.
Help Menu
Access to user-assistance
Context Help Open context-sensitive help for the current window or dialog
Not all windows and dialogs are linked to help topics.
SQL Navigator Visit for all the latest product information, including tips and techniques.
Community
Contact Open the Support Portal. Log issues, search the knowledge base and download
Support products.
https://support.quest.com/
About SQL SQL Navigator version, licensing version and options, and contact information.
Navigator
Task Bar
The Task Bar lists all active SQL Navigator windows for the current project.
Use the Task Bar to select a SQL Navigator window to work on. That window is bought to the foreground,
giving it focus.
TIP:
l To show / hide the Task Bar, right click over the Main Menu or Task Bar and click Task Bar (List
of Windows).
l Point to an item on the Task Bar with your mouse to see a Tool Tip for the associated window.
l When there are lots of open SQL Navigator windows you may want to organize them on the Task
Bar. Active windows are grouped by session, with the most recent session’s windows appearing
on the left.
Toolbars
The following toolbars are available in the main window.
To show / hide a toolbar, right click over the Main Menu, any toolbar or task bar and select the toolbars to show.
Toolbar Description
Session Toolbar Duplicates some of the commands from the Session Menu.
TIP: Pause/Resume and Stop buttons on the Session toolbar allow you to
interrupt execution of a current task. A hint on the Stop button dynamically shows
which task is running and (if applicable) its current progress.
Edit Toolbar Duplicates some of the commands from the File Menu and Edit Menu.
Functions Toolbar Duplicates some of the commands from the View Menu, Tools Menu and Help Menu.
Object Toolbar Duplicates some of the commands from the Object Menu and shows the current schema.
Team Coding Duplicates some of the commands from the Team Coding Menu.
TIP:
l Some modules within SQL Navigator have their own toolbars. You should refer to the module's
documentation for more information.
l To see a Tool Tip about an item on the toolbar, point to it with the mouse.
Component List
Icon Component Description
Name
Analyze Tool View and collect statistics, validate structure and list chained rows for database
structures such as tables, clusters and indexes.
Benchmark Simulate user transactions before and during application deployments, enabling
Factory performance issues to be addressed before end users are affected.
Code Insert ready-made code segments into any active editor window.
Templates
Code Test Automate the process of testing PL/SQL programs.
ER Diagram Model a table and graphically see the dependencies and joins to other tables.
Find and Find or replace text strings in the current text file.
Replace
Find objects Find objects in any schema.
Dialog
Index Editor Use the Index Editor to view, create or alter indexes, and to set storage allocation.
Instance Use the Instance Property Editor to view or specify the startup parameters for the
Property instance.
Editor
Java Editor View and edit Java source.
Java Load and unload multiple Java source files, classes, resources and archives.
Manager
Job Access the Oracle Job Scheduler.
Scheduler
Locate In Jump to the selected object’s node in the DB Navigator tree.
Tree
Materialized Use the Materialized (Snapshot) View Editor to view, create or define snapshots.
View Editor
Nested Use the nested table editor when you require a large, efficient collection.
Table Editor
Open DB Select and open a database object similar to the standard Windows File | Open
Object command.
See Select DB Object Dialog.
Output Show SQL Navigator messages and server output including Oracle errors.
Window
PL/SQL Analyze the execution time and efficiency of your stored programs.
Profiler
Profile Editor Use the Profile Editor to view, create or alter profiles.
Search Drag and drop optimized routines directly into your program editor.
Knowledge
Xpert
Sequence Use the Sequence Editor to view, create, or alter sequences.
Editor
Server Side Install server side objects.
Installation
Wizard
Select DB Select and open a database object similar to the standard Windows File | Open
Object command.
Dialog
SQL History The History tool lists successfully executed SELECT, UPDATE, DELETE commands
and PL/SQL blocks up to 1000 of the most recent ones in the current session.
SQL Modeler SQL Modeler dialog provides a fast means for creating the framework of a Select,
Insert, Update, or Delete statement. You can select Tables, Views, or Synonyms, join
columns, select columns, and create the desired type of statement.
SQL The SQL Optimizer makes observations about a selected SQL statement and the
Optimizer underlying database environment, then recommends several options to improve
performance.
Synonym Use the Synonym Editor to view or create synonyms.
Editor
Table Editor Use the Table Editor to create, alter, or define tables.
Task SQL Navigator executes long-running tasks in separate threads in the background. The
Manager Task Manager is a display of all active and complete tasks for the current session.
User Editor Use the User Editor to create, grant or revoke roles and privileges to users, including
forcing a password to expire.
Varray Editor Use the Varray Type Editor to create varying arrays.
View Editor Use the View Editor to view, create, or alter views.
View The Difference Viewer displays the compared objects in a split window.
Difference
See Difference Viewer.
TIP: Many additional shortcuts are available for the various modules of SQL Navigator. For example, see
the Code Editor Keyboard Shortcuts.
TIP: While moving a dockable item you can prevent it from docking by holding down the CTRL key.
Main Menu Bar The main menu bar can be floating or docked.
Dockable The following windows are dockable. They can be docked to any side of the SQL Navigator
Windows application window or any other dockable window. You can dock several windows to the
same site.
Dockable windows open in the same state (floating or docked) and in the same screen
position or at the same site as when they were last closed. Dockable windows retain size
and position between sessions.
The size and location of dockable windows are remembered in screen layouts as per View
Menu | Screen Layout.
NOTE:
l The size and location of the Output Window is remembered only when
docked.
l When the Output Window is docked, the Output Window remains visible ("on
top") when other windows are opened. When the Output Window is not
docked it can be hidden behind the current window.
Toolbars The toolbars can be docked to any side of the SQL Navigator application window or can
available in the float on top of the current window.
Main Window
Task Bar The task bar can be docked to any side of the SQL Navigator application window or can
float
Show/Hide Buttons 1. If the toolbar is docked, click the down arrow to the far right of the
toolbar.
If the toolbar is floating, click the down arrow on the title bar.
2. Click Add or Remove Buttons.
3. Select the buttons to show.
Add/Remove Toolbars. 1. If the toolbar is docked, click the down arrow to the far right of the
toolbar.
Reorder Items.
If the toolbar is floating, click the down arrow on the title bar.
Add items from a master list.
2. Click Add or Remove Buttons | Customize.
TIP: While the Customize dialog is open, move the mouse pointer
over a toolbar button and right click. Choose an option from the
shortcut menu. Reset the toolbar, delete or rename the button,
change its appearance or add a separator.
Reset the Toolbar to Default. 1. If the toolbar is docked, click the down arrow to the far right of the
toolbar.
If the toolbar is floating, click the down arrow on the title bar.
2. Click Add or Remove Buttons | Reset Toolbar.
Customizable While the menu is docked, click the down arrow in the far right corner. If the menu is
Menu Items floating, click the down arrow on the title bar.
Oracle Logon
Oracle Home/Client Select from the list of available Oracle Home names.
TNSNAMES/LDAP/SQLNET Configuration File Path The location of your Oracle configuration files.
Names.Directory_Path As specified in your sqlnet.ora file.
Connection Parameters
Fill in the fields for one of the TNS, Direct or LDAP tabs.
TNS
Field Description
Database Select from the list of database connections in the TNSNAMES.ora file.
Direct
DIRECT is used for Direct Connection.
Host Enter the name or IP address of the machine which hosts the Oracle server.
Port Enter the port number for the Oracle server.
Service Enter the service name of the Oracle server.
Name
SID Enter the Oracle System Identifier (SID) of the Oracle server. Use this option when connecting to an
instance running a version earlier than Oracle 8.1.
LDAP
Select from the databases on the LDAP server.
Username / Password
Field Description
TNSNames Add a new service and configure the TNSNames.ora file: Oracle TNS Configuration.
Editor
TIP: To change the logon password for the active connection: Close this dialog. Select Session | Change
Password to open Change Logon Password.
Bytes per Allow the system to automatically detect the number of bytes per character for the connection or
Character select from the list of available numbers.
The default preference is set in View | Preferences | General | Session. If you receive ORA-01026
errors (or similar) when working with the database, we recommend setting this preference to the
minimum possible value (2, 3 or 4) that eliminates the errors.
Connect Select the type of system privileges you want to use for this connection—Normal, SYSDBA, or
As SYSOPER.
Your Username must first be granted these privileges. For information about system privileges,
see the Oracle Database Administrator’s guide.
Enable Selected Use DBA views to query the Oracle Data Dictionary.
using
DBA Not Selected Use ALL views to query the Oracle Data Dictionary.
views
For more information, see DBA Dictionary Views on page 49.
Your Username must first be granted appropriate Oracle privileges.
Enable When selected, SQL Navigator generates a log file of database operations and results. Quest
Trace Support may request you enable trace for troubleshooting purposes.
Enabling Trace slows down your access to the database.
Category Optionally, assign to the connection a category color. For more information, see Connection
Category Color on page 40.
Service configuration
Field Description
Connection type Select a database connection type from the Connection Type list for the net
service name.
Oracle Corporation recommends you use the default setting of Database
Default.
Use Oracle 8i release 8.0 Select if the destination service is prior to release 8.1, then type its SID in
Compatible Identification the SID field.
Clear if the destination service is an Oracle release 8.1 database, then type
the service name in the Service Name field.
Address configuration
Field Description
Try each address in order, until one FAILOVER=ON for release 8.1 clients Yes
succeeds
SOURCE_ROUTE=OFF for pre-
release 8.1 clients.
Best Practice: Unless multiple address options are configured, the first address in the list is contacted.
Oracle requirements Your username must have one of the following roles or privileges:
to query DBA views
l DBA Role
DBA role and SELECT_CATALOG_ROLE role must be defined as the default roles in
Oracle.
In addition to the SELECT ANY TABLE privilege, Oracle 9i may also require the user
to have the SELECT ANY DICTIONARY privilege if the O7_DICTIONARY_
ACCESSIBILITY initialization parameter is set to FALSE.
For information about system privileges, see the Oracle Database Administrator’s
guide.
NOTE: Enabling DBA dictionary views may affect performance for some Oracle instances, depending on
the number of users and objects, as well as other environmental factors.
Troubleshooting Connections to
Oracle
Message Solution
Directory not Ensure that the Oracle bin directory is specified in the path.
in path
Enter the path command in the DOS prompt to check the path. If the directory is not in the
path, add it to the path in autoexec.bat and reboot the system.
Oracle Ensure that at least one of the 32 bit Oracle Required Support Files are installed. These files
Required are installed by default when you install any of the 32 bit Oracle products such as SQL*Net
Support Files and SQL*Plus.
not installed
To verify whether the Required Support Files are installed, start the Oracle installer. All
installed components are listed in the right side of the dialog box. If the Required Support
Files do not appear on the right-hand side list box, install these files from Oracle software
media.
Connect If you are connecting to a local database use 2: (or a blank) as the connect string. If you are
connecting to a remote database:
TIP: Avoid storing your password in a Windows startup shortcut unless your computer is protected from
unauthorized access.
To connect to the database immediately on startup and bypass the Oracle Logon Dialog, pass the parameter in
the command line when starting SQL Navigator. Use the following format:
CONNECT=USERNAME/password@connect_string
Note the upper-case username. For example:
CONNECT=SCOTT/tiger@Marvin817
There is an alternative method, using /u, /p and /cs parameters (user, password, and connect string,
respectively). For example, you could create a Windows shortcut with the following Target property:
"C:\Program Files\Quest Software\SQL Navigator for Oracle\sqlnavigator.exe" /u=scott /p=tiger /cs=Marvin817
Code Editor
SQL Development
The Code Editor opens ready to edit SQL code.
PL/SQL Development
The Code Editor layout for PL/SQL development is used when a stored object is opened or is being created.
Describe Show the data structure for tables, indexes, views and synonyms.
History Show the most recent successfully executed SELECT, UPDATE, DELETE commands
and PL/SQL blocks in the current session.
Dependencies Show the Dependants and Depends On objects of the current script.
TIP:
l Align the Toolbox left or right of the Code Editor (Right Click on the Toolbox).
l Pin/Unpin the Toolbox to allow more editing space.
Back Navigate between hyperlinked database objects (in the editing pane) and their
dependent objects and components.
Forward
New SQL Write a single SQL statement or a series of SQL statements in a new editing pane. The
toolbar will open for SQL development.
New Create a stored object. Open the New Stored Object Dialog.
Stored
Object
Save to Save the contents of the current Code Editor pane to an external file.
File
Open Locate a stored object using the Select DB Object Dialog and open the object in the
Object editing pane.
Auto Code Turn On/Off Auto Code Completion. When turned on, the Code Editor matches variables,
Completion parameters, procedures and types as you type.
1. Open the second script in a new editing pane of the Code Editor.
2. Return to the split panes. In the pane to load the second script right-click
and select Split/Compare | Second Source.
3. Select the second source from the list of all scripts currently open in the
Code Editor.
Send to Session Switch to other sessions and continue working within the same window, with
the same script. This feature allows you to run the same script against different
databases without the need to copy it into another instance of the Code Editor.
It also allows you to correct the oversight of opening a file into the wrong
session.
You can choose from a list of current sessions or start a brand new session.
NOTE:
l When you run that window (execute the SQL or compile the
PL/SQL code, for example), SQL Navigator will prompt you to
change to the new (current) session. It allows you to quickly
correct the oversight of opening a file into the "wrong" session.
l You can change session while editing SQL scripts only. This
option is not available to stored programs.
Add Condition Insert Where clause conditions in the SQL script using a graphical interface.
1. Type the SQL statement up to the where clause (Select * from emp_
table).
2. Click Add Condition to open the Add Filter window.
Remove All 3. Select and fill in the field, operator and value(s) accordingly.
Conditions
4. Click Ok to insert the where clause.
The Value(s) field is shown depending on which Operator has been selected.
Use when there is no semicolon (;) in the script.
Updateable On Edit the data returned by SQL queries. Update, delete and insert new
records and save your changes back to the database. This feature is
particularly useful for creating test data.
TIP:
Fetch All Limit the rows retrieved on execution of the SQL statement:
Not Selected Retrieve enough rows to fill the visible area of the grid.
Fetch additional rows on scroll down requests.
Spool Screen Select to capture a log of executed SQL statements in the SQL Query Log (The
Spool Tab).
Expand SQL Pane Maximize screen real estate of the SQL pane.
Execute to End l Click Execute to End or press F9 to run the script to the end.
l Click Execute Step or press F8 to execute the current statement.
Execute Step l To work with the result see SQL Query Results Data Grid.
TIP:
Stop
l You cannot run multiple queries within the same session
simultaneously. If you need to run multiple queries
Skip to Next simultaneously, you can open another connection to the same
database.
Skip to Bottom l To validate syntax use Execute to End in conjunction with Stop
on Error.
Get Get the latest version of an object or script as it is held in the Version Control repository.
Latest
The Get Latest Revision command overwrites the version of the object or script in the
Revision
database, replacing it with the latest version held in the VCS repository. You can use the
View Differences Dialog to compare versions before overwriting the object.
Undo Cancel the check-out. You are prompted to confirm that you want to discard any changes
Check you have made and restore the database version of the item as it was prior to check-out.
Out
Confirm You have made and saved changes to the object and you want to discard those
Yes changes.
Confirm You have made and saved changes to the object and you want those changes
No to be retained in the database. As a result the version saved in the third party
version control repository will be different from the version saved in the
database.
PL/SQL Formatter Format PL/SQL, SQL*Forms, Oracle Forms, and SQL*Plus source code.
Back Navigate between hyperlinked database objects (in the editing pane) and their
dependent objects and components.
Forward
New SQL Write a single SQL statement or a series of SQL statements in a new editing pane. The
toolbar will open for SQL development.
New Create a stored object. Open the New Stored Object Dialog.
Stored
Object
An alternative way to open file is to drag and drop a file from Windows Explorer to the
SQL Navigator window.
Save to Save the contents of the current Code Editor pane to an external file.
File
Open Locate a stored object using the Select DB Object Dialog and open the object in the
Object editing pane.
Auto Code Turn On/Off Auto Code Completion. When turned on, the Code Editor matches variables,
Completion parameters, procedures and types as you type.
1. Open the second script in a new editing pane of the Code Editor.
2. Return to the split panes. In the pane to load the second script right-click
and select Split/Compare | Second Source.
3. Select the second source from the list of all scripts currently open in the
Code Editor.
Entry Move the cursor to the function / procedure definition in the code.
Undo all changes Undo all changes since the last save.
Generate DDL Generate a DDL script of the procedure / function / package. Switch between the
script DDL script and procedure / function / package using the tabs at the bottom of the
screen. While the DDL script is on view the Code Editor toolbar adjusts to editing
SQL code.
Save to Database Save changes. Submit the PL/SQL to the database, compile, and report errors
Save to Database Save (clone) the object. The new stored program will have a definition identical to
As (Clone) the stored program currently open in the editor. Optionally select a new schema
and name for the object.
Function TIP: Once you have opened the PL/SQL Execution Console, toggle
between execution and editing mode via the tabs at the bottom of the
screen.
Stop procedure Use if required to stop execution of the procedure before it finishes.
execution
Toggle Breakpoint Add / Remove breakpoint on the selected line of code. For more on debug see
PL/SQL Debugger.
PL/SQL Debugger You can watch the result values during runtime. You can run stored programs in
parallel by opening additional sessions within SQL Navigator.
Show/Hide the Toolbox PL/SQL Debugger
Get Get the latest version of an object or script as it is held in the Version Control repository.
Latest
The Get Latest Revision command overwrites the version of the object or script in the
Revision
database, replacing it with the latest version held in the VCS repository. You can use the
View Differences Dialog to compare versions before overwriting the object.
Undo Cancel the check-out. You are prompted to confirm that you want to discard any changes
Check you have made and restore the database version of the item as it was prior to check-out.
Out
Confirm You have made and saved changes to the object and you want to discard those
Yes changes.
Confirm You have made and saved changes to the object and you want those changes
No to be retained in the database. As a result the version saved in the third party
version control repository will be different from the version saved in the
database.
PL/SQL Formatter Format PL/SQL, SQL*Forms, Oracle Forms, and SQL*Plus source code.
Control the contents of the Code Editor Toolbars for Code Editor SQL or Code Editor
window PL/SQL as appropriate.
See also:
Some functions are duplicated on the shortcut menu. Right click in the editing pane to open the
shortcut menu.
Working Drag and drop objects from the following SQL Navigator modules into the editing pane.
with
l DB Explorer
objects
l Project Manager
l DB Navigator
1. Right click on the object in the editing pane and select Go to Definition.
2. The result is shown in the Output Window.
TIP:
l To construct SQL statements, drag and drop column names from the Describe tool
into the editing pane.
l If the described object is a text object (view, procedure, function, package or
packaged procedure/function) and the Source Preview window is open, the
object’s source is automatically previewed.
Automated Auto Code As you type an identifier the editor displays a selectable list of matching symbols
Coding Completion (variables, parameters, procedures, types) in the current scope.
Assistance
TIP: Turn on/off code completion from the Code Editor Toolbar.
Dot-lookup Type a dot character after a name of variable. The editor automatically displays
a selectable list of members of a PL/SQL record, cursor, package or
%ROWTYPE record.
Code The Code Explorer displays a hierarchical list of all symbols in the package or
Explorer procedure, and highlights the procedure the cursor is currently in. Double-click
on a symbol to navigate within the program. It dynamically parses and checks
syntax.
Hyperlinks To see the declaration of an identifier, press Ctrl+click. The text cursor
automatically jumps to the declaration of the symbol if it's defined within the
same program. If it's a name of an external database object, an Auto Describe
opens.
Syntax tool Point to a variable, parameter or procedure with the cursor to see a description
tips of it.
To manage, create and edit the ready made code, see Code Templates.
Drag and drop PL/SQL syntax, SQL functions, column names, and database object names into
code using the Code Assistant.
PL/SQL PL/SQL blocks entered into the script must have either
l a forward slash /
Code Description
l or a period mark .
Auto Reparse
Many features of the Code Editor, including the Code Explorer window, code completion, tool tip
display of program arguments, bracket matching, collapse loops/blocks, and others, rely on
automatic parsing of the PL/SQL code and internally generating a symbol table. This parsing
occurs when the editor first loads the objects, and it also occurs in the background in order to
maintain the symbol table as the user edits the code.
You can also manually trigger a full reparsing (updating of the internal symbol table) at any time
by right-click and select Auto Reparse from the shortcut menu. However, when loading a really
large script having this option on will slow down SQL Navigator. Hence, to avoid wasting CPU
resources, you should turn this option off when editing large scripts.
Icon Description
TIP:
l Double click on the icon to jump to the associated results tab (Press
CTRL+F11).
l There can be multiple results displays, one per statement executed.
Each result set is displayed in a separate tab.
l See SQL Query Results Data Grid
l When a result tab is selected, the corresponding statement will be
focused.
Syntax The Code Editor uses colors to highlight PL/SQL and SQL keywords, text and
highlighting comments.
When you set the cursor at a bracket within an expression, the matching
bracket is automatically highlighted.
Bookmarks Lines of code can be bookmarked so you can return to them easily.
Feature Description
Variable To move the cursor to the declaration of a variable (or Auto Describe it if it’s the
declarations name of an external database)
Press CTRL and point to the variable with the mouse.
To return to the former position in the text, press ALT+Left Arrow.
Switch Press CTRL+SHIFT plus the down or up arrow to move the cursor between the
between specification and the body.
specification
and body
Formatter SQL Navigator's Formatter Tools is a unique utility for reformatting existing
Tools PL/SQL, SQL*Forms, Oracle Forms, and SQL*Plus source code. See the Code
Editor toolbar: Code Editor SQL or Code Editor PL/SQL.
Automatic When you insert multi-line text into the editor, the text is placed at the same
Indentation indentation level as the current cursor position. For best results, before inserting
text, place the cursor at the location and indentation level where you want the
inserted text to appear.
Manipulate Right click on the code and select Edit | Selection Mode | Block or press
rectangular ALT+F7.
blocks of
The block selection is limited to the length of the last line. To overcome this
code
limitation select View | Preferences | Code Editor | General | Allow Caret after
EOL.
Show/hide Right click on the code and select Edit | Show Tabs/Eol/Eof
invisible
characters
Switch Right click on the code and select Edit | Tabs/Spaces and select from the
between available options.
tabs and
Requires View | Preferences | Code Editor | General | Use Tab Characters
spaces
selected.
NOTE: Consult Oracle documentation for details about Oracle's SQL*Plus utility.
SQL Navigator also allows large scripts or SQL statements to be executed in the background, allowing you to
perform other functions on your PC simultaneously.
Connect Open a new Code Editor tab, and then type and execute a connect statement using the
following SQL*Plus format
Connect name/password@database
Disconnect Open a new Code Editor tab, and then type and execute a disconnect statement using the
following SQL*Plus format
Disconnect name/password@database
NOTE: If you type and execute the disconnect statement without specifying any database
details, the current session you are using will be disconnected.
Bind Variables
A bind variable is a variable in a SQL statement that must be replaced with a valid value or address of a value in
order for the statement to successfully execute.
Scenario: Use Point-And-Click to insert column names for a database object into your code.
1. Ensure Auto Code Completion is turned on.
2. Place the cursor in the editor window where you want the column names to be inserted.
3. Type the name of the object followed by a period mark (.).
4. Select the name of the column you want to insert from the drop-down list.
5. Press Enter.
Scan Defines/Substitutions
NOTE: Turn on Scan Defines/Substitutions when using variables or text that contain the characters &,
&&, or = :[bind variable]. Otherwise, the statements containing the variables will generate an error.
Use the & symbol followed by a variable &EMPNUM You can use &EMPNUM as a valid
name to specify a substitution variable. substitution variable name.
An example of a SQL statement SELECT * When you execute this SQL statement, the
demonstrating the use of a substitution Code Editor prompts you to enter the value for
FROM EMP
variable the employee name. This allows you to create
WHERE generic SQL statements that can be reused.
EMPNUM =
‘&EMPNUM’;
You can use substitution variables in any part SELECT When you execute this SQL statement, the
of the SQL statement. &COL1, Code Editor prompts you to enter the column
&COL2 names, as well as the table name.
FROM
&TAB;
You can use the double ampersand the same &&UNAME When you execute this SQL statement
way as the single ampersand with some
l The first time the Code Editor
differences.
encounters the && variable, it looks up
the variable to determine whether it
has already been defined in either a
DEFINE statement or in a previous &&
variable.
l If the variable is defined, Code Editor
substitutes the value in the SQL
statement.
TIP: Alternatively, right click in the editing pane and select SQL Script Options | Substitutions to open
the Substitutions dialog.
Function A function is a block that returns a value. Functions can be stored in the database and
reused. Stored functions can be called from within a SQL statement.
Package+Body A package is an encapsulated collection of related schema objects, including modules and
other constructs, such as cursors, variables, exceptions, and records. Packages allow
procedures, functions, variables, and cursors that share common or related functions to be
compiled and stored as a single schema object.
Type+Body Object types are user-defined data types, equivalent to "classes" in object-oriented
languages, that may consist of composite data types or collections such as repeating groups
or complex record types. Object types may be associated with member functions and
procedures that are implemented in PL/SQL. These modules implement the methods of the
object type.
Like packages, object types have both a specification and a body.
Trigger A trigger is a named PL/SQL unit that is stored in the database and executed in response to
a specified event that occurs in the database.
TIP: For each object type, SQL Navigator provides a ready made template or "shell" to make coding
easier. You can modify these templates. The template name and location is defined in the opening
comments when the new object is created.
l When a result tab is selected, the SQL query statement that generated the result is focused.
l If the data is LOB, XML or Array then double click on the data cell for more information. For more
information, see Viewers: LOB, XML, Array on page 75.
l The Data Grid supports National Language Support (NLS). Display and edit multi byte data.
l To display the results of a SQL query as text see SQL Query Log (The Spool Tab).
Rows Retrieved
Icon Tool Tip Description
Count Dataset The value appears in bold in the Status bar at the bottom of the Code Editor
Rows window.
Fetch More Retrieve more rows.
Fetch All Retrieve all rows.
Stop Fetching Use when it takes too long to fetch more/all rows.
Export / Print
Icon Tool Tip Description
TIP:
TIP: Right click on the data grid to select a row or column or the entire data grid. You can copy selected
data to the clipboard. There is an option to include the row number or column heading with the copied
data.
Prior Row
Next Row
Bottom
TIP:
Requirements
l The SELECT statement must be a simple SELECT statement (no joins, subqueries in select clause,
calculated fields, group by, having, count(), substr or DISTINCT). If you get an error message such as
TOKEN:.(12121,2) then your query does not conform to the restrictions for updateable queries.
l You must have the appropriate privileges to update the table or view.
Delete Selected Rows Put the cursor on the row you want to delete and click .
Commit Transaction Save new or modified data to the database.
Format
Icon Tool Tip Description
Default/User Defined User-defined column width. Overrides automatic column width setting.
Column Formatting Drag the separators to set column width.
Format Columns By Data Set the column widths to show the widest cell data.
Width
Column names may appear truncated.
Format Columns By Name Set the column widths to show the widest column name.
Width
Table data may appear truncated.
Format Columns By Set the column widths to show the widest column data or column name
Names And Data (whichever is greater).
TIP: The formatted widths are based on the results currently visible. The column widths may change as
you scroll down, retrieving new rows. To prevent the column widths from changing when scrolling, Fetch
All rows before scrolling.
TIP: Click any column header to sort and change the sort options.
Expand Data Grid Maximize screen real estate of the data grid.
Auto Refresh Select to refresh the SQL Results Data Grid every (number specified) seconds.
1. Enable Spool to Screen. For more information, see Code Editor SQL on page 53.
2. Execute the SQL query. For more information, see Code Editor SQL on page 53.
3. Click the Spool tab to view the log.
TIP: Right click on the log to Select / Copy / Save / Print / Clear the log.
Options Description
Rows Export all records or a specific range. The records can be sorted.
LOB Editor
You can work with the following Oracle8i LOB datatypes.
BLOB (binary) Y N
CLOB (character) Y Y
BFILE (external) Y N
NCLOB (multibyte character) Y N
You can use toolbar buttons to perform actions on LOBs. The actions available depend on the LOB and include:
l Copy to clipboard
l Save to disk file
l Save, then view in external application
l View in preview window
l Mask or show ASCII values between 128 and 255
l View BFILE as image or HEX
NOTE: SQL Navigator does not support working with LOB or Object table columns when using an Oracle
7 client connected to Oracle 8 database. For full functionality, use an Oracle 8 client to connect to an
Oracle 8 database.
ARRAY Editor
l Click on +/- to add/remove items in the array.
l Select any item and click the arrow buttons to reorder the list.
NOTE: If an error occurs when trying to run a generated code block (for example, due to a syntax error),
the text is opened in the Output Window.
Field Description
Load/Save Click to load the input parameter values from an external file.
Save Click to save the input parameter values to an external file.
Reset Click to Reset changes to the parameter values.
Run Options
Command Description
Auto-create test case When selected a test case is automatically created (when you click Execute) based
after code execution on the parameter values (both input and output) currently displayed in the grid.
For more information, see Code Test on page 158.
Option Description
Direct results to Select Generate a DBMS_OUTPUT PUT statement for each OUT parameter.
Output
Clear Generate a Bind variable for each OUT parameter. This is useful when you
want to view complex data returned by the procedure, such as REF cursors
and LOBs.
Include exception Select to populate the Exception block when the Stub tab is generated.
block
TIP: Click Preview to generate the Stub tab.
Commit changes Once the procedure has finished executing, do you want to COMMIT / ROLLBACK
after code execution changes made by the procedure?
NOTE: This generates the Stub tab. For more information, see PL/SQL Stub on
page 79. Toggle between the Code / Run / Stub tabs at the bottom of the
screen.
Code Test
The Code Test panel automates the process of testing PL/SQL programs. See also the module: Code Test.
Command Description
In/Out Display the in/out parameters and associated values for the selected test case.
New Create a test case. Open Test Case Properties
Edit Edit the selected test case. Open Test Case Properties
Delete Delete the selected test case.
Test > Upload the selected test case into the parameters.
Param
Param > Update the selected test case with the current parameters.
Test
Manage Clone and edit existing test cases, create new test cases and run multiple test cases at once.
Open Code Test
Run Test Run the selected test case. The result of the test is displayed in the Test case status pane.
Run All Run all code tests available for the current object.
Tests
To generate a stub
From the PL/SQL Execution Console
DBMS_OUTPUT
The DBMS_OUTPUT package is a standard package provided by Oracle specifically for the purpose of
debugging stored programs.
Feature Description
Capture output from DBMS_OUTPUT The SQL Navigator Output Window captures output from
DBMS_OUTPUT.
NOTE: The SYS schema owns this package. To view the procedure and parameter definitions of this
package you can display it in the Code editor.
Cut CTRL+X Remove the selected text from the editing pane. Place on
the Clipboard ready to Paste elsewhere.
Copy CTRL+C Alternative shortcut: CTRL+Insert
Nil Select All CTRL+A Select all the text in the editing pane. This is usually
followed by Cut or Copy.
Auto Code CTRL+ALT+A Turn on/off Auto Code Completion. (Auto Code
Completion Completion)
Use SHIFT+Spacebar to force code completion.
Nil Toolbox | Next CTRL+ALT+N Scroll through the pages of the Code Editor toolbox.
Page
Toolbox: PL/SQL Debugger | Code Explorer | Outline | DB
Nil Toolbox | CTRL+ALT+P Explorer | Describe | History | Dependencies | Columns
Previous
Page
File | New CTRL+T Open a new tab for a SQL script in the Code Editor.
SQL Tab
File | Open CTRL+O Open a file from Windows Explorer.
File
| Execute Step
Execute | Skip F10
to Next
Execute | Skip F11
to Bottom
Toggle Breakpoint F5
Abort Debug Session SHIFT+CTRL+F9
Trace Into F7
Step Over F8
Run to Cursor F4
ALT+n Following a SQL query with many result tabs, go to the result tab numbered n.
CTRL+F11 Switch between the Query and Results page.
ALT+Enter Edit Cell Data.
New SQL Tab CTRL+T Open a new tab for a SQL script in the Code Editor.
Auto Code CTRL+ALT+A Turn on/off Auto Code Completion. (Auto Code Completion)
Completion
Use SHIFT+Spacebar to force code completion.
Toolbox
PL/SQL Debugger
NOTE: Show/Hide PL/SQL Debugger in the Toolbox from the Code Editor toolbar.
All the tools and features for debugging stored programs can be found inside the PL/SQL Debugger window.
Requirements
Area Requirement
Oracle Debugging is functional only when you are connected to an Oracle server via a SQL*Net
server connection. If you are using a local database, such as Personal Oracle, use the loopback
connection SQL*Net connection to perform interactive debugging.
Successful If the procedure fails to compile, it is displayed in red in DB Navigator. It cannot be debugged.
compile
Debug
Feature Description
Locals tab Use the Locals tab to test the effect of different variable values in your procedure.
Example Scenario: Your procedure performs a computation. Start the procedure, enter a
starting value and watch how the procedure handles the result. If you want to see a "what if"
computation, enter a new value for the variable in the Locals tab and repeat the procedure.
NOTE:
l If you see an error such as "Not compiled with debug info" instead of the variable value,
you need to recompile the procedure with the Debug information and re-execute it in the
debugger to see the value of variables. See Session Menu | Include Debug Info for
more information.
l The values in the Locals tab are only populated when the code is running.
l The values of the input parameters cannot be modified in the Locals tab.
l When you evaluate a variable in a current breakpoint, remember that the current
breakpoint has not yet been executed.
REF When evaluating/watching a variable of REF CURSOR type, its value is displayed in the
CURSOR following format:
type
flags:FFF, rowcount:RRR.
variables
RRR determines the number of records fetched so far by the examined cursor.
FFF is a combination of cursor status flags:
%ISOPEN
%FOUND
%NOTFOUND
If the user enters the watched variable names as C1%NOTFOUND, C1%FOUND,
C1%ISOPEN, C1%ROWCOUNT, the displayed value is the same as would result from
watching the cursor itself. (C1 is the name of the cursor)
Watches You can set breakpoints and watches at any time before or during a debug session. You do not
and have to recompile your program after you set breakpoints or watches.
Breakpoints
Add/remove breakpoints by clicking in the gutter margin left of the code. For more
information, see Edit, Compile And Execute on page 61. There is also an icon on the toolbar to
toggle on/off breakpoints. For more information, see Code Editor PL/SQL on page 58.
When execution of a procedure is paused at a breakpoint, you can evaluate or modify any
scalar variable within procedure code. If you change the value of a variable, you can confirm
the new value of the scalar variable by evaluating the variable again.
NOTE:
l You can open multiple editors and set breakpoints in several stored programs
simultaneously.
l When you evaluate a variable in a current breakpoint, remember that the current
breakpoint has not yet been executed.
l Variable values in the "watch" window are updated only at the breakpoint, so
strategically place breakpoints after the watch variable.
l Increasing the number of variables in the watch list may result in slower debugger
performance.
Code Explorer
Make your work with packages, procedures, and functions more efficient and error-free.
Auto Reparse
PL/SQL parsing occurs when the editor first loads objects, and in the background as the user edits the code.
You can also manually trigger a full reparsing (updating of the internal symbol table) at any time by right-click
and select Auto Reparse from the shortcut menu. However, when loading a really large script having this option
on will slow down SQL Navigator. Hence, to avoid wasting CPU resources, you should turn this option off when
editing large scripts.
Outline
DB Explorer
Name Type in a filter phrase (for example c% to filter all objects with names starting with c).
Filter
Upper Click to toggle between Upper case filter and Mixed case filter.
case
The upper case filter is selected by default. Use the mixed case filter to find objects with
filter
names that are mixed case, lower case or have special characters.
TIP:
Describe
Show the data structure for tables, indexes, views and synonyms.
NOTE: To increase response time, the drop down list is not populated with objects when the tool is first
activated.
Filter To show the complete list, leave the Filter blank and press Enter.
You can use wildcards to filter the objects. For example, type t% and press Enter to display
only objects with names starting with "t". Select an object from the list to show its column
names and types.
Quick View the chained rows information as per Object Menu | Quick Browse.
Browse
Select the object to Describe.
The results show in SQL Query Results Data Grid.
Edit Edit data in a table object as per Object Menu | Edit Data.
Data
Select the object to Describe.
The results show in SQL Query Results Data Grid.
The Edit Data command executes an Updateable query.
The History tool lists successfully executed SELECT, UPDATE, DELETE commands and PL/SQL blocks up to
1000 of the most recent ones in the current session. In the History window, each SQL statement is accompanied
with the date, time and the schema that they were executed on.
You can easily recall the most recent SQL statements that have been executed in the current session.
TIP: You can press Ctrl+up arrow to move back in the sequence, and Ctrl + down arrow to move
forward.
2. Take action.
Button Description
New Tab Open a new Code Editor tab and paste the statement into it.
Insert Add the recalled statement to the current contents.
Replace Replace the current contents of the editing window with the selected SQL statement.
Clipboard Copy the statement to the clipboard, ready to paste the statement into another location.
Delete Drop the statement from the SQL History list.
Double Select an action (New Tab, Insert, Replace or Clipboard) that will be executed on double-
Click... clicking an entry in History.
TIP: You can also insert the statements by dragging and dropping them into the Code Editor.
Dependencies
NOTE: Objects with a large amount of dependant and depends on objects will take more time to load. To
improve the performance, hide this pane when opening those objects.
TIP: Right click over the Dependents or Depends On lists to view available commands to manipulate
objects in the lists.
The Columns window provides an easy-to-use tool to arrange and hide/show columns of the retrieved table in
the data grid.
Action Description
NOTE: The settings will be saved and taken into account when you refresh or rollback the query.
However if you rerun the query, the settings will be set back to default.
l Are visual. They give you a graphical representation of a database object definition. This makes it easy
to see relationships and properties.
l Allow you to view database object definitions and create or alter database objects via a point-and-click
interface, eliminating the need to remember SQL syntax and write SQL statements manually.
l Generate the DDL or other database code automatically when you create or alter a database object. You
can also and edit the code directly, if needed.
When opened, a visual object editor connects to the active database session (Session Menu | Select).
Cluster Editor
Use the cluster editor to join tables that are closely related for storing on the same area of the disk. This lets you
interleave the rows of two or more tables together into a single area called a cluster.
About The cluster key is the column or columns by which the tables are usually joined in a query. You can
Cluster only cluster together tables that you own.
Objects
You can create either an index cluster or a hash cluster. With an indexed table or index cluster,
Oracle locates the rows in a table using key values that Oracle stores in a separate index. To use
hashing, you create a hash cluster and load tables into it. Oracle physically stores the rows of a
table in a hash cluster and retrieves them according to the results of a hash function.
The characteristics and usage of this database object are described in the Oracle documentation.
From DB Navigator or Find objects Dialog Open the selected Cluster object in the Cluster
Editor.
Right click on a Cluster object and click Open.
Constraint Editor
Use the Constraint Editor to specify table constraints.
NOTE:
l SQL Navigator’s visual constraint editor is intended to be used only for table-related constraints.
l Once a constraint has been defined and saved to the database, it cannot be altered in the
constraint editor. To change the constraint it is necessary to drop it and then create a new
constraint with the necessary properties. Use DB Navigator or Find objects Dialog to locate a
constraint then Object Menu | Drop to drop the constraint.
Field Description
Parent Schema Select the parent schema for the new constraint.
Parent Object Select the parent object (table) for the new constraint.
Name Name the new constraint.
Check Specifies a condition that each row in the table must satisfy
Primary Designates a column or combination of columns as a table’s
Key primary key
Unique Designates a column or combination of columns as a table’s
unique key
Foreign Designates a column or combination of columns as the
Key foreign key
Type Action
Check Enter the check condition following Oracle syntax conventions. Example: (loc is not null)
Primary Designate the column(s) to be used as the Unique, Primary Key, or Foreign key.
Key
To add columns to the constraint, use the arrow button to move one or more selected
Unique columns from the Available Table Columns pane to the Constraint Columns pane. The
double arrow adds all available columns to the constraint.
Foreign
Key
NOTE: Before selecting the On Delete Cascade property, be sure you understand the potential
consequences of using this option. It could result in lost data. Consult your Oracle documentation
for information about the DELETE CASCADE command.
Generate SQL for Extract the DDL for the new constraint and place it into the Code Editor.
changes
Apply changes to Save your new constraint definition to the database. SQL Navigator generates the
DB DDL and commits it to the database.
From DB Navigator or Find objects Dialog Open the selected Constraint object in the Constraint
About A database link allows access to a username on a remote database through the local database. A
Database public database link (which only a DBA can create) allows the remote database access to all
Links users of the local database.
The characteristics and usage of this database object are described in Oracle documentation.
NOTE:
l The SQL Navigator Database Link editor will try to automatically add the domain name when
required by the server. However if the user cannot see the view v$parameter, then the domain
name is not automatically added. The user should enter a fully qualified database link name in
the New Database Link dialog.
l Due to limitations in the Oracle Data Dictionary it is not possible for Extract DDL to correctly apply
the SHARED and AUTHENTICATED clauses in a CREATE DATABASE LINK statement
From DB Navigator or Find objects Dialog Open the selected Database Link object in the
Database Link Editor.
Right click on a Database Link object and
click Open.
Index Editor
About An index is a sorted map of selected columns in a table or object. Therefore an index is similar to a
Index table, and the columns in an index refer to the rows and columns of the associated table. By
Objects indexing columns frequently used in queries, you can improve data retrieval performance.
An index can be either unique or non-unique.
l A unique index validates every new or changed row in a table for a unique value in the
column(s) in the index.
l A non-unique index allows duplicate values in rows.
From DB Navigator or Find objects Dialog Open the selected Index object in the Index Editor.
Right click on an Index object and click Open.
About A nested table type is an unordered set of elements. The elements may be built-in datatypes or user-
Nested defined types. You can view a nested table as a single-column table or, if the nested table is an
Tables object type, as a multicolumn table, with a column representing each attribute of the object type.
A nested table definition does not allocate space. It defines a datatype, which can then be used to
declare:
When a nested table appears as the type of a column in a relational table or as an attribute of the
Profile Editor
Use the Profile Editor to view, create or alter profiles.
About A profile is a set of limits on the use of database resources that can be applied to a user. If you
Profiles assign the profile to a user, that user cannot exceed those limits. If a user exceeds a limit, Oracle
aborts and rolls back the transaction, and then ends the session. Profile settings include connect
time, password lifetime and reuse, idle time, and similar restrictions.
The characteristics and usage of this database object are described in Oracle documentation.
Requirements
To edit profiles:
From DB Navigator Open the selected Profile object in the Profile Editor.
Right click on a Profile object and click Open.
From the Main Menu Open the Redo Log Group Editor.
View Menu | Visual Object Editors | Redo
Log Group Editor
From DB Navigator Open the selected Redo Log Group object in the Redo
Log Group Editor.
Right click on a Redo Log Group object and
click Open.
Role Editor
Use the Role Editor to view or create roles.
About A Role is a set of privileges that can be assigned to or removed from a user. (Use the User Editor to
Roles create and grant or revoke roles and privileges to users.)
The characteristics and usage of this database object are described in Oracle documentation.
Requirements
To edit roles:
From DB Navigator Open the selected Role object in the Role Editor.
Right click on a Role object and click Open.
About A snapshot is a segment that contains the result of a query. The snapshot typically contains local
Snapshots copies of remote objects. From Oracle 8i onwards a materialized view is equivalent to a
snapshot but allows queries to be dynamically and transparently rewritten to use the
materialized view.
Schema Select the parent schema for the new Materialized view.
Name Name the new Materialized view.
Clone current Create a clone of the selected materialized view. You will be prompted in the
Materialized view New Materialized View dialog to enter new name.
Generate SQL for Generate SQL code for the changes made.
changes
Apply changes to DB Apply changes to the database.
Editor Tabs
Tab Description
Details 1. Select the Updateable and Query Rewrite options to include them in the query’s DLL.
2. Set the Parallel options and turn Logging and Cache on or off.
Storage 1. Set the Physical Attributes for the materialized view log.
2. Set the Storage Clause options for the materialized view log.
Master Display the owner, table and links for the materialized view (after the materialized view has been
Info saved).
From DB Navigator or Find objects Dialog Open the selected Materialized View object in the
Materialized View Editor.
Right click on a Materialized View object
and click Open.
Sequence Editor
Use the Sequence Editor to view, create, or alter sequences.
About A sequence is an Oracle object that delivers a unique number, incremented by some specified
From DB Navigator or Find objects Dialog Open the selected object in the Sequence
Editor.
Right click on a Sequence object and click Open.
Synonym Editor
Use the Synonym Editor to view or create synonyms.
About A synonym is an alternate name for a table or view. A synonym can be private (for use only by its
synonym creator) or public (for use by any user). Primarily, synonyms enable multiple users to reference an
Objects object without adding the schema as a prefix to the object. They can also allow different
applications to reference the same object using different names.
You can make synonyms for the following database objects:
l tables
l views
l other synonyms
l functions
l packages
l procedures
l sequences
l database links
The characteristics and usage of this database object are described in Oracle documentation.
From DB Navigator or Find objects Dialog Open the selected object in the Synonym Editor.
Right click on a Synonym object and click Open.
Table Editor
Use the Table Editor to create, alter, or define tables. Functionality includes:
Although you won’t need to type any PL/SQL code when editing tables in SQL Navigator, you should be familiar
with Oracle rules and guidelines for using tables.
NOTE:
l Be sure to place quote marks ("xxx") around any non-numerical data you enter in the default
column. If non-numerical data is not enclosed in quotes, then error message ‘ORA-00984:
column not allowed here’ is returned.
l It is possible to display and edit multi byte data in the Table Editor through National Language
Support (NLS).
l The Data tab operates as per the SQL Query Results Data Grid.
From DB Navigator or Find objects Dialog Open the selected object in the Table Editor.
Right click on a Table object and click Open.
About In Oracle, a User is simply a unique log-in name. A user’s capabilities inside the database are
Oracle determined by the User’s role assignments.
Users
The characteristics and usage of this object are described in Oracle documentation.
Requirements
To edit users:
From DB Navigator or Find objects Dialog Open the selected object in the User Editor.
Right click on a User object and click Open.
Varray Editor
Use the VArray Type Editor to create varying arrays that can be used to:
About The varying array is a collection type you can use when you want to retrieve entire collections as a
Varying whole. They are best suited for small collections. If you require a large, efficient collection, you
Array would be better to use a nested table collection type (see Editing a nested table).
View Editor
Use the View Editor to view, create, or alter views.
About A view is a query that is named in the database so that it can be used as if it were a table. It can be
Views thought of as a virtual table in the database whose contents are defined by the Select query.
You can use views to rearrange, filter and select the way you see data in tables without creating any
copies of that data. Views help make data access simpler by hiding complexities. They can also help
separate data for different users as a security measure.
SQL Navigator’s view editor makes it easy to create and alter views. Although you won’t need to type
any PL/SQL code when editing views in SQL Navigator, you should be familiar with Oracle rules and
guidelines for using views.
The attributes of this database object are described in Oracle documentation.
From DB Navigator or Find objects Dialog Open the selected object in the View Editor.
Right click on a View object and click Open.
Java Editor
Features:
l Load a Java source file from the database into the editor
l Create a new Java source file
l Clone an existing Java source
l View and edit Java source with color syntax highlighting
From the Main Menu Open the Java Editor with a new Java source.
View Menu | Visual Object Editors | Java Editor
From DB Navigator or Find objects Dialog Open the selected Java Source object in the Java
Editor.
Right click on a Java Source object and click
Open.
About The characteristics of the Oracle database instance are specified during startup. These
Instance parameters are stored in a file called init.ora. This file may, in turn, call a corresponding
Properties config.ora file.
The Instance Property Editor is based on what the Oracle v$parameter data dictionary view
reports. Some attributes are Session Modifiable, which means that they are applied immediately
to the current session, but are not permanent. Others are System Modifiable and further may be
Immediate or Deferred (requiring a server shutdown/restart). Some are not modifiable at all.
These parameters and the rules governing their usage are described in Oracle reference
sources.
Icon Description
Editor Toolbar
Icon Tool Tip Description
Create new Instance property N/A to the Instance Property Editor. Oracle does not allow this
action.
Open object from DB Open the property from the current database
Clone current Instance property N/A to the Instance Property Editor. Oracle does not allow this
action.
Details Tab
Attribute Description
Is Modified Whether this parameter has been modified after instance startup, and if so, whether it was
modified at the session level or at the instance (system) level
Is Adjusted Whether Oracle has adjusted a value specified by the user
Type The Oracle datatype
Value Current value for this session (if modified within the session); otherwise, the instance-wide
value
Alter For Whether the new value is to be current for this session or instance-wide
l When the SQL Navigator user issues a check-out command, SQL Navigator checks a revision out of the
VCS and saves the code to the local SQL Navigator environment.
l When the SQL Navigator user saves the code, SQL Navigator writes it to the database.
l When the SQL Navigator user issues a check-in command, SQL Navigator checks the revision
into the VCS.
The Team Coding Administrator creates one or more Team Projects and associates them with projects in the
VCS. For more information, see Setup Team Projects on page 116.
l Administrators must protect production schemas by creating one or more Team Projects, which are the
only way that developers can check objects in and out of the database and work on them. This allows
the developers to work on the objects in their local environments without affecting the original objects.
l When a developer checks out an object through a Team Coding Project, SQL Navigator locks the object
in the database. This prevents the developer from unintentionally overwriting changes made to that
object by other developers. The developer checks the finished code into the database through the Team
Project, which unlocks the object again. For more information, see Check in and Check out on page 133.
l Team Coding without a VCS does not provide revision history as a VCS would. The source code is
maintained in the database, with no other versions available (other than through your own normal
backup methods). SQL Navigator does provide one "undo" option, which is to undo the check-in. For
more information, see Team Coding Manager on page 128.
l Table
l Index
l Constraint
l Sequence
l View
l Trigger
l Function
l Procedure
l Package
l Package Body
l Type
l Type Body
l File (Script)
l Java Source
l Synonym
Only a Team Coding Administrator can administer the Team Coding environment. The Team Coding
Administrator must have the role of TC_ADMIN_ROLE or an equivalent. For more information, see Team
Coding Roles on page 118.
Toolbar
Icon Description
Enable or disable Team Coding on this database. This icon works as a toggle to enable or disable
Team Coding in the connected database. Team Coding must be installed on the database before you
can enable it. For more information, see Install Team Coding on page 111.
IMPORTANT: When Team Coding is disabled, the Team Coding objects remain intact in the
database. However, Team Coding users will not be able to view anything in either of the Team
Coding Manager tabs.
Install or uninstall Team Coding. Team Coding is installed when the Team Coding database objects
are installed in the database. For more information, see Install Team Coding on page 111.
Administer Team Projects. Additional icons on the toolbar are active only when the Team Projects Tab
is active and at least one non-default project exists. See: Team Projects.
Settings tab
Set up a version-control system for use with Team Coding and set global rules for the Team Coding workflow.
For more information, see Team Coding Settings on page 113.
Setup Options
Page
NOTE: SQL Navigator assigns the Team Coding Administrator role (TC_ADMIN_ROLE)
to the selected schema. If you installed the objects in the TOAD schema but were
connected to a different schema, SQL Navigator assigns the role to both schemas.
SQL Navigator automatically assigns the TC_ADMIN_ROLE to the user who creates the
Team Coding objects. By default, all other users in the database can check in items,
check out items, and mirror their schema to a Team Coding project. You can grant the
Team Coding Administrator role to additional users, if necessary. See Team Coding
Roles for more information.
Migrate (Upgrades) If Team Coding was installed previously, you are prompted to migrate the previous
Team Team Coding settings. Select this option to migrate the previous settings.
Coding
Settings NOTE: A migration converts any existing Code Collections to Team Projects.
Finish Clicking Finish runs the script that installs Team Coding.When prompted, log in to the database
to execute the creation script and complete the installation of Team Coding.
NOTE: This icon works as a toggle. When it is shown as depressed, Team Coding is active. At
any time, a Team Coding Administrator can click this icon to disable Team Coding but leave the
Team Coding database objects installed. When Team Coding is disabled, users will not be able
to view anything in the VCS Browser or Team Projects Browser in the Team Coding Manager.
You can enable and disable Team Coding as often as needed.
VCS
(Optional) Select a VCS to use for Team Coding. Then, click to set VCS settings.
Force new Force the VCS to create a new revision record when checking in an object, even if the object
revision on source is unchanged. Note: Some version-control systems do not support this feature and will
check-in not create a new revision for unchanged objects.
Remove When an object that is controlled by a Team Project is deleted in SQL Navigator, delete the
source object from the VCS.
from VCS
Select Prompt before removing to prompt users before removing the object.
when
deleting
an object
When When you open an object or script, Team Coding compares it with the latest revision in the
differences version control system (VCS) repository (unless it is checked out, in which case SQL Navigator
in source opens a read-only version of the file). If the database object or script differs from the version
versions saved in the VCS, SQL Navigator notifies you. Differences in objects could be due to a number
exist... of factors. For example, another tool or a script may have been used to edit the object, or the
archive in the VCS may have been updated by some means other than Team Coding.
You can choose one of the following options to resolve the difference:
Open Database Version: Always load the database version in read-only mode.
Open VCS Version: Always update the database with the version from the VCS repository and
load it in read-only mode. Caution: Opening the version from the repository will cause the object
in the database to be updated.
Prompt User: Prompt the user to choose between opening the database version or the VCS
version.
l You plan to use multiple Team Projects and want to mirror each one to its own VCS directory under a
common root VCS project.
l You have multiple developers or development teams working on the same Team Project, and you want
to isolate their objects into dedicated directories within a common root project.
Use Team Projects page of Team Coding Administration to administer your Team Projects. Only a Team Coding
Administrator can administer Team Projects.
1. If using a version control system with Team Coding, log into the VCS from Team Coding | VCS Logon.
2. Go to Team Coding | Administer.
3. Select the Team Projects tab.
l To change the name of the project, right click the name and then select Rename Team Project.
l To edit the controlled database objects, click in the field next to Database Objects, then click the arrow to
select the schema that you want to edit. Refer to Setup Team Projects for information about how to
complete these fields and apply the changes.
l To make a project active (meaning Team Coding is active for the objects specified in the project) or
inactive (deactivate Team Coding for those objects), select or deselect the Active box.
2. Click to delete the project, or right-click the project and select Delete Team Project.
3. Click Apply.
2. Click to freeze the project, or right click the project and select Freeze Team Project.
3. Click Apply.
NOTE: In the Team Projects list, the project is now marked (Frozen) rather than (Active) . Click to
unfreeze the project.
Synchronize Synchronize differences between the version in the database and the version in
Changes the VCS. Select the objects that you want to synchronize.
(Disabled Synchronize resolves the following issues:
if a VCS
is not l Differences between the VCS source code and the object in the database.
being Any differences are resolved by the global setting of the "When differences
used) in source versions exist" option in the Team Coding Administrator window
(as configured by a Team Coding Administrator). If the option is set to
Prompt User (user chooses between opening the database version or the
VCS version) a non-administrator user can make that choice. Otherwise,
either the database or VCS version is opened, depending on the global
setting. See Set Team Coding Global Settings for more information.
l Objects in the database but not in the VCS are added to the VCS.
l Objects in the VCS but not in the database are added to the database.
Create New Create a new revision in the VCS for all controlled objects. This action loads all of
Revision in the objects for a Team Project into the Synchronize window. Select the ones for
the VCS which you want to make a new revision.
(Disabled
if a VCS
is not
being
used)
5. Assign a name to the Team Project. Note: You can rename a project at any time: Right-click the name
and then select Rename Team Project.
6. Do one of the following:
l If you are not using a VCS with Team Coding, leave the VCS area set to the default (blank).
l If you are using a VCS with Team Coding, click next to VCS Project to specify a project (and
sub-project as needed) in the VCS. The selected project will contain the revisions made to the
source objects that this Team Project will control. You have the following options when selecting
this directory:
Option Description
New... Specify a nested sub-project for SQL Navigator to create under the selected VCS project.
Sub- Store each object type in a separate sub-directory under the VCS directory that you created in the
Projects previous steps:
l Select All Schemas to include all of the user schemas in the database in this Team Project.
l Select an individual schema from the list.
8. To filter the objects that are controlled with this project, expand the schema node and then refer to the
following table. By default, all objects of all object types are included in the project.
Enable Clear the check box for any object type in this schema that you do not want to control with Team
Coding.
For tables, you can control how tables and their associated objects are checked out:
l Select the box at the Tables node to check out tables with their associated indexes, triggers,
and constraints.
l Select the individual Triggers, Constraints and Indexes nodes to check out those object
types separately from their associated tables.
Filters
Double-click to create filters that control which objects of each object type are controlled. You
( ) can add one or more filters. Use standard Oracle filtering such as string% or string_.
Use Filter to specify the objects that you want to control with this project.
Use Exclude to exclude objects from being controlled by this project.
9. Click OK.
10. (Optional) Create additional Team Projects.
11. Click Apply to direct SQL Navigator to create the Team Project(s) and the associated projects in the
VCS, if applicable. The objects are added to Team Coding, but not to the VCS.
NOTE: By default, a Team Project is marked as active when it is created. A status of (Active) means
that the objects in the project are controlled through Team Coding.
l (Optional) Configure connection to a version control system (VCS). See Version Control Systems.
l Configure code check-in and logging options. See also View | Preferences| Team Coding.
Options
Option Description
VCS Select a version control system to use with Team Coding. Select None to use Team
Coding without a VCS.
NOTE: If the database you are connected to is controlled by Team Coding, this
selection is read-only and cannot be changed.
NOTE: If the database you are using is controlled by Team coding, these
settings are read-only and are controlled by the Team Coding Administrator.
Prompt for check-in Force users to enter comments when checking controlled objects in or out.
comment
If the Force check-in comments or Force check-out comments option is set
Prompt for check-out globally by the Team Coding Administrator, that option is read only on this page.
comment
Prompt for check-in Prompt users to check in their work when they close SQL Navigator.
all on exit
Prompt for changes Prompt to alert you of changes made to the VCS configuration.
to VCS server config
Check-out object on Automatically check out a controlled object when it is opened in SQL Navigator.
opening
Check-in object on Automatically check in a controlled object when it is closed in SQL Navigator.
closing
Force new revision Force a new VCS revision when a controlled object is checked in, even if no changes
on check-in are made. Not all VCS systems support this feature.
VCS Logging Description
Show VCS command Display Team Coding VCS commands and responses in the Output Window.
output window
Enable VCS debug Save VCS commands and responses to the VCS debug log. To view this log, click
logging Open log file.
Setting Description
CVS Specify the name of the CVS program file in one of the following ways:
Executable
l Specify the full path to the file, such as C:\Program Files\CVS\cvs.exe. This
forces SQL Navigator to use the specified program.
l Specify only the file name, rather than the entire path (the location of the program file
must be in your system path). SQL Navigator will use the first occurrence it finds of the
specified file name.
Global Specify any global options that you want SQL Navigator to pass to CVS whenever a CVS
Options command is executed by SQL Navigator. For example, the default option of -f tells CVS to
ignore your .cvsrc options file.
You can use more than one option. Separate multiple options with a space.
NOTE: Do NOT enter a -d CVSROOT option here. SQL Navigator adds this option
automatically, using the CVSROOT you provide in the CVS Login window.
Date Format These options specify how CVS will send dates. You can use the following formats:
Default: yyyymmdd
Time Format These options specify how CVS will send times. You can use the following formats:
Default: hhnnss
Time Zone Direct SQL Navigator to adjust the time stamps read from the output of CVS commands. For
example, to subtract eight hours from all timestamps, specify a value of -800. To add three
hours, enter a value of 300.
Default: 0
Login Description
Login Omit a prompt when SQL Navigator logs into CVS after connecting to the database. The most
Automatically recently used CVSRoot will be used.
To use this option, the following must be true:
l The Team Coding option "Disable Login Prompt on Connection" must not be
enabled.
l The TC=NO command-line option must not be enabled.
Time Set the amount of time (in milliseconds) that SQL Navigator pauses after sending each
Between character of the password to the CVS password prompt.
Keypresses
The default is zero.
NOTE: If you find that CVS is returning "invalid password" errors, you may need to
increase this number. A suggested figure is 100 milliseconds.
Configure Git
These configuration settings are specific to git.
Setting Description
Git Client Point to a different Git executable. Typically, no change is required in this
field.
Automatically Login to Default Direct SQL Navigator to log in to the default repository without opening the
Git Repository login window.
Allow SQL Navigator Login to Direct SQL Navigator to update the Git user and email configuration settings
Update Repository User and for the repository. These are used to track the author of changes and
Email commits.
Commit Comments Set the default comment for commits if no comment is made by the user
during the commit. Git requires comments for commits.
Setting Description
ClearCase Executable Select the ClearCase executable file that you want to use.
Validate Validate that SQL Navigator can launch the selected executable.
Automatically load Views and VOBs Automatically load ClearCase views and versioned objects from the
from ClearCase Server specified hosts when SQL Navigator starts.
General tab
Setting Version
Options tab
Setting Version
l If this option is set, SQL Navigator checks the Perforce server for client workspace
information when logging on to Perforce.
l If this option is not set, Perforce checks for saved workspace information on the client
desktop. (Deselect this option if Perforce loads slowly when you log in.)
Setting Description
Client Tab
Setting Description
Global Send Subversion global options across all Subversion commands. For more information, see
Options the help information provided with the SVN client.
NOTE: The username and password global options are automatically included when
necessary with server-based connections.
Default Set default values to connect to your SVN Repository. SQL Navigator uses these values
Connection to create the URL to the repository.
Method
l Select Local Connection if the server is installed on the same machine as the
client.
l Select WebDAV Connection if the server is to be accessed across the HTTP
protocol.
l Select SVN Server Connection if the server is on a remote machine and is to be
accessed through the svn protocol.
OptionsTab
Setting Description
Use locking on check out / check Use locking when checking out files and to clear locks when checking in
in files.
General Tab
Setting Description
Server Specify the name of the server where the TFS repository is installed and specify the TFS port
Location number on that server. Optionally, you can specify that connections are SSL.
Client Specify whether to connect through the internal or external client. Each option has advantages
and disadvantages. For more information, see More about Team Foundation Server and SQL
Navigator on page 137.
Connection Connect automatically to the default TFS workspace when SQL Navigator starts.
Disable prompts when Enable this option to suppress Team Foundation Server prompts whenever possible
possible during a check-in or check-out process.
Associate Work items Set Link one or more TFS work items to the check-in change set.
with Change
Only show my Show only the code changes made in this SQL Navigator client when displaying
changes history.
Stop after Stop maintaining revision history after the specified number of check-ins.
Advanced Tab
Setting Description
Default Enter an alternate URL if your Team Project Collection has a non-standard URL that cannot be
URL correctly built using SQL Navigator’s configuration settings.
Custom When this value is set, SQL Navigator ignores all the other settings (Server, Port, Collection,
URL Virtual Dir, etc.) and uses the Alternate URL to build TFS calls to the Team Project Collection on
the server.
NOTE: It is recommended that this is only used in the very small number of cases where
the URL to the Team Project Collection is not configurable from the normal SQL Navigator
settings.
Collection Specify the TFS Collection to connect to , if using TFS 2010 or later.
Virtual Specify the path to the virtual directory, if using TFS 2010 or later.
directory
Alternative Specify an alternate URL for use if the primary URL is not available.
URL
NOTE: To make adjustments to the Team Coding global setup, click to Administer Team Coding.
l Team Projects
l VCS
NOTE: If nothing is displayed on these tabs, it means that Team Coding was disabled by a Team Coding
Administrator.
VCS tab
If a Team Coding administrator linked Team Coding to a version control system (VCS), the Version Control tab
(also known as the VCS Browser) provides a view of the Team Coding objects in their version control projects,
as well as other non-controlled projects. The folders for projects that contain Team Coding objects are colored
green to distinguish them from other projects.
The Team Coding-controlled objects are displayed in the browser with a green check mark , to distinguish
them from other files under source control. When these objects are checked out, their locks are controlled in
Team Coding and the internal Team Coding transaction table is updated.
NOTE: You may need to customize the toolbar to display all of the available actions. Click the arrow at
the end of the toolbar, then select Add or Remove Buttons.
Select an action from the toobar or the right-click menu. (Actions not appropriate for the current workflow are
disabled.) See the following table for action descriptions.
Synchronize Synchronize differences between the version in the database and the version
Changes in the VCS. Select the objects that you want to synchronize.
(Disabled Synchronize resolves the following issues:
if a VCS
is not l Differences between the VCS source code and the object in the
being database. Any differences are resolved by the global setting of the
used) "When differences in source versions exist" option in the Team Coding
Administrator window (as configured by a Team Coding
Administrator). If the option is set to Prompt User (user chooses
between opening the database version or the VCS version) a non-
administrator user can make that choice. Otherwise, either the
database or VCS version is opened, depending on the global setting.
See Set Team Coding Global Settings for more information.
l Objects in the database but not in the VCS are added to the VCS.
l Objects in the VCS but not in the database are added to the database.
Create New Create a new revision in the VCS for all controlled objects. This action loads
Revision in the all of the objects for a Team Project into the Synchronize window. Select the
(Disabled VCS ones for which you want to make a new revision.
if a VCS
is not
being
used)
Configure Team Open the local user settings for this installation of SQL Navigator. For more
Coding Settings information, see Configure Team Coding on page 119.
Administer Team Open the Team Coding Administration utility. For more information, see
Coding Administer Team Coding on page 110.
Team Coding View the current state of the local Team Coding installation, the VCS (if being
Status used), the Team Projects, Team Coding Settings, and other environmental
information. For more information, see Team Coding Status on page 127.
(Disabled
if a VCS
is not
being
used)
Select VCS
Project
Add File
Check out Check out one or more objects. When you check out an object or file, it locks
that item in the database. The item remains locked until you check in your
changes through Team Coding.
If a VCS is being used, there are two parts to a checkout
If a VCS is not being used with Team Coding, only step 2 from the preceding
actions occurs. Team Coding does nothing with your source code in this case.
If a VCS is not being used with Team Coding, only step 2 from the preceding
actions occurs. Team Coding does nothing with your source code in this case.
Check in all Check in all objects that you currently have checked out in your local SQL
Navigator environment.
Get latest Retrieve the latest revision of the object from the VCS. The object is not
revision checked out, and there are no changes made to the database.
Compare Compare the VCS version of an object side by side with the version in the
contents database. You can also compare revisions in the VCS by selecting the
revision numbers that you want to compare in the VCS browser and then
clicking Compare Contents. See Compare Files and Objects for more
information.
Open Open the object in the Editor or the DB Navigator. To open an object so that
you can work on it in an editor, you must first check it out.
Delete Record Delete the object source from Team Coding and Version Control (if allowed
by the administrative settings.)
Expand/Collapse Expand or collapse the nodes in the tree. Click the arrow for options.
Break Team Break a Team Coding lock created by another user. (Can only be performed
Coding Lock by a Team Coding Administrator.)
Freeze Freeze an object to prevent updates to it. (Can only be performed by a Team
Coding Administrator.)
Provider logon
The version control system (VCS) must be configured in Team Coding before you can log in. For more
information, see Install Team Coding on page 111.
Related Topics
Provider logon
Version Control Systems
More about Git and SQL Navigator
Using Perforce
1. Go to Team Coding | Select VCS Project.
If loading workspaces automatically from the server, or a workspace is already in the local cached list,
then select an existing workspace from the list.
1. Enter your Perforce user name and password, and click OK.
2. Select the Perforce project (depot) for use in SQL Navigator.
NOTE: SQL Navigator does not currently support saving working files to a separate folder. This is a read
only value.
l On the ClearCase Explorer tab, you can review the Project VOBs available in the ClearCase View.
When you select a Project VOB from Source Control, SQL Navigator will show a list of the controlled project
folders within the selected VOB. This version of SQL Navigator only supports a single level of folders within a
ClearCase Project VOB.
If a VCS is not being used with Team Coding, only step 2 from the preceding actions occurs. Team Coding does
nothing with your source code in this case.
You can also check in or check out an object by right-clicking it in DB Navigator or Team Projects browser, and
then selecting the desired command.
l Select Team Coding | Check-in all to open a dialog where you can select objects individually from a list.
If a VCS is not being used with Team Coding, only step 2 from the preceding actions occurs. Team Coding does
nothing with your source code in this case.
Undo a checkout
To cancel the check out and reverse any changes, click on the Team Coding Manager Toolbar.
Alternatively, you can right-click the object then select Undo check-out.
IMPORTANT: Quest Software is unable to provide support for source control issues caused by the
version control system, including the version control system's support for Microsoft's SCC API. If you have
problems connecting to Toad through SCC, contact the version control system's Support.
Direct Supported
Version Control System Version
page 136.
NOTE: You must set up a working client view, mapped to the Project VOB
on the client computer, before using it in SQL Navigator.
NOTE: The Perforce client must match your operating system. For
example, if you are running Windows 7 64-bit, then you must use the 64-
bit Perforce client.
NOTE: PVCS 6.6.1 and 6.8.0 are specifically not supported with Team
Coding.
l PVCS is supported with Team Coding for both 32-bit and 64-bit SQL
Navigator.
l It has been tested with Serena PVCS Version Manager 8.5/ 8.4, and
replaces existing Merant PVCS interfaces.
l PVCS Version manager Command Line Interface (CLI) is supported.
l PVCS Command Line option must be included when installing PVCS
NOTE: It is strongly recommended you use the native APIs for SourceSafe and PVCS when using Team
Coding (instead of the SCC integration).
Most version control systems that integrate with SQL Navigator through the SCC API ignore the "Force
revision" flag and the "Create a new revision for existing objects" option when exporting.
l SQL Navigator checks files in and out of the local repository residing on the client desktop.
l Changes are posted back to the local repository immediately.
l Updates to any centralized repository are handled outside of SQL Navigator.
Related Topics
Version Control Systems
NOTE: You can switch off the option to load workspaces from the Perforce Server.
By only loading workspace details for the currently active workspace, the workspace load also has been
significantly optimized,.
There is a configuration option to enable/disable "Automatically Load P4 Workspaces from P4 Server."
If Automatic load option is not checked, logging on to Perforce will only load workspaces that have been
saved to the client ini file during a previous session.
There is al manual 'Reload from Perforce' option, to load all workspaces from the Perforce server.
You can enter all workspace information manually, or load the information from the Perforce server.
l You have the necessary Microsoft Client Access License (CAL) to update work items in Team
Foundation Server.
l .Net framework 4.0 installed.
l Team Explorer or Microsoft Visual Studio 10.0 or 11.0 (VS 2010 or VS1012)
l SQL Navigator installs a required DLL (TFSWorkItemLink32.dll or TFSWorkItemLink64.dll depending on
the version) in the SQL Navigator program directory
l SQL Navigator registers the DLL with the required .Net assembly (.Net Regasm.exe).
This change set will now be linked to the selected work items.
Analyze Tool
Use the Analyze tool to view and collect statistics, validate structure and list chained rows for database
structures such as tables, clusters and indexes.
From the Explain Plan Tool 1. Select a node in the Explain Plan Tool.
2. Click Show/Collect Statistics.
Collect Statistics
Select the collection method.
Collection Description
Method
Compute The entire object is scanned to gather data. The larger the object, the longer it takes to
Statistics complete the analysis.
Select this option only if the object is small.
Estimate Sample by rows or percentage of the object. The accuracy of the statistics depends on the
Statistics representatives of the sampling.
This option suits large objects.
Validate Structure
Use to verify the integrity of the selected object.
Select Cascade to additionally verify dependent objects. For example, if you validate the structure of a cluster
and select Cascade, SQL Navigator checks all tables and indexes in the cluster.
NOTE: Oracle returns an error message if it encounters corruption in the structure of an object. To fix
errors: Drop and recreate the object from the commands on the Object Menu.
1. The default name for the table that will contain the chained rows information is CHAINED_ROWS. This is
defined at View | Preferences | General | Default Tables.
2. Click Create Chained Rows Table to create the table. Watch for verification in the Output Window.
3. Click List Chained Rows to collect the information. Watch for verification in the Output Window.
4. To view the information select the CHAINED_ROWS table in DB Navigator and click Object Menu |
Quick Browse.
TIP:
l Can be used to provide a quick summary of a table or view and all its column names and data
types.
l The Auto Describe Tool is dockable. For more information, see Customize The Screen Layout on
page 43.
l The Auto Describe Tool always stays on top of the application window.
l Select the following to automatically display the Auto Describe Tool when you press CTRL and
click on an object name and create a hyperlink: View | Preferences | Code Editor | General |
Describe Object at Hyperlink.
In the Code Editor To move the text cursor to the declaration of a variable (or Auto Describe it if it’s the
name of an external database) press CTRL and point to the variable with the mouse.
To return to the former position in the text, press Alt+Left Arrow.
Benchmark Factory
Benchmark Factory® is a highly scalable load testing, capacity planning and performance tuning tool capable of
simulating thousands of users accessing your database, file, Internet and messaging servers. Benchmark
Factory can simulate user transactions before and during application deployments, enabling performance
issues to be addressed before end users are affected.
l Allows IT professionals to determine system capacity and isolate system stress related problems
l Common interface displays the testing of databases, Internet, e-mail and file servers.
l Simulates the maximum number of users on a minimal amount of hardware
l Enables IT professionals to discern problems before and after applications are deployed
l Comprehensive tutorials cover load testing, benchmarking, capacity planning and performance tuning,
including information on configuring your system and analyzing results.
NOTE: Requires installation of Benchmark Factory. Benchmark Factory is installed independent of SQL
Navigator.
Bookmarks Dialog
View / Go to / Delete bookmarked lines in the code.
Option Description
NOTE: If the PL/SQL procedure is run under the debugger, the HTML output is not visible until the
procedure is complete.
Option Description
Old password The password you used to logon to the Oracle session.
New What you want to change the password to.
password
Verification Type the new password twice: once in the New password box and then again in the
Verification box.
Code Analysis
Code Analysis is an automated code review and analysis tool. It enables individual developers, team leads, and
managers to ensure that the quality, performance, maintainability, and reliability of their code meets and
exceeds their best practice standards.
The Code Analysis Report includes detailed descriptions of the code metrics and how they work. For more
information, see Code Analysis Window on page 146.
The Code Analysis window provides detailed analysis, including a results dashboard, report, and tree view with
violations and code properties. You can also simultaneously analyze multiple files from this window.
Open files.
Load objects from the database. You can click the drop-down arrow beside this button to load all
objects or choose a group of objects to load.
3. Select the rule set you want to use in the Code Analysis toolbar (the default is Top 20).
4. To evaluate statements' complexity and validity, select Run SQL Scan in the Run Review list on the
Code Analysis toolbar.
5. Select the items to analyze in the grid.
Use SHIFT or CTRL to select multiple items.
6. Analyze code for all selected items. Click or press F9. (Ensure Run Review is selected.)
Send code back to the Code Editor from the selected file or object. SQL Navigator displays the Code
Analysis errors and violations in the tabs below the Code Editor.
Additional details
Grid The right side of the grid displays a dashboard of violations and statistics. The dashboard
Dashboard includes the item's Toad Code Rating (TCR), which is a composite of several rating criteria. The
score ranges from 1 (best) to 4 (worst). It provides a quick reference for how your code has
performed in the analysis.
Result tab The Results tab displays the analysis results in a tree view. Expand each node for details on the
violations. If you select a violation in the tree view, the preview on the right displays the
corresponding code.
The Result tab displays the results for the item selected in the grid. If you analyzed multiple
items and select them in the grid, the tab displays the results for all of the selected items.
Report tab The Reports tab summarizes the analysis results and includes rule definitions. Items in the table
of contents are hyperlinked so you can easily navigate the report.
NOTE: By default, the Report tab only displays the analysis for one item. However, you
can select Display all selected results on Report tab to include multiple items in the
report.
For each rule in the rule set, select the rule to include it, deselect the rule to exclude it.
Import a rule set. Navigate to the location of the rule set and click Open.
If the rule set has user defined rules then when importing you will be asked if a rule-export file exists,
and you want to import it. If so the rules are imported. If any rule numbering has to occur because of
conflicts, the rule set is automatically updated to the new rule numbers.
Create or Clone
Icon Description The Code Analysis Rule Builder
Create a Rule IDs are automatically generated sequentially from 7000 to 9000.
rule
Enter the Description and specify the Rule Tip.
A checked box in the User Defined column will be displayed for the rule you created.
Edit
Select the rule to edit. Edit the fields as necessary.
Field Description
XPath Expression Edit the XPath. If this field is blank, then you cannot edit the XPath for the
rule.
Import a rule. Navigate to the location of the rule and click Open.
NOTE:
l If a modified SQL Navigator rule is imported, the changes are applied to the rule in
place.
l If a user-defined rule has a number that already exists, the imported rule is given the
next available rule number and added.
Code Assistant
Drag and drop PL/SQL syntax, SQL functions, column names, and database object names into code.
Catalog Description
Syntax Browse the ready-to-use library of PL/SQL syntax. The Knowledge Xpert gives SQL Navigator
and Web users a library of more than 900 pre-built PL/SQL routines that can eliminate hours of low-level
Catalog coding and debugging while enhancing application performance and reliability.
PL/Vision Knowledge Xpert products are available as optional add-on modules. For more information, see
Code Store your own frequently used SQL statements and code fragments here.
and SQL
For example, you can store your frequently-used cursor declarations or variable declarations.
Catalog
TIP: The catalog sorts the folders and items alphabetically by name. Use your own naming
conventions or prefixes to group similar snippets together.
Add new item or node Add a code snippet or SQL statement. Open the Add to Catalog / Edit Dialog.
Edit item or node Edit the selected item. Open the Add to Catalog / Edit Dialog.
NOTE:
NOTE: You cannot delete the top level nodes of the tree.
TIP: Alternatively drag and drop the snippet into the editor.
Capture code Use to add a code snippet or SQL statement from an editor window into the
catalog:
This opens the Add to Catalog / Edit Dialog with the selected code already
inserted.
Field Description
Hint The text to be used as a hint in the status bar at the bottom of the Code Assistant window.
Image The icon to identify the code snippet in the catalog (Generic, Function, or Procedure).
New code road map This opens the Model Code Dialog.
Clear diagram Clear the model window. Revert to the initial start up state.
Save file as Save the map with a new name (Extension: .crm).
TIP: You could copy the image to the clipboard. Right click
over the map and select Copy Image to Clipboard.
Previous auto layout / Next Scroll through layouts of the Code Road Map.
auto layout
The hierarchical tree is organized by Each object listing contains the name of the object, the schema
object type. All procedures are listed where it resides, and the type of object. For Code Type | Package in
under the Procedures node, and all Collapse Package view, any sub units that are referenced will be
tables under the Tables node. included under the object type. For example:
Click on an object to highlight it in the
Graphical Model.
Actions: Actions:
l Click on an object in the tree l Right-click on an object to display the popup menu from the
view and the Graphic Model Schema Browser for that object type.
centers on that object.
l F2 toggles full screen mode.
l Right-click on an object to
l F4 or Double-clicking on an object performs a Describe, if
display the popup menu from
SQL Navigator supports Describes on that object type.
the Schema Browser for that
object.
l F4 performs a Describe, if SQL
Navigator supports Describes
on that object type.
l Double-click an object to
perform a Describe.
Field Description
Sub Unit The various parts of the package, sorted alphabetically. The first sub unit is selected by
default.
Levels to The number of levels to model down from the starting object. The default is ten.
Model
Code Model both the code called and data (tables, views, and so on) referenced by the
+ Data object.
Display the database objects the code references and in what manner (for
example, read versus write). You can also include pertinent triggers and views.
Views are essentially treated as tables.
Display Select as appropriate. These options affect the visual display of the map. The data in the map
Options is not affected.
Code Templates
Insert ready-made code segments into any active editor window.
Action Description
Insert code from a template 1. In the editor, place the cursor where you want to insert the code
into an active editor window. segment.
2. Choose one of the following:
l Type the shortcut key to the code template.
l Type the full or partial name of the code template and press
Ctrl+J to either insert the matching code template or select
from a list of matches.
l Press Ctrl+J. Select the template name from the drop-down list
and press Enter.
Add / Edit / Delete code Click View | Code Templates | Edit Code Templates. This opens the Code
DBMS_OUTPUT.Put_Line Shift+Ctrl+D
Exception Shift+Ctrl+E
IF Statement Shift+Ctrl+A
Raise_Exception Shift+Ctrl+R
Variable_name Shift+Ctrl+T
Column Description
Name The name of the template. A template name is a single word with no spaces.
You cannot change a template name. Instead, you can delete an existing
template and create another like it with a different name.
Shortcut The shortcut key combination used to insert the template code into an editor.
key
Click in the field to change the Shortcut key. Select from those available. To have
no shortcut key select None.
Code View / Edit the SQL code for the selected template.
Default Templates
Name Description Code Shortcut Key
exceptions
statements;
Unassigned SHIFT+CTRL+H
Unassigned SHIFT+CTRL+J
Unassigned SHIFT+CTRL+K
Unassigned SHIFT+CTRL+P
Unassigned SHIFT+CTRL+Q
Unassigned SHIFT+CTRL+Y
Unassigned SHIFT+CTRL+Z
Code Test
Edit Test Opens Test Case Properties. Includes the properties of the highlighted test case.
Case
Clone Test Opens Test Case Properties. Renames the test case. Includes the properties of the
Case highlighted test case.
TIP:
Field Description
Test Name The name of the test case selected or a new name. This field is
editable.
Parameter, Input & Expected Configure input parameters and expected outputs.
Output
Test & Result
TIP: You can use this utility to perform a quick "where-used" impact analysis.
You can stop/suspend the search from the Session Menu or toolbar.
DB Navigator
DB Navigator shows the entire database structure as a tree with expandable nodes.
DB Navigator Toolbar
Icon Tool Tip Description
Back and Retrace your steps. Navigate between hyperlinked database objects and their
Forward dependent objects and components. Move between—
You can also use the Forward and Back buttons in conjunction with Up One Level.
DB Set and Save filters to limit the objects displayed in the tree.
Navigator
Open the Filter Properties Dialog.
Preferences
Fully Expand the selected DB Navigator node and all its descendants.
Expand
Node from
DB
Using DB Navigator
DB Navigator displays all types of Oracle objects, giving you a hierarchical view of any schema, including
dependent objects. The tree view includes nodes for "My Schema," "All Schemas," and "Current Instance."
l Drag objects or connections that you use frequently to the Project Manager for fast access.
l Double click on an object to open it for editing (Visual Object Editors, Code Editor).
l Further commands are available on a selected object (or objects). Try the Object Menu. Right
click on the object.
l When a property is a reference to another database object (for example the base table for an
index, or synonym's base object), click on the reference in the Value column to jump to the
referenced object's node and display its properties.
l To move around in the Navigator window you can use the keyboard arrow keys. Use Page Up
and Page Down to scroll multiple lines.
l To purge objects: Select the object(s) in the Recycle Bin and right click Purge. Alternatively, right-
click on the Recycle Bin node and select Empty Recycle Bin.
l To copy an object from one schema to another:
1. Open a second DB Navigator window.
2. Drag the object from the source window to the target window.
3. Execute the DDL displayed in the editing window
l To switch to another session's DB Navigator window, select the session and click View | DB
Navigator.
l Your view of the Oracle Data Dictionary determines what objects you can see. For more
information, see DBA Dictionary Views on page 49.
Create or modify DB Navigator filters that restrict the display of objects in the DB Navigator tree. You can save
your filters, so that they will be available from the DB Navigator toolbar.
Select filter
Field Description
General Selected schemas will be visible in the DB Navigator tree when the filter is applied.
Global Selected top level nodes will be visible in DB Navigator when the filter is applied.
Filters
Object Selected object types will be visible in the DB Navigator window when the filter is applied.
Filters
Application of name masks
Type the name mask in the Filter box.
Name masks are specified according to Oracle’s LIKE operator definition. For
example, setting the name mask ABC% will result in displaying only those objects
with names beginning with the characters "ABC".
The name mask is applied to all selected object types. Click Assign Globally.to
apply the name mask to all objects.
Describe
The Oracle DESCRIBE command reports the attributes, methods and arguments of an object type. The SQL
Navigator Describe command works with more objects than does the SQL*Plus version of the command. You
can describe not only procedures, functions, packages, synonyms, and object types, but also tables, indexes,
clusters and objects.
TIP: To keep the existing Describe window open while opening additional Describe windows, click the
Pin toolbar icon in the Describe window. Set the default pin behavior in View | Preferences | General |
User Interface.
l Can be used to provide a quick summary of a table or view and all its column names and data
types.
A quick way to construct a SELECT To drag column names into the Select statement
statement
1. In the editing window, click the cursor on the table name.
2. Open the Describe window.
3. Drag and drop column names from the Describe window into
the SELECT statement.
Object | Click the Describe command on the Object menu whenever needed. It opens a describe window
Describe for a single selected object and will not update automatically when you select another object.
Difference Viewer
The Difference Viewer displays the compared objects in a split window. Differences between the objects
are highlighted, and the toolbars and menus give you access to controls for customizing the view and
creating reports.
Difference
Find Next Go to the next difference.
Difference
Show All Show all lines of the compared objects.
Show line Show full details of the current line below the viewing window (so you don’t have to
details scroll to see the entire line)
File Open File Comparison Rules.
comparison
rules
Options Open Viewer Options.
Viewer Options
Appearance | Color Scheme
1. Select a color scheme for each of:
l Matching Text
l Similar Text
l Different Text
2. Define how missing text should be displayed.
Select Color and click Select Color to choose the color block to show to represent missing text.
Alternatively, select Blank.
3. Click Font to customize the font, font style, font size and script.
4. Select Horizontal Lines Between Mismatches if desired.
TIP: All changes to the appearance can be previewed in the sample viewer display in the Viewer
Options window.
Tab Stops Set the width of Tab Stops displayed in the Difference Viewer.
Synchronization The Synchronization Settings control the workings of the comparison engine that reports
Settings differences and similarities between the two files. You can set the synchronization
parameters low to allow more efficient searches for small differences, or higher for handling
larger files or files with large differences. Unless you are experienced in manipulating
comparison synchronization algorithms, you will probably find that the default settings work
well enough for most situations.
Option Description
Initial Match The minimum number of lines that need to match in order for text
Requirement synchronization to occur.
Skew The number of lines the Difference Viewer will search forward or
Tolerance backward when searching for matches. Smaller numbers improve
performance.
Suppress Suppress Recursion refers to the method used to scan for matches.
Recursion Recursion improves the ability to match up larger as well as smaller
sections of text, but it can take longer.
Ignore Minor Selected Ignore minor differences so you can focus only on significant differences.
Differences
Not Highlight minor differences in the Difference Viewer window. Minor
Selected Differences are as defined in the Define Minor tab.
Case Select the items you want highlighted as minor differences. Items not selected
will be ignored.
Leading Whitespace
Ensure General | Ignore Minor Differences is not selected.
Trailing Whitespace
Embedded Whitespace
/* Text within Slash-Asterisk */
(* Text within Parenthesis-
Asterisk *)
Edit Data
Use to edit data in a table object.
ER Diagram
The ER (Entity Relationship) diagrammer lets you quickly model a table and graphically see the dependencies
and joins to other tables.
NOTE: To ensure indexes are delivered in the correct order in a diagram, ensure the Oracle Data
Dictionary is queried with DBA Views. For more information, see DBA Dictionary Views on page 49.
Save File
Print Preview
Load ER Diagram in the For more information on the SQL Modeler, see SQL Modeler.
SQL Modeler
l DB Navigator
l From the tree, drag a single object only.
l From the Details pane, drag a list of objects.
l Find objects Dialog
l Project Manager
Create ER Diagram
Field Description
If the display option has an icon associated with it, the icon is displayed to the
right of the option. In the diagram, the appropriate icon will appear to the left of
the table name.
TIP: The Analyze Tool can be used in conjunction with the Explain Plan tool. The Explain Plan Tool does
not analyze tables itself prior to executing the Explain Plan, but it does have a toolbar button for manual
launch of the Analyze Tool.
Option Description
Stmt ID If required, you can enter a Statement ID to identify the statement within
the current plan table.
Save SQL Select to save the SQL when saving the generated plan.
text
Comment Optionally, comment on the plan.
Plan Table Enter the Plan Table Owner or use the default listed.
Owner
Name Enter the Plan Table Name or use the default listed.
TIP: If specifying a new plan table, use the Create Table button to
create the table.
Generate Click to view the Oracle execution plan for the statement.
Operation Explain the node selected in the Explain Plan tree. Show how each SQL operation is
Description executed in relation in the Explain Plan.
Show / Hide in Generate Plans | Show Description.
Plan The generated execution plan. Click on nodes to expand and collapse them.
l The SQL Statement from which the explain plan tree was derived
l Statement ID, Type, Cost and Time stamp
l The Explain Plan tree, including the execution sequence numbers in brackets
TIP:
l When the printout exceeds one page, the headings (such as the SQL Text and statement ID lines)
are not repeated. This makes it easy for you to 'tile' multiple pages together to display the explain
plan tree as a single diagram.
l Use File | Print Preview to preview your output.
Export Table
TIP: Select the objects to be exported before you open the Export Tables window. Use for example DB
Navigator, DB Explorer, Project Manager, a list of results after finding objects.
l Double-click on a table.
l Selecting one or more tables and click >.
l Select one or more schemas and click >. This adds all tables in the selected schemas.
l Click >>. This adds all tables in all schemas.
l Select objects before you open the Export Tables window.
Option Description
Objects to export Select the objects you want exported from the database to the DMP file.
Field Description
NOTE:
Buffer size The size, in bytes, of the buffer used to fetch rows. This
(leave blank for parameter determines the maximum number of rows in an
default) array fetched by Export.
Use the following formula to calculate the buffer size:
buffer_size = rows_in_array * maximum_row_size
If you specify zero, Export Tables fetches only one row at a
time.
Tables with columns of type LOBs, LONG, BFILE, REF,
ROWID, LOGICAL ROWID, or DATE are fetched one row at
a time.
Field Description
Parameter file name A name for the file that contains a list of import
(.dat) parameters.
This field is mandatory.
Results (3)
When execution is complete there are three tabs in the Export Tables window. The results of the export are
shown on the Output tab. The Log and Parameter file tabs show the contents of their respective files.
l You can use wild-card characters %" and "_" (according to SQL LIKE operator definitions).
l You can filter by schema, object type, date last modified and status.
1. In DB Navigator, select a schema node in the top level of the DB Navigator tree.
2. Click Search | Find Objects.
Describe View a description of object structure ( index, cluster, procedure, function, or package).
Use Describe or Auto Describe Tool on the selected object.
Sort Sort on any column (name, owner, type, creation/modification date, status) in ascending or
descending order.
Click the column header.
and l apply commands like Copy Text, Drop, Extract DDL, Compile, Get Metadata, Properties,
update Send to Code Analysis, Add to Project Manager, Enable, Disable, and Truncate to the
entire batch of objects. For more information, see Object Menu on page 27.
l drag the group of objects into a text editor or DB Navigator.
TIP: Other actions are available. Right-click on the object and select a command from the shortcut menu
l You can use wild-card characters %" and "_" (according to SQL LIKE operator definitions).
l You can filter by schema, object type, drop date and System Change Number (SCN).
Sort Sort on any column (name, owner, type, creation/modification date, status) in ascending
or descending order.
Click the column header.
Batch selection When multiple objects are selected, you can apply commands like Copy Text, Purge and
and update Flashback to the entire batch of objects.
TIP: Other actions are available. Right-click on the object and select a command from the shortcut menu
Save Save the currently selected formatting options to the SQL Navigator
installation folder, filename FmtOptions.opt.
TIP: SQL Navigator loads the Formatting Options from the default file (FmtOptions.opt) and default
location each time the Formatting Tool Options window is opened and when the Formatter Tool performs
formatting. The default location for Formatting Options is in the SQL Navigator installation folder.
Oracle Tooltips
Formatter
Show tooltips when the mouse cursor is hovered over certain options.
Options
Copy Options to Clipboard
Copy the options in both INI and XML format to clipboard for backup or reviewing purposes.
Show the Example Window
Show an example window when navigating different pages of the Formatter Options window.
You can specify a script file to be formatted as an example, or select the Document per Pane
option to use the example scripts from the Example document folder.
You can modify the example scripts in the Example window. Changes are saved
automatically.
Header Select Enable to generate a header tagline after formatting the script. You can specify some
text to be included in the header tagline. Do not use /* or */ in the text.
Note: The date time options are currently not in use.
Spacing Set physical output characteristics such as tab size, margins, and indents.
Comments Select this option to align trailing comments to the right margin.
Case Modify the lowercase, uppercase, or initial capitals of various syntax elements.
List Define list attributes such as parentheses, commas and folding/stacking characteristics.
Arrangements
HTML Viewer
Show HTML in the integrated viewer.
This eliminates the need to switch from your coding environment to an external browser.
TIP:
l Enable Capture Web Output so each time you execute PL/SQL code, the generated HTML is
displayed in the integrated viewer. If the PL/SQL procedure is run under the debugger, the HTML
output is not visible until the procedure is complete.
l You can select links and submit forms from the integrated viewer. If the link or submit target is
another PL/SQL generated page then that page appears in the viewer. If it is an external link then
an error message will appear. You must fill in the Web Support Configuration Dialog for this to
work correctly.
l Use the Web Support Configuration Dialog to specify where images can be loaded or enter the
details of your web server's configuration.
l Click View in External Web Browser to open the page in your default Windows web browser.
This is useful for testing links to pages that are not PL/SQL generated. SQL Navigator will map
images as defined in the Web Support Configuration Dialog, but this mapping will only apply to
the generated page. All links, frame sources and your browser and Web server, not SQL
Navigator, will handle form posting.
l Click File | Print to print the page.
Actions Description
See also Import HTML as PL/SQL for HTML > Stored Procedure.
Actions Description
Save the When the HTML is imported into the stored program, you can save the program to the
program to the database.
database.
begin
htp.print(‘ ‘);
Import Table
Import all tables Import all tables in the DMP file into the current user's schema regardless of which
user the tables belong to.
Specify From User Import all the tables owned by the From User to the To User. Specify the from and to
To User users in the relevant fields.
To import tables from more than one user, use a space or comma (,) to separate the
user names.
Manually enter table Type the names of the tables to import and click Add.
names
Do not include the schema prefix in the table name.
Option Description
Objects to export Select the objects you want imported to the database from the DMP file.
NOTE:
Commit Sets the Import utility to commit after each array insert.
after
By default, the Import utility commits only after loading each table. If
each
an error occurs, a rollback is performed before continuing with the
array
next object.
insert
Selecting this parameter prevents rollback segments from growing
inordinately large and improves the performance of large imports. If
the table has a uniqueness constraint it is recommended that this
parameter is selected. If a table does not have a uniqueness
Field Description
Show When this parameter is selected the contents of the export file are
export displayed and not imported. The SQL statements contained in the
file export are displayed in the order in which the Import utility will
Field Description
Buffer The size of the buffer, in bytes, through which the data rows are
size transferred.
(leave
BUFFER determines the number of rows in the array inserted by the
blank for
Import utility. The following formula gives an approximation of the
default)
buffer size that inserts a given array of rows:
buffer_size = rows_in_array * maximum_row_size
For tables containing LONG, LOB, BFILE, REF, ROWID, UROWID,
or DATE columns, rows are inserted individually.
The size of the buffer must be large enough to contain the entire
row, except for LOB and LONG columns. If the buffer cannot hold
the longest row in a table, the Import utility attempts to allocate a
larger buffer.
Provide Displays a period each time the number of specified rows has been
a imported.
Field Description
feedback For example, if you specify 10, Import displays a period each time
dot each 10 rows have been imported.
time n
rows are NOTE: The FEEDBACK value applies to all tables being
exported imported; it cannot be set on a per-table basis.
Parameter file The name of the file that contains the list of import
name (.dat) parameters.
This field is mandatory.
Results (3)
When execution is complete there are three tabs in the Import Tables window. The results of the import are
shown on the Output tab. The Log and Parameter file tabs show the contents of their respective files.
Java Manager
The Java Manager is a convenient alternative to the Oracle LoadJava and UnloadJava command line utilities.
Use the Java Manager to load and unload multiple Java source files, classes, resources and archives.
Field Description
Options Set the command line switches found in the Oracle LoadJava and UnloadJava
command line utilities.
For details, consult the Oracle documentation.
Jobs Tab Check the status and settings of existing jobs. All Oracle
releases
Create, run, schedule, edit and remove jobs.
Jobs Tab
The Jobs function in the Job Scheduler allows you to create, run or schedule jobs.
Note that some of the functionality below is only available in Oracle 10g or later releases.
Button Description
New Click to create a job. This opens the New Job Wizard:
6. Specify a start date, start time and frequency for your job to run
7. Select a repeat frequency if desired
8. Click Finish.
Save To attach a program, schedule or job class to a job (for 10g or later)
Advanced Edit available Attribute Values for the selected item (for 10g or later).
Drop Remove the selected item from the database (for 10g or later).
Programs Tab
(Only for Oracle 10g release or later)
A program defines what the Scheduler will execute. A program's attributes include its name, type (for
example: a PL/SQL procedure or anonymous block), and the action it is expected to perform. A program can
also accept zero to many arguments, which makes it a flexible building block for constructing schemes of
tasks to be scheduled.
Button Description
3. If you do not want the program to be enabled by default, clear the Enabled check box.
4. Define the Action the program is to perform.
5. For PL/SQL Block or Executable, enter the relevant command string.
6. For Stored Procedure, select one of the available stored procedures from the database.
7. Enter any Comments if required
8. Click Save.
Schedules Tab
(Only for Oracle 10g release or later)
A schedule defines when and at what frequency the Scheduler will execute a particular set of tasks. A
schedule's attributes include the date on which a set of tasks should begin, how often the tasks should be
repeated and when the set of tasks should no longer be executed, either as of a specified date and time, or after
a specified number of repetitions.
Button Description
Windows Tab
(Only for Oracle 10g release or later)
Assign resource plans to activate at different times such as during specific peak or off-peak periods.
Click Save.
The new window will appear in the Windows list above.
Click Enabled to activate the window.
Button Description
Click Save.
The new group name will appear in the Window Group Name list on the left-hand side.
Select those Windows listed in the right pane that you want included in the group.
Click Enabled to activate the window group .
Button Description
Click Save.
Field Description
From date / To date Select the Start and End date range to view.
Owner Select job owner to use in log display.
Refresh Update the display.
Field Description
From date / To date Select the Start and End date range to view.
Refresh Update the display.
Specific system privileges are required in order for you to manage the Job Scheduler for connections to Oracle
10g and later.
System Purpose…
Privilege
CREATE JOB Enables you to create jobs, schedules and programs in your own schema.
Note: You can always alter and drop jobs, schedules and programs which you own, even
when you do not have the CREATE JOB privilege.
CREATE ANY Enables you to create jobs, schedules, and programs in any schema. This effectively gives
JOB the grantee the ability to run code as any user so it must be issued with care.
EXECUTE Enables jobs the ability to use programs from any schema.
ANY
PROGRAM
MANAGE Enables you to create, alter and drop job classes, windows and window groups. It also
SCHEDULER enables you to purge scheduler logs and modify scheduler attributes.
Locate In Tree
When an object is open in an editing window, and you want to see where that object resides in the schema, you
can use Locate in Tree to jump to that object’s node in the DB Navigator tree. This action expands all
intermediate nodes and displays the object’s details—such as privileges and columns.
Locate in Tree is available from the following windows:
l DB Navigator
l Find objects Dialog
l Database Source Code Search
l Project Manager
l Describe
l Analyze Tool
l Quick Browse
l Edit Data
l Visual Object Editors
Output Window
The Output Window displays SQL Navigator messages and server output including Oracle errors.
Tabbed Pages There are tabs for each session, plus one for general messages not related to any
particular session.
Icons & Color The types of output are distinguished by font color. Icon markers make them even more
Coding noticeable.
Actions
Action Description
Copy to the Clipboard Select the text you want to copy. Right-click the selection and select Copy.
PL/SQL Profiler
Analyze the execution time and efficiency of your stored programs. The Profiler is particularly useful for finding
bottlenecks in stored code and quality assurance and testing.
NOTE:
Toolbar
TIP: Use the Runs / Groups tabs to select Runs and Groups.
Refresh Update both Run and Group tree views with the latest profiling data. Alt+R
most significant items. For example, you can select lines that were not
called during the run, or runs with total times higher than average.
Create New Create a new group. Open the New Group / Group Properties Dialog. Ins
Group
Create groups to logically connect code units and runs. You determine
which units and runs belong to a group. You can combine data for a single
code unit across multiple runs in order to determine the real coverage and
execution times. This is useful when testing stored code in several different
runs with different parameters.
Locate the Open DB Navigator with the tree expanded to highlight the selected object.
selected See where the object is in the database tree.
object in
DB Navigator
Properties Open the New Group / Group Properties Dialog to modify the selected Alt+F2
group.
Runs Tab
A run contains all code units that are called during execution. If a procedure or function is a part of a package,
the whole package becomes part of the run. The same rule applies to type methods.
Run Basic run characteristics (comment, date, number of lines, etc…), totals across all the run units.
Coverage
Time Statistics
Group Basic group characteristics, totals across the group units and runs.
Coverage
Time Statistics
l stores data about each code unit executed during a run, down to the level of source code lines
l divides all the available profiling data into hierarchically organized logical items
l displays profiling and coverage statistics about each item and compares them with others
The Profiler displays the profiling data alongside the actual source code. (This feature is not available if the
source code has changed since it was last tested in the currently selected run, or if it is not identical across the
runs in a group.)
Selection Description
Procedure, Basic characteristics, totals across the runs. Combines the group runs if Combine Runs
Function, Trigger in Group Result Sets is selected in the Profiler Filter/Preferences Dialog.
Body
Time Statistics
Call Distribution
Source Viewer
Type Body, Basic characteristics, total across the runs. Combines the group runs if Combine Runs in
Package Body Group Result Sets is selected in the Profiler Filter/Preferences Dialog.
Coverage
Call Distribution
Time Statistics
Source Viewer
NOTE: The Profiler uses the Oracle session it was activated in.
Use the PL/SQL Profiler Filters/Preferences dialog to set the data filter options, sorting and chart drawing
properties.
Data Filters
TIP: Threshold and sorting works only if there is a single series to be displayed in the Runs tree and
‘Combine Runs in Group Result Sets’ is enabled for the Groups tree.
Option Description
Show Anonymous Set the tree views to display the anonymous blocks executed during runs.
Blocks
Parse Packages for Set the profiler to break package data down to discrete procedures/functions.
Subroutines
Display Line Data Set the data displays to always show line data for the selected tree view item.
Directly
For example, when a run is selected, the charts/lists will show all the lines executed
in the run, not the run units.
Sort Result Sets in Enable sorting of the result data in the Runs display.
Runs Tree View
When selected, you can control the sort order by your selection of the Descending
Order option.
Combine Runs in Enable the combining of data from different Runs in the Group (for example, to
Group Result Sets obtain correct coverage value across the Runs).
Chart Options
Option Description
Group Chart Series Select the color generation method for the chart series when displaying Group data
(Groups tree view).
Run Chart Series Select the color generation method for the chart series when displaying Run data (Runs
tree view).
Use the Group Properties dialog to set group name, comment, used units and runs.
The Group Units and Group Runs list boxes display the units/runs used for analysis in the given group. You
must specify at least one group unit.
To run the PL/SQL The DBMS_PROFILER package needs to be installed under SYS.
Profiler
This is does not happen by default on a new instance.
To collect session The users need access to V$SESSION, V$SESSTAT and V$STATNAME.
statistics
This condition is satisfied when the users have SELECT privilege on system views
V_$SESSION, V_$SESSTAT and V_$STATNAME.
For schemas that use The profiler server side objectsInstalling_server_side_objects (tables and
the PL/SQL Profiler sequences) need to be installed.
Profile Manager
Profiles saved in SQL Navigator can be:
To backup a profile
1. Open the Profile Manager: Windows Start | All Programs | Quest Software | SQL Navigator |
Profile Manager
2. Select Backup User Profile.
3. Select the version of SQL Navigator which has the preferences you want to save.
4. Select the directory into which the backup file is to be saved.
5. Enter a name for the backup file, or accept the name displayed.
6. Click Backup.
NOTE: The file is saved into the designated folder and has an extension of .prof.
Project Manager
The Project Manager provides instant access to your frequently used database objects and connections.
Projects are holding areas where you can store shortcuts to things that you frequently need to work with instead
of searching for them in various lists and directories.
Drag and drop into the Project Manager Add items to the current project:
window.
l Objects from DB Navigator.
l Objects from Find objects Dialog.
l Code Selection from Database Source Code Search
l A file from Windows Explorer.
l An Oracle Connection shortcut.
(username/connection strings)
Action Description
To connect to a You can select a database object in your Project Manager and open it for viewing or editing.
database from SQL Navigator automatically opens the required database connection and displays the
the Project object’s properties in an object editing window. Double click on the shortcut to open the
Manager connection.
Code Location Drag the selection from the result list in Database Source Code Search to the Project
shortcuts Manager.
Keyboard Description
Shortcut
Ctrl+H Hide items of the selected type (Requires you to select an object in the Project Manager).
Ctrl+U Go up one level (Requires you to have navigated to a sub-folder in the Project Manager
window).
1. Select a Java Class stored in the database. Use DB Navigator or the Find objects Dialog.
2. Click Object | Publish Java to PL/SQL.
3. Follow the prompts to generate a PL/SQL package that stores the procedures and functions used to call
Java methods for handling the stored object.
4. The package is generated and displayed in the window. Do you want to open it for editing before saving
it to the database, or save it as shown?
Quick Browse
View chained rows information.
Rename Object
1. Select the object.
2. Click Object | Rename.
Knowledge Xpert
SQL Navigator users can now access 5,400 technical topics, error messages, pre-built and tested code
solutions, and code formatting technology. Using the Code Assistant, you can drag and drop these optimized
routines directly into your program editor.
For example:
l Knowledge Xpert for Oracle Administration A complete and essential resource for Oracle DBAs.
l Knowledge Xpert for PL/SQL Comprehensive PL/SQL knowledge combined with an extensive PL/SQL
code library.
TIP: Knowledge Xpert add-on modules are available directly from your Quest Software representative.
l Enter the name of the object or type in a name mask using the SQL wildcard (%)
l Specify the object type (optional)
l Select the object from a list of matches
Output l When toggled ON the Output Window opens if it is not already open.
Window
l Closing the Output Window does not stop the capturing of Server Output.
l The Output Window reopens automatically if you execute a stored program in a session
capturing server output.
l The default size of the run time buffer is 32k bytes.
Session Browser
Manage sessions in the Session Browser.
To open the Session Browser click Tools | Session Browser.
New Session As per Session | New Session, open the Oracle Logon Dialog
Current Session Show the current session. Use to switch to a different session.
Auto Refresh Every… Refresh the Session Browser automatically. Select Auto-Refresh
every and enter the refresh interval in seconds.
Sessions Grid
The current session is displayed in pink.
Action Description
Select / Highlight a The tabbed pages show details of the selected session. For more information, see
session Session Information on page 207.
Sort / Group l Click the column heading you would like to sort by.
Sessions
l Drag the column you would like to group the sessions by to the gray area above
the grid.
Show / Hide Right click on the grid and select Visible Columns. All columns are listed. Only selected
Columns columns are visible on the grid.
TIP: You can rearrange the columns. Drag and drop the column header into the
location you want.
Filter Sessions When a filter is applied, only sessions that meet the criteria are displayed.
1. Click the arrow alongside the column heading you want to apply the filter to.
2. Select the value you want to filter by.
3. Apply additional filters if required.
NOTE:
l The filtered columns are given a blue arrow. Click the blue arrow and
select (All) to remove all filters applied to the column.
l The filter expression is displayed below the Sessions grid. Click X to
remove all filters.
NOTE:
l When you kill a top level node you kill all sessions below it.
l You must have appropriate permissions (ALTER SYSTEM) to kill
sessions.
l You cannot kill the current session (displayed in pink).
l The following query is used to kill sessions: ALTER SYSTEM KILL
SESSION <SID, SERIAL#> IMMEDIATE
Session Information
Select a session on the Sessions Grid. Details for the selected session are displayed in the tabbed pages.
Tab Description
NOTE: WAIT_TIME = -2 on platforms that do not support a fast timing mechanism. If you
using one of these platforms and you want this column to reflect true wait times, you must
set the TIMED_STATISTICS parameter to TRUE. Doing this has a small negative effect on
system performance.
Current The current SQL statement and explain plan for the select session.
SQL
RBS Transaction information for online rollback segments for the selected session.
Usage
Locks User and system locks. Locks are displayed in groups; Blocking, Blocked By, System, and All
Locks.
Long Ops Operations that run for longer than six seconds in absolute time, including some backup and
recovery functions, statistics gathering, and query execution.
Open Cursors that the selected session has opened and parsed.
Cursors
Source Preview
Preview the source code of text objects (stored programs, triggers and views), or a package’s individual
entry points.
In the Code Editor Press CTRL and click on the object name
In DB Navigator Click on the object
In the Find objects Dialog results Click on the object
In Database Source Code Search results Click on the object
In the Project Manager Click on the object
In DB Explorer Click on the object
TIP:
l While the Source Preview window is open, you can select objects in any of the windows named
above, and the object’s source code will automatically appear in the Source Preview window.
l Use a bookmark to conveniently mark various locations in the source code and quickly move
about in the text without searching through the code and without losing your current editing
location. You can set up to ten bookmarks. See Edit Menu.
SQL Modeler
The SQL Modeler provides a fast means for creating the framework of a Select, Insert, Update, or Delete
statement. You can select Tables, Views or Synonyms, join columns, select columns, and create the desired
type of statement.
SPLITTERS The SQL Modeler has two splitters to change how you divide the screen.
l There is a horizontal splitter between the Model Area and the Criteria/Generated
Query/Query Results tabs. Drag it up or down and release to see more or less detail.
l There is a vertical splitter between the Model Area and the Table Selector List. Drag it
left or right to see more or less detail.
New model Clear the modeler window ready to create a new query.
Execute Use to test the query. The results show in Query Results Tab.
query
Explain plan Open the Explain Plan Tool.
Edit global Set Global HAVING conditions (Must have a Group By condition set in the Criteria
having Tab.)
clauses
Open the Global HAVING Conditions Window.
From this dialog you can see individual joins, browse through the joins, and make changes to the joins.
Dialog Description
Section
Join Type You can change the Join Type from Inner to Outer. The line color denotes the type of join.
Outer Join On If you have selected an Outer join, you can change which table the outer join is performed
on.
Join Test You can change the test for the join.
You can make it Less than, Greater than, etc. instead of Equal to.
To open this dialog, click View Joins on the SQL Modeler toolbar. Alternatively, double click on a join line in the
Model Area.
TIP: You could alternatively populate the WHERE clause via the Criteria Tab. Entries into the cells of the
Criteria tab should be in the form of <operator> <expression2>.
Example
Construct the following query
SELECT dept.deptno, dept.dname, dept.loc
FROM scott.dept
WHERE ((dept.deptno BETWEEN 1 AND 25)
AND (dept.deptno < 40)
AND (dept.loc IS NOT NULL)
Follow the numbered steps
TIP: You could alternatively populate the HAVING clause via the Criteria Tab. First set a GROUPed BY
field. Then set the Having clause for that field by entering it in the group cond. row. This has the limitation
that you can only have the selected field on the left side of the relational operator. If you need to have
multiple fields on that side of the operator, use the Global Having feature.
Example
Construct the following query
SELECT emp.empno, emp.ename, emp.job, emp.mgr, emp.sal,
emp.comm, emp.deptno
FROM emp
GROUP BY emp.deptno, emp.comm, emp.sal, emp.mgr, emp.job,
emp.ename, emp.empno
HAVING ((emp.sal + NVL (emp.comm, 0) > 4000))
Follow the numbered steps
Model Area
Use the model area to visually join or manipulate the Tables, Views and Synonyms.
Add objects
Show/Hide the Table Selector on the SQL Modeler Toolbar. It lists the tables, views and synonyms available to
you for inclusion in your SQL Model. Double-click each desired Table, View, Synonym, OR drag and drop them
from the list to the model area. As the objects are presented on the model area, join lines are drawn from any
established foreign keys in the DDL.
Additionally, drag-and-drop objects from:
TIP:
l To open SQL Modeler with a table, select the table in DB Navigator then click Object Menu | SQL
Modeler.
l You can click in a table header and drag and drop the table where you want it in the Model Area.
Build a query
Steps Description
Clear an existing query from the Model Click New Model on the SQL Modeler Toolbar.
Area, if required.
Define the type of statement you want to Choose SELECT, UPDATE, DELETE, or INSERT from the SQL
Add objects to the Model Area. Drag and drop Tables, Views, or Synonyms from the Table
Selector to the modeling area.
You can show/hide the Table Selector on the SQL Modeler
Toolbar.
Specify table columns to be used in the Select column names in the tables in the Model Area.
query.
NOTE: If no table columns are selected, then all columns
will be included in the query.
View your query as SQL code or as a Click the Generated Query Tab and Query Results Tab.
data grid.
Save the model Save the model from the SQL Modeler Toolbar.
TIP: You can use the SQL Modeler Toolbar to copy the query to the Code Editor window.
TIP: To specify criteria for a table join, double-click on the connecting line joining the two columns. This
opens the View Joins Dialog.
Menu Description
Copy Model Image To Copy a bitmap image of the model to the Windows Clipboard
Clipboard
Show Join Text Show the column names that comprise the joins.
Adjust Model Move the model so the upper left object is in the upper left
Origin of the Model Area.
Primary Key Show the Table Primary Keys. Show PK next to each
Primary Key column.
Indexes Show the Table Indexes. Show IDX next to each Index
column.
Show Field Show the column data type in each table.
Type
SQL Run Query Run the query in a way that allows you to halt it in the middle
in Thread if necessary.
Global Open the Global WHERE Conditions Window. Use to add a
Where WHERE clause to the query.
Clauses
Auto Join All Objects Join all tables based on DDL Foreign Key Constraints.
Hide fields Show / Hide the list of columns in the table in the model area.
Zoom to table Select a table to focus.
Toggle Full Screen Mode Show / Hide the Table Select List and Criteria/Generated Query/Query
Results tabs.
Optimize All Table Sizes Minimize the size of the tables in the Model Area.
Arrange Tables Arrange the tables in the Model Area.
Menu Description
Set Table Alias Set the Table Alias. The value is added to the Criteria Tab.
Alias Field Names Set the Field Alias for each column in the table. The values are added to the
Criteria Tab.
Auto Join Automatically join this table to others based on DDL Foreign Key Constraints.
Show Schema Name in Shows / Hide the schema name in the Generated Query (Generated Query Tab).
SQL
Remove Table Remove this table from the model.
Select All Select / unselect columns in the table.
Unselect All
Invert Selection
Optimize Size Restore the size of the table to its default size.
TIP: To hide multiple tables or show hidden tables, right click on the Model
Area and select Tables | Visibility.
Keyboard Shortcuts
Key Action
Tabs
Criteria Tab
1. Add tables, views and synonyms to the Model Area.
2. In these tables, views and synonyms, select the columns you want to add to the Criteria tab. Only
Selected columns appear on the Criteria tab.
TIP: To rearrange the order of the columns on the Criteria tab, drag and drop them left or right.
Null Value Double click in the cell to enter a value to substitute for any null values.
Subst.
To clear the cell, highlight it and press Delete.
Aggregate Double click in the cell to select an aggregate column function, such as Average, Count, Max,
F. Min, or Sum.
To clear the cell, highlight it and press Delete.
Conditions Set a condition which tests if a column is equal to (or <, >, <=, >=, <>, LIKE,
BETWEEN) a constant or another field _or_ a condition where the selected field
is in a sub query.
Clear Click to reset the dialog box and begin the WHERE condition again.
Form
Remove Click to remove the WHERE definition.
Condition
TIP: A quick way to remove the WHERE definition is to highlight the cell and press
Delete.
Having Double click in the cell to select an aggregate column function (such as Average, Count, Max,
Aggregate Min, or Sum) for the HAVING clause.
This allows for the following type of query:
SELECT emp.job_id
FROM employee emp
GROUP BY emp.job_id
HAVING ((AVG (emp.salary) > 1500))
To clear the cell, highlight it and press Delete.
Having Double click in the cell to open the GROUP BY Definition dialog.
Cond.
NOTE: Requires a value in the Group By cell. To create more complex Having
conditions see Global HAVING Conditions Window for more information.
Sort Double click in the cell to sort this column as Ascending, Descending, or no sort.
To clear the cell, highlight it and press Delete.
Visible Double click in the cell to have it be visible / hidden. When visible the column is returned in the
column list.
Field Alias Double click in the cell to change the field name alias.
Table Alias Double click in the cell to enter a value for the table alias.
To clear the cell, highlight it and press Delete.
Menu Description
Best Fit (All Columns) Set the column width of the Criteria grid to show all text
Default Width (All Columns) Set the column width of the Criteria grid to the default width
Copy Query Grid Image to Clipboard Copy the Criteria grid to the clipboard
NOTE:
l Any changes made to the Model Area or Criteria Tab will automatically regenerate this SQL
statement.
l You cannot directly edit the SQL on the Generated Query tab.
Menu Description
View Query in Code Editor Copy the query directly to the Code Editor.
NOTE:
l Insert, Update, and Delete queries can only be executed in the Code Editor.
l Making changes to the Tables or Columns, then clicking on the Query Results tab will prompt you
whether or not to re-query the data.
SQL Optimizer
SQL Optimizer supplements Oracle tuning skills for developers. The SQL Optimizer makes observations about a
selected SQL statement and the underlying database environment, then recommends several options to
improve performance. Users can then view the logic behind the advice, implement the recommendation, apply it
to the database, and see the results. The SQL Optimizer module automatically produces all necessary SQL to
effect the corresponding change.
NOTE:
l SQL Optimizer can be used to analyze the execution of SQL scripts containing more than one
statement.
l SQL Optimizer is an external application. It is installed independently of SQL Navigator.
l Example Scenario: in the Code Editor highlight the text of the SQL statement you want to
investigate and click SQL Optimizer.
l For more details, see the online help supplied with the SQL Optimizer product.
Task Manager
SQL Navigator executes long-running tasks in separate threads in the background. They lock only the current
session. Background execution happens automatically, and means that all the application’s functionality
remains available to the user while the task is running in a separate session.
The Task Manager is a display of all active and complete tasks for the current session.
Batch commands on database objects, such as Drop, Compile, Truncate and Object Menu
Extract DDL
Enable Constraint Editor
NOTE:
Wrap Code
The Wrap Code utility provides an easy way to access Oracle’s Wrap Code utility. This window is connection
independent so you do not need an open database session to use it.
Field Description
Input File Enter the file (of PL/SQL code) you want to wrap, including the full path.
TIP: Click the drill down button to browse for the file.
Input File Text When you have selected the file, the text of the file appears here.
TIP: Right-click in the text area to copy the code to the clipboard.
Output File By default this is given the same name as the input file, but with extension .plb.
Field Description
Output File The wrapped code appears in the Output File Text area and is automatically saved to
Text the specified Output File.
TIP: Right-click in the text area to copy the code to the clipboard.
View | Preferences
Section Topic
General
General | User Interface
User Interface
Option Description
Style Select the look and feel of SQL Navigator windows from the following styles:
l Standard
l Flat
l XP
l Native (the default style)
l Office 2003
Tutorial Messages Select to display tutorial messages automatically for windows. First-time users may
find these messages especially helpful.
Hints Select to show Tool Tips. Tool Tips are labels that pop up when you point to a button
or other control.
Font Select the font to use in SQL Navigator windows.
Date Displayed Select the preferred layout for showing dates.
Format
Time Displayed Select the preferred layout for showing the time.
Format
Display time in Should DATE fields include the time?
DATE fields
Bold Folders in Select to show folders as bold in the DB Navigator tree. Showing the folders as bold
DB Navigator Tree may help clarify the structure of a complex tree.
Used by: DB Navigator.
Default Directory The default directory SQL Navigator points to for Open and Save operations.
Used by: File Menu, Toolbars, Code Editor, HTML Viewer.
Option Description
Full text Columns are effectively treated like normal string (VARCHAR2)
(within cells) columns, that is, data is displayed within the corresponding cells as a
single string.
Trim column width When an object is copied from the Code Editor or one of the Visual Object Editors and
while pasting pasted to another tool, for example Note Pad...
Selected The length of each pasted column is trimmed to approximately the length
of the longest character string in the column.
Not The pasted data reflects the actual length of the column as defined in the
Selected object.
Data Grid Font The font used in the data grid result set.
Show Row Set up an alternate row color in the data grid.
Background Color
Option Description
Errors Show the Output window automatically when errors are sent to it.
Server Output Show the Output window automatically when server output is sent to it.
Information Show the Output window automatically when informational text is sent to it.
Startup
Option Description
Show Splash screen Select to show the Splash screen when you launch SQL Navigator.
Reopen active windows Select to show all active windows from the last time SQL Navigator was used.
Show Welcome Screen Select to show the welcome screen when you launch SQL Navigator.
ER Diagrammer
Related To: ER Diagram.
Option Description
Show real index names Show real index name instead of the one generated by the system.
Option Description
Auto delete complete&more-than-one- Remove completed tasks, and still running tasks that started more
day tasks than one day ago.
Option Description
Connection Color for Taskbar When selected the Connection Category Color for the Task Bar is
displayed.
Connection Color for Forms When selected the Connection Category Color for forms is displayed.
Connection Color for Code Editor When selected the Connection Category Color for the Code Editor is
Tabs displayed.
Option Description
No "Drop" or "Truncate" for Select to disable the Delete option for table and cluster objects.
Table/Cluster
No "Drop" for Stored Programs/Triggers Select to disable the Drop command for stored programs and
triggers.
General | Session
Session
Option Description
Show Logon Dialog startup Select to show the Oracle Logon Dialog when you launch SQL
Navigator.
Show code editor after connection Selected Show the Code Editor after a connection is made.
Not Selected Show the DB Navigator after a connection is made.
Default date format Select the default date format, for example, MM/DD/YYYY.
Used when a date-to-string conversion request is explicitly made; for
example, in SELECT TO_CHAR(SYSDATE) FROM DUAL.
Otherwise a binary format is used for date/time handling. On screen
date/time representation is made using the client machine’s Regional
Settings (set in the Windows Control Panel).
DBMS Output buffer (bytes) Change the buffer size for server output. Set the desired upper limit for
the DBMS Output Buffer (Bytes).
Related To: Output Window.
Cache Capacity The number of database objects that can be placed in the cache before
the cache refreshes itself and accesses the database.
Optimizer Goal/Mode The approach the Oracle optimizer uses to optimize a SQL statement.
For more information, see the ORACLE 7 SERVER Concepts Manual.
Close when last session window Selected SQL Navigator terminates a session when all session
closes windows are closed.
SQL Navigator prompts you before terminating the
session, unless you have disabled the prompt previously.
Not A session can still be active when all its windows are
Selected closed.
Not The schema lists will include only users with objects.
Selected
Retrieve large numbers as strings Selected Numeric fields from the database with a precision
exceeding 15 digits will be converted to strings on the
server.
Not These numbers will be represented in scientific notation.
Selected
Bytes per character The number of bytes to allocate per character. If you select Autodetect
then SQL Navigator attempts to determine the actual number of bytes
per character while establishing connection.
Retrieve tablespace usage info Select to add the following columns to the tablespace details pane:
NOTE: Available only for users with access to DBA views. For
more information, see DBA Dictionary Views on page 49.
Read Buffer Size The number of records SQL Navigator reads per database request.
Use user's dictionary views This preference is specific to background queries to list objects and to
get object details for the logged in user’s schema
Option Description
Auto run script at connect Run the named script on connecting to the database.
Close script on successful Select for the named script to close automatically when it has finished
execution running.
Trace
Option Description
Enable Select to log all transactions with the database to a file. This is useful for debugging purposes.
Level Select the type of messages the trace file will record.
Exception Table Owner Name of the schema where the exception table is to be stored.
Exception Table Name of the exception table.
Chained Rows Table Owner Name of the schema where the chained rows are to be stored.
Chained Rows Table Name of the chained rows table.
Explain Plan Table User name of the owner of the default plan table.
Owner
Explain Plan Table Name of the default plan table.
Table Access Full The number of rows that must exist in a table before the icon in the execution plan is
warning Threshold changed from green to red to draw your attention to the full table scan.
Abbreviate Join Select to abbreviate the text that is displayed in the execution plan for table joins.
Text
The abbreviation feature reduces the large amount of join text associated with a large
query so that you can focus on the overall steps in the execution plan.
Explain Plan Color The color of the individual items in the execution plan.
TIP: Click the ... button, then click the Color column in the row of an item to select
a new color.
Auto Start with Editors and Open Code Assistant automatically when an editor or the Explain Plan
Explain Plan Tool is opened.
Standards Catalog Directory The directory path for the Standards Catalog.
Shared Catalog Directory The directory path for the Shared Catalog.
Displayed Pages
Option Description
PL / Vision Catalog
Option Description
PL / Vision Lite Show the PL / Vision Lite Catalog in the Code Assistant
PL / Vision Professional Show the PL / Vision Professional Catalog in the Code Assistant.
General | Printing
The printing preferences control the appearance of printer output from various SQL Navigator windows, dialogs
and reports.
NOTE: Of all the options in this section, only General | Printing | Editors options are applicable to the
Code Editor.
Measurement Units The measurement unit for margin width and other print settings.
NOTE: Header and footer properties are specified separately (see below).
Margins
Option Description
Left Margin The width or height of the page margins using the Measurement Unit specified above.
Right Margin
Top Margin
Bottom Margin
Header
Option Description
Alignment Be sure to enable Header and Footer (above) if you want headers and footers to be printed.
Footer
Option Description
Date
Editor
Option Description
Syntax highlighting Applicable to output printed from an editing window; for example, the Code Editor.
Show line numbers
Option Description
Header Type the text you want to appear as header text in the printed output from DB Navigator.
Orientation If you select a printer orientation other than Default, your setting will override any setting made
in the Print Setup dialog when you print.
Print Print the selected item or the entire DB Navigator Tree.
Selection
Auto Recompile Selected Automatically recompile dependent objects when an object is altered.
Dependents
Not Force a manual recompile of dependent objects based on your
Selected preference. This is the default.
Auto Recompile Selected Automatically recompiles only the dependent objects that have a status of
Invalid Only invalid.
Not Force all dependent objects to recompile automatically when using the
Selected debugger feature.
Apply changes This option specifies the conditions necessary for the Apply Changes toolbar button to be
available. Select to have the button available
Group Similar Specified the maximum numbers of separate items on taskbar before grouping is
Taskbar Button performed. (if the threshold is 4 and there are 4 items on the taskbar, when another
Threshold window is opened, it will be grouped).
Order Taskbar Items Selected Task bar items of one session are grouped close together followed by
by Session items of other sessions.
Not All items of the same type will be grouped together regardless of their
Selected sessions.
Reverse Order of When selected, new Task bar items will be populated on the left hand side.
Taskbar Items
Rotate Taskbar Item Horizontal / Vertical direction of Task bar item captions.
caption when
vertical
Allow Taskbar Items Display Task bar items on multiple lines if the current line is full.
to expand onto
multiple lines
Extract DDL
Extract DDL | General
NOTE: Preferences preceded by an asterisk (*) are applicable to team coding operations when the Team
Coding preference (see Use Extract DDL Preferences) is checked.
Extract DDL/MetaData
Option Description
Show this window before performing the Show the preferences before the DDL is extracted from the
task object.
<schema>, <object> File Name Prefix Selected The default file name will be prefixed with the
schema name and object name.
Not The default file name will be the same as the
Selected object name.
New tab in the Code Editor for each object Selected Show a new tab for each object that is
extracted DDL.
Not All the objects' extracted DDLs will be on the
Selected same tab.
Extract DDL to the same tab in the Code Selected The script is inserted into the current tab in the
Editor Code Editor.
Extract DDL
Option Description
Extract DDL on Allow drag & drop of the extracted DDL to another database within the same DB
drag & drop within Navigator tree.
DB Navigator
Keywords case Select the case used for keywords in the DDL.
Names case Select the case used for names in the DDL.
Generate Show pre-generated comments in the DDL. Can be helpful to identify different parts of
comments the script.
Prefix with Any Object Name that is displayed within the DDL is prefixed with the Schema Name.
Schema name
Include Drop Include the drop statement at the beginning of the DDL to drop the object first.
Option Description
Include "Force" Include Drop with Force in the DLL statement for type objects.
with TYPE DROP
Use "CREATE Add Create or Replace to the start of the object, rather than just having Create.
OR REPLACE"
Include Include the Tablespace name in the DDL.
"Tablespace
name"
Include "Storage Include the Storage clause in the DDL.
clause" (Only Non-
Option Description
Include Object Grants (for Users) Includes any object grants for users in the DDL.
Body and Spec for Includes DDL for both the body and the specification when extracting from packages or
Packages/Objects objects. The package specification declares procedures, functions, cursors, and
variables. The package body contains the implementation of the public procedures and
functions, together with internal and private programs and variables.
Show Trigger The Oracle Data Dictionary stores the DDL used to create a trigger in the all_triggers_
Snapshot view, along with all the other trigger parameters.
Not SQL Navigator constructs the DDL from the object’s parameters, and any
Selected user comments will not be retained.
Separator Select the character to be used as the separator in the DDL. If you extract DDL for
Character several objects, the DDL for each object will be separated using the selected separator.
NOTE: The '/' character is used automatically when extracting DDL for objects
without stored code.
Include "Constraints" * Includes any constraints for the object in the DDL.
Option Description
Include "Triggers" *Includes any triggers for the object in the DDL.
Include "Indexes" Includes any indexes for the object in the DDL.
Include "Comments" *Includes any comments for the object in the DDL.
Include "Primary Key in Includes the Primary Key for the table in the DDL.
Table Definition"
Include "Synonyms" Includes any Synonyms for the object in the DDL.
Exclude Table column *Excludes all default values for the object from the DDL.
default values*
Include Includes any encryption-related clauses (such as encryption algorithm to be
ENCRYPTION clause used, salting and so forth) for the object in the DDL.
Include FORCE clause Select the measurement unit you want to use for specifying margin width and
other print settings.
Include datatype definition Include datatype definition for any columns that are of complex type.
for table column
Include Byte/Char for Display Byte or Char as length for a column.
Table Columns
Partitioning
Option Description
Include "Storage Clause" for Includes any Partition settings from the Storage Clause for the object
Partitions in the DDL.
Include "Storage Clause" for Index Includes any Index Partition settings from the Storage Clause for the
Partitions object in the DDL.
Storage Clause Options Include storage clauses with either non-default values or all values in
the DDL.
Include "Tablespace Name" for Includes the Tablespace names any Partition for the object in the
Partitions DDL.
Include "Tablespace Name" for Index Includes the Tablespace names in any Indexed Partition for the object
Partitions in the DDL.
Exclude Partition List for Local Index Excludes Local Index Partitions for the object in the DDL.
List Individual Hash Partitions Selected The "individual_hash_partitions" clause will be used.
Not The "hash_partitions_by_quantity" clause will be
Selected used.
Include ON DELETE SET NULL clause Includes the ON DELETE SET NULL clause in the DDL.
Include BUILD clause Choose the type of build clause used for snapshots.
Include encrypted password Select to include the user's password (encrypted) in the extract ddl script.
Project Manager
Project Manager
Option Description
Hide inactive project Only display the selected Project Manager window.
windows
Hide Project Manager Once a connection has been made successfully, close the Project Manager
after connecting window.
Remember Oracle Displays the Home/Client column. Remembers the Oracle client for each
Home/Client for each connection and automatically connects the next time the item is opened (if the
connection connection is closed).
On Connect Once a connection has been made successfully, add the connection to the Project
Manager.
Direct connections are not added to the Project Manager.
On Create/Open Once an object has been created or opened it is added to the Project Manager Window.
object
On Create/Open Once a file has been created or opened it is added to the Project Manager window.
file
On Browse/Edit If the user browses data in a table, then the table is added to the Project Manager
Data Window.
On Describe object If the user chooses to describe an object, then the object is added to the Project
Manager Window.
On Execute object If the user executes a procedure or function, then that object is added to the Project
Manager Window.
Code Editor
Code Editor | General
General
Option Description
Find Text at Cursor Automatically place the word at the current cursor position into the Find box.
Font The font used in the Code Editor window.
Code Convention Paste objects in lower case into the editor. Also affects column names in the drop
Lowercase down list as part of code completion in any of the text editors, as upper or lower case,
when you type in a table name with the '.' operator.
The preference was previously known as Drag and Drop Objects to Lowercase.
Auto Indent Position the cursor under the first nonblank character of the preceding nonblank line
when user presses Enter.
Indent Size Indent Size used when Indenting selected text using CTRL + I.
Not applicable if Use TAB Characters is selected.
Tab Size The horizontal width of the Tab space in number of characters.
Smart Fill Begins every auto-indented line with the minimum number of characters possible,
using tabs and spaces as necessary.
Keywords to Convert all keywords to uppercase as they are typed into the editor.
Uppercase
Option Description
Column Track When selected the cursor "remembers" its starting column position and moves to the
same position when you move it up or down to a new line.
Use together with Allow Caret after EOL.
Hot Links When selected the user can open an object from the SQL text via Ctrl+Click.
Allow Caret after Selected The user can move the cursor beyond the end of the current line. The
EOL cursor’s vertical movement ignores the EOL position of the line current
line.
Use together with Column Track.
Not The user cannot move the cursor beyond the end of the current line. The
Selected cursor’s vertical movement is constrained by the EOL position of each
line.
Show Right Margin When selected, draw a vertical line in your editing window representing the right-hand
page boundary.
Option Description
Right Margin Width Placement is controlled by the Right Margin Width setting.
Describe Object at When selected, open the Describe window (Describe) when press Ctrl and right-click
Hyperlink on an object name and create a hyperlink.
Highlight Current When selected, the line containing the cursor is highlighted.
Line
Allow Tab Items to Display Tab items on multiple lines if the current line is full. Select for ease of
Expand onto Multiple navigating through multiple open PL/SQL objects and SQL queries.
Lines
Option Description
Save successfully Select to save a copy of successfully executed queries in C:\Documents and
executed sql in the Settings\<username>\Application Data\Quest Software\SQL Navigator\Unified
History tool Editor\history.
Turn Off Variable Select turn off the pop up hints that are displayed when you hover the mouse over
Hints function or procedure names, or variables.
Scan Related to: Scan Defines/Substitutions
Defines/Substitutions
Sub-tab row location Specify the position of the sub-tab to be displayed.
Close Code Editor When selected, the Code Editor closes when the last tab in the editor is closed.
when last tab closes
Spool Output When selected, returned results are sent to the spool pane (SQL Query
Log (The Spool Tab)) of the Code Editor on query execution.
This option does not turn on/off the Spool option of the existing code editor
tabs.
Option Description
Default Specifies how many rows of returned results are sent to the
Rows spool pane of the Code Editor on query execution when
Displayed Fetch All is set to OFF.
Bring to When selected, the Spool tab is shown on top after the
front after execution of a PL/SQL block.
execution
Split Window to Display Results Selected The data grid is shown below the script tab.
Fetch All Selected Retrieve all results and display in the data grid.
Not Retrieve the number of rows that can be displayed in the data
Selected grid. Scroll down the grid to retrieve more rows.
Show Errors in Output Window Selected Show a brief error message in the Execution Status pane
below the editing area. Show detailed error messages in the
Output Window.
Retrieve all result fields as When selected, this option causes all numeric fields to be converted to
strings strings on the server.
Use Table Alias Select to use table aliases in the SQL statements generated by Quick
Browse and Edit Data.
Cursor focus stays in the SQL When selected, the cursor will stay in the Script area instead of moving to
query after single execution the data grid.
Highlight query for When selected, the SQL that has been executed, and corresponds to the
corresponding data result data shown in the data grid, is highlighted.
Focus query for corresponding When selected, the cursor will stay in the Script area instead of moving to
data result the data grid.
Allow session switching Selected You can switch sessions for an open editor. This means you
can easily run the same SQL statement(s) against multiple
databases.
Not You will need to open multiple editing windows to accomplish
Selected this task.
Delay
(milliseconds)
Automatic When selected,a ‘pick’ list of matching symbols (variables, parameters, procedures, types) in
Code the current scope is displayed when you start typing in an identifier.
Completion
When selected, it will also include Automatic Dot-Lookup.
Automatic Dot when selected, a ‘pick’ list of members of a PL/SQL record, cursor, package or %ROWTYPE
Lookup record are displayed when you type a dot character after a name of variable.
Automatic Dot Lookup can be selected as a stand-alone option.
Drag & Drop of Tables Specifies what will be inserted when a table node is dragged and dropped from DB
or Views nodes Explorer into the Code Editor.
If this preference is set to insert a query statement for each table, using Ctrl or Shift
key while drag and drop will not have any effect on the format of the queries.
Drag and Drop When selected, drag & drop code objects (such as procedure, function) will include
arguments with code their arguments (such as Input parameters, Output parameters)
objects
Code Analysis
Module: Code Analysis
Option Description
Embed Code Analysis in When selected, a Code Analysis tab appears in the editor window next to the
editor windows Code tab which you can open as required.
Lob Viewer
Option Description
Disable Team Coding Selected Team Coding is disabled for the connection. The Oracle
Detection on Connection connection will run faster.
Not Queries are run against the Oracle connection to detect the
selected Oracle server team coding settings. This is the default
behavior.
Disable Login Prompt on When selected, the team coding third-party provider login prompt will not
Connection appear on connection.
Show in DB Navigator Select to add Team Coding functions to the DB Navigator right-click menu.
Selecting this may have a performance impact.
Include Schema in DDL Select to include the schema name in the DDL of an object when it is
extracted to a file.
Team Coding Files Encoding Select the encoding of files that Team Coding uses to save the DDL of
database objects. Default: UTF-8 No BOM.