The Java EE 6 Tutorial

Starting and Stopping the Java DB Server

The GlassFish Server includes the Java DB database server.

To start the Java DB server, open a terminal window or command prompt and execute:


asadmin start-database

To stop the Java DB server, open a terminal window or command prompt and execute:


asadmin stop-database

For information about the Java DB included with the GlassFish Server, see http://www.oracle.com/technetwork/java/javadb/overview/index.html.

ProcedureTo Start the Database Server Using NetBeans IDE

  1. Click the Services tab.

  2. Expand the Databases node.

  3. Right-click Java DB and choose Start Server.

Next Steps

To stop the database using NetBeans IDE, right-click Java DB and choose Stop Server.