Daffodil DB Tools Guide
Daffodil DB Tools Guide
Tools Guide
June 2005
Copyright Daffodil Software Limited
SCO 42, 3rd Floor, Old Judicial Complex,
Civil Lines
Gurgaon - 125001
Haryana
India.
www.daffodildb.com
Preface ................................................................................. 5
Purpose ........................................................................................... 5
Audience ......................................................................................... 5
Related Documentation ...................................................... 6
Getting Started with Daffodil DB Browser ........................ 7
Starting Daffodil DB Browser........................................................... 7
Daffodil DB Browser Operation modes ......................................... 11
Tool Bars of Daffodil DB Browser ................................... 12
Query Analyzer Mode Tool Bar ..................................................... 12
Browser Mode Tool Bar................................................................. 14
Menus of Daffodil DB Browser ........................................ 17
File Menu....................................................................................... 18
Tools Menu.................................................................................... 19
Windows Menu.............................................................................. 20
Pop up Menus ............................................................................... 22
Nodes in Daffodil DB Browser ......................................... 24
Daffodil Servers Node ................................................................... 24
Embedded Node ........................................................................... 25
Databases Node............................................................................ 27
Tables Node .................................................................................. 29
Columns Node ............................................................................................31
Indexes Node..............................................................................................33
Triggers Nodes ...........................................................................................35
Constraints Node ........................................................................................37
FullTextIndexes Node*................................................................................39
Views Node ................................................................................... 41
Procedures Node .......................................................................... 43
Roles Node.................................................................................... 45
Daffodil DB Browser Operation Modes........................... 47
Query Analyzer Mode.................................................................... 47
Message Tab ..............................................................................................48
Grid Tab......................................................................................................49
Audience
This guide is intended to act as ready reference tool for
This guide assumes that you are familiar with the following concepts:
Daffodil DB JDBC Explains how to use Daffodil DB and JDBC technology to develop
Reference Guide applications. It describes the basic Daffodil DB and JDBC concepts
like JDBC 3.0 features supported by Daffodil DB, how to create
and access Daffodil DB databases through JDBC API, Daffodil DB
support for JDBC and JTA and how to use Daffodil DB in a
Distributed Transaction Processing environment.
Default User is "DAFFODIL" and default password is also "DAFFODIL". After filling the
user name and password, click on OK to start Daffodil DB Embedded on the local host.
After filling the user name and password, click on OK to start Daffodil DB Server on the
local host.
Note: - For more information on how to start Daffodil DB server, refer to 'Getting Started
with Daffodil DB Guide'.
File Menu
Tool Menu
Windows menu
Apart from the above three, Daffodil DB Browser supports the following menus also:
Query Analyzer Pop up Menu ( which appear by right clicking on Query Executer
Pad)
Popup Menus (which appear by right-clicking on a node)
Description of Import, Export, Online Back-up, Offline Back-up and Restore are provided
on page no: 85 onwards
On right clicking the Query Execution Pad, the Query Analyzer Pop up Menu appears
and it displays the options for cascading or tiling Query Execution Pads, to open the
current QEP or all QEPs. It has features of cut, copy, paste, undo, redo, execute all, find,
replace, clear window, close window, close all windows etc.
On right clicking on any node like databases, tables, views, roles, procedures, users,
columns, indexes, constraints, triggers etc., a pop up menu appears displaying the
appropriate options for that particular node.
If user selects yes, then he is prompted to enter a new Daffodil DB home path and this
path is then set as new DAFFODILDB_HOME.
Note: The new path should exist at the specified location i.e. Daffodil DB Browser will
not create directories.
After entering the new path, and clicking OK, a dialog box appears, requesting the user
to enter a valid user name and password for Daffodil DB.
Note: Daffodil DB Home can't be changed when working with Daffodil DB Server edition.
Columns Node
Indexes Node
Triggers Node
Constraints Node
FullTextIndexes Node
On clicking the Role Name node, it displays the name of the Role with its Grantor.
Roles can be dropped on right clicking the particular Role Name node.
In the example above, a single box will be opened and if you pass the value s% , all rows
starting with 's' from the column teachername will be retrieved.
In the example above, two text boxes will be opened, one for each '?' and the values will
be provided in an asymmetric order.
If user wants to see the Execution plan of select query, then user may click
ShowExecutionPlan button. On clicking, Execution plan will be displayed.
Right click on the Databases Node and then select Create Database
option from the pop up menu OR Click the File Menu and select Create
Database.
OR
A dialog box will appear, requesting user to enter the database name. On
entering database name and pressing "OK", database with the specified
name is created.
On clicking the Advance Option button (optional), the dialog box will
extend to specify Optional properties like user name, password,
increment factor, file size, cluster size, unicode support, multiple file
support, encryptions algorithm and encryption key.
Now after entering information in the table, user can click SQL query
(make) button on the toolbar to view the query generated for this table.
This query will be shown in the text Area.
User may click edit the query, which is displayed in the text area.
Once user enters the edit mode, there is no relation between the visual
interface and query.
To execute the query, user has to click run button on the toolbar.
The dialog box appears prompting user to confirm if the query to be
executed is the one they intended to fire.
Dropping a Table
Dropping a Table in the Browser Mode:
Right click on the table name and you will get a drop option in the pop up menu.
Select Drop Table option to drop the selected table.
Dropping a View
Dropping a View in the Browser Mode:
Right click on the name of View to be deleted and select Drop View option from the pop
up menu.
The Procedure dialog box appears that allows user to specify procedure
on a particular table.
User has to specify the Procedure name.
User can specify the parameters or can leave it, as this feature is
optional.
Note: Only IN Parameters are supported in procedure statement in the Browser Mode.
The specific name of the procedure and language is optional. User can
leave it vacant.
The SQL procedure statement can not be left empty. User has to specify
the procedure statement.
After entering all the required information, click on Make Query button.
The SQL query for the procedure created is displayed. User can even edit
the query.
Dropping a Procedure
Dropping a Procedure in the Browser Mode:
Right click on the name of Procedure to be deleted and select Drop Procedure option
from the pop up menu.
On clicking Create Role option, a new window for creating Role is opened. Fill in
the fields like Name and Grantor and click OK.
Creating an Index
Various Steps needed to create an Index in the Browser Mode are listed below:
Browse tree to the node named "Indexes". Right Click the node and select
Create Index option from the popup menu.
Dropping an Index
Dropping an Index in the Browser Mode:
Right click on the name of the Index to be deleted and select Drop Index option from the pop
up menu.
OR
Click on Finish.
OR
OR
OR
OR
Daffodil DB Shell is a command-line tool for executing SQL queries. It can execute in
two modes, Embedded and Network.
Properties Description
Properties Description
InitialFileSize 5MB
MultiFileSupport [true/false] false
IncrementFactor [size] 100
Mode
This property specifies the mode of server (Embedded/Network).
r is used for Network mode. If mode is not specified, then it runs as Embedded mode.
E.g.
Although this manual reflects the most current information possible, you should read the
Daffodil DB Release Notes from time to time for latest information and updates on
Daffodil DB/One$DB
Release Notes are available at: http://www.daffodildb.com/daffodil-release-notes.html
If you have successfully installed and started working with Daffodil DB/One$DB, please
remember to sign up for the benefits you are entitled to as a Daffodil DB customer.
For free support, be a part of our online developer community at Daffodil Developer
Forum
If you spot a typographical error in the Daffodil DB Getting Started Guide, or if you
have thought of a way to make this manual better, we would love to hear from you!
This manual, as well as the software described in it, is furnished under license and may
be used or copied only in accordance with the terms of such license. The content of this
manual is for informational purpose only, and is liable to change without prior notice.
Daffodil Software Limited assumes no responsibility or liability whatsoever for any errors
or inaccuracies that may appear in this documentation. No part of this product or any
other product of Daffodil Software Limited or related documentation may be stored,
transmitted, reproduced or used in any other manner in any form by any means without
prior written authorization from Daffodil Software Limited.