Return-Path:
Delivered-To: apmail-db-derby-commits-archive@www.apache.org
Received: (qmail 81137 invoked from network); 16 Oct 2006 22:13:56 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 16 Oct 2006 22:13:56 -0000
Received: (qmail 42068 invoked by uid 500); 16 Oct 2006 22:13:56 -0000
Delivered-To: apmail-db-derby-commits-archive@db.apache.org
Received: (qmail 42038 invoked by uid 500); 16 Oct 2006 22:13:56 -0000
Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm
Precedence: bulk
list-help:
list-unsubscribe:
List-Post:
Reply-To: "Derby Development"
List-Id:
Delivered-To: mailing list derby-commits@db.apache.org
Received: (qmail 42027 invoked by uid 99); 16 Oct 2006 22:13:56 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Oct 2006 15:13:56 -0700
X-ASF-Spam-Status: No, hits=-9.4 required=10.0
tests=ALL_TRUSTED,NO_REAL_NAME
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Oct 2006 15:13:55 -0700
Received: by eris.apache.org (Postfix, from userid 65534)
id 1D4FA1A981A; Mon, 16 Oct 2006 15:13:35 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r464694 - in /db/derby/docs/trunk/src/tools:
rtoolsdblookexamples.dita rtoolssysinfo1002629.dita
Date: Mon, 16 Oct 2006 22:13:34 -0000
To: derby-commits@db.apache.org
From: jta@apache.org
X-Mailer: svnmailer-1.1.0
Message-Id: <20061016221335.1D4FA1A981A@eris.apache.org>
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N
Author: jta
Date: Mon Oct 16 15:13:34 2006
New Revision: 464694
URL: http://svn.apache.org/viewvc?view=rev&rev=464694
Log:
DERBY-1954 Update sysinfo output in the Tools and Utilities Guide.
Patch contributed by Laura Stewart .
Modified:
db/derby/docs/trunk/src/tools/rtoolsdblookexamples.dita
db/derby/docs/trunk/src/tools/rtoolssysinfo1002629.dita
Modified: db/derby/docs/trunk/src/tools/rtoolsdblookexamples.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/tools/rtoolsdblookexamples.dita?view=diff&rev=464694&r1=464693&r2=464694
==============================================================================
--- db/derby/docs/trunk/src/tools/rtoolsdblookexamples.dita (original)
+++ db/derby/docs/trunk/src/tools/rtoolsdblookexamples.dita Mon Oct 16 15:13:34 2006
@@ -1,4 +1,5 @@
+
dblook examples
-
+
+dblookexamplesexamplesdblook
+
+
The following examples demonstrate how the various dblook utility
-options might be specified from a command line. Each example is preceded
-by a brief description of how the dblook utility behaves
-given the specified options.
- Dump the DDL for everything in database 'sample' (in the current directory)
-to the console.
-java org.apache.derby.tools.dblook -d jdbc:derby:sample
-
-
-Dump the DDL for everything in database 'sample' (in the current directory)
-to the console,
-and include error/warning messages (with the latter being printed via System.err)
-java org.apache.derby.tools.dblook
- -d jdbc:derby:sample -verbose
-
-
-Dump the DDL for everything in database 'sample' (in the current directory)
-to a file called "myDB_DDL.sql" (in the current directory).
-java org.apache.derby.tools.dblook -d jdbc:derby:sample -o myDB_DDL.sql
-
-
-Dump the DDL for everything in database 'sample' (in a specified directory)
-to a file called "newDB.sql" (in a specified directory).
-java org.apache.derby.tools.dblook -d 'jdbc:derby:c:\private\stuff\sample'
- -o 'C:\temp\newDB.sql'
-
-
-Dump the DDL for all objects in database 'sample' with schema 'SAMP'
-to the console.
-java org.apache.derby.tools.dblook -d jdbc:derby:sample -z samp
-
-Dump the DDL for all objects in remote database 'sample' on 'localhost:1527'
-with schema 'SAMP' to the console.
-java org.apache.derby.tools.dblook -d
- 'jdbc:derby://localhost:1527/"C:\temp\sample";
- user=someusr;password=somepwd' -z samp
-
-
-Dump the DDL for all objects with schema 'SAMP' in database 'sample'
-that are related to the table name 'My Table' to the console.
-java org.apache.derby.tools.dblook -d jdbc:derby:sample -z samp -t "My Table"
-
-
-Dump the DDL for all objects in database 'sample' that are related
-to either of the table names 'STAFF' or 'My Table' to the console.
-java org.apache.derby.tools.dblook -d jdbc:derby:sample -t "My Table" staff
-
-
-Dump the DDL for all objects in database 'sample' to myDB_DDL.sql,
-with no statement delimiter (i.e. leave off the default semi-colon),
-and append to the output files if they are already there.
-java org.apache.derby.tools.dblook -d jdbc:derby:sample
- -o myDB_DDL.sql -td '' -append
-
-
-Dump the DDL for all objects EXCEPT views in database 'sample'
-to the console.
-java org.apache.derby.tools.dblook -d jdbc:derby:sample -noview
-
-Status messages are printed to the output (either a -o filename,
-if specified, or the console) as SQL script comments. These status messages
-serve as headers to show which types of database objects are being (or have
-been) processed by the dblook utility.
+options can be specified from a command line. These examples use the sample database.
The
+quotations marks shown in these examples are part of the command argument
+and must be passed to dblook. The way in which quotation
+marks are passed depends on the operating system and command line that you
+are using. With some systems it might be necessary to escape the quotation
+marks by using a forward slash before the quotation mark, for example: "\"My
+Table"\"Status messages are written to the output (either
+a -o filename, if specified, or the console) as SQL script comments. These
+status messages serve as headers to show which types of database objects are
+being, or have been, processed by the dblook utility.
+Writing the DDL to the consoleYou can write the
+DDL to the console for everything that is in the sample database.
+In this example, the database is in the current directory. For example:java org.apache.derby.tools.dblook -d jdbc:derby:sample
+
+Including error and warning messages in the dblook commandYou
+can write error and warning messages when you write the DDL to the console.
+The messages are written using System.err. For example:java org.apache.derby.tools.dblook -d jdbc:derby:sample -verbose
+Writing the DDL to a fileYou can write the DDL
+to a file called myDB_DDL.sql for everything that is in the sample database.
+In this example, the database and file are in the current directory. For example:java org.apache.derby.tools.dblook -d jdbc:derby:sample -o myDB_DDL.sql
+Specifying directory paths in the dblook commandIf
+the database or file are not in the current directory, you must specify the
+directory paths. For example:java org.apache.derby.tools.dblook -d 'jdbc:derby:c:\private\stuff\sample'
+ -o 'C:\temp\newDB.sql'
+Specifying a schema in the dblook commandYou can
+specify the schema for the database. To write the DDL to the console, for
+all of the objects in the sample database where the database
+is in the SAMP schema, use the following command:java org.apache.derby.tools.dblook -d jdbc:derby:sample -z samp
+
+Specifying a remote database and hostIf the sample database
+is in the SAMP schema on localhost:1527, you must specify your user ID and
+password. For example, use the following command to write the DDL to the console: java org.apache.derby.tools.dblook
+ -d 'jdbc:derby://localhost:1527/"C:\temp\sample";
+ user=someusername;password=somepassword' -z samp
+
+Specifying a schema and a table within the database in the
+dblook commandYou can specify that only the objects in the sample database
+that are associated with the SAMP and the My Table table
+are written to the console. For example:java org.apache.derby.tools.dblook -d jdbc:derby:sample -z samp -t "My Table"
+
+Specifying multiple tables in the dblook commandYou
+can specify more than one table in the dblook command by separating the names
+of the tables with a space. For example, for objects in the sample database
+that are associated with either the My Table table or the STAFF table,
+use the following command:java org.apache.derby.tools.dblook -d jdbc:derby:sample -t "My Table" staff
+Writing DDL to a file without a statement delimiterTo
+write the DDL for all of the objects insample database to
+the myDB_DDL.sql file without a statement delimiter, you
+must omit the default semi-colon. You can append the DDL to the output files
+if the files are already there. For example:java org.apache.derby.tools.dblook -d jdbc:derby:sample
+ -o myDB_DDL.sql -td '' -append
+Excluding views from the DDLTo write the DDL to
+the console for all of the objects in the sample database
+except for views, use the following command:java org.apache.derby.tools.dblook -d jdbc:derby:sample -noview
Modified: db/derby/docs/trunk/src/tools/rtoolssysinfo1002629.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/tools/rtoolssysinfo1002629.dita?view=diff&rev=464694&r1=464693&r2=464694
==============================================================================
--- db/derby/docs/trunk/src/tools/rtoolssysinfo1002629.dita (original)
+++ db/derby/docs/trunk/src/tools/rtoolssysinfo1002629.dita Mon Oct 16 15:13:34 2006
@@ -1,4 +1,7 @@
+
+
-
-
+
sysinfo example
-
-
-
-$ java org.apache.derby.tools.sysinfo
+
+sysinfoexampleexamplessysinfo
+
+
+
+When you have derby.jar and derbytools.jar listed in your classpath,
+the output from running the sysinfo command is shown below: $ java org.apache.derby.tools.sysinfo
------------------ Java Information ------------------
Java Version: 1.4.2_07
Java Vendor: Sun Microsystems Inc.
@@ -64,6 +69,8 @@
Found support for locale: [zh_CN]
version: .1.0 - (190628)
Found support for locale: [zh_TW]
-When requesting help from technical support or posting on the
-forum, include a copy of the information provided by sysinfo.
-
+When requesting help from technical
+support or posting on the forum, include a copy of the information provided
+by the sysinfo utility.
+
+