If user authentication is disabled, a Derby database will shut down normally when the Network Server is shut down. If user authentication is enabled, you must explicitly shut down the database before shutting down the Network Server by specifying a valid Derby user name and password.
The database can be shut down either directly, or by the Derby server.
stopNetworkServer.bat [-h <hostname>] [-p <portnumber>]
stopNetworkServer.ksh [-h <hostname>] [-p <portnumber>]These scripts are located in the $DERBY_INSTALL/frameworks/NetworkServer/bin directory.