
Administration Commands                          stop-database(1)

NAME
     stop-database - stops Java DB

SYNOPSIS
     stop-database  [--dbhost 0.0.0.0] [--dbport 1527]

DESCRIPTION
     The stop-database command stops a process  of  the  Java  DB
     server.  Java DB is based upon Apache Derby. The database is
     typically started with the asadmin  start-database  command.
     Note  that  a  single host can have multiple database server
     processes running on different ports. This command stops the
     database server process for the specified port only.

     This command is supported in local mode only.

OPTIONS
     --dbhost                    The host name or IP  address  of
                                 the Java DB server process.  The
                                 default  is   the   IP   address
                                 0.0.0.0,  which denotes all net-
                                 work  interfaces  on  the   host
                                 where  you run the stop-database
                                 command.

     --dbport                    The port number where  the  Java
                                 DB  server  listens  for  client
                                 connections.  The   default   is
                                 1527.

EXAMPLES
     Example 1 Using the stop-database command

     The following command stops Java DB on the  host  host1  and
     port 5001:

       asadmin> stop-database --dbhost host1 --dbport 5001
       Connection obtained for host: host1, port number 5001.
       Shutdown successful.
       Command stop-database executed successfully.

EXIT STATUS
     The exit status applies to errors in executing  the  asadmin
     command.   For  information  on  database  errors,  see  the

Java EE 5           Last change: 30 Jan 2007                    1

Administration Commands                          stop-database(1)

     derby.log file.  This file is located in the  directory  you
     specified  using  the  dbhome  option  when  you  ran start-
     database, or if you did not specify  dbhome,  the  value  of
     DERBY_INSTALL, which defaults to install-dir/javadb.

     0                           command executed successfully

     1                           error in executing the command

SEE ALSO
     start-database(1)

Java EE 5           Last change: 30 Jan 2007                    2

