Sun Java System Portal Server 7.1 Community Sample Guide

Starting, Stopping, and Disabling the Java DB

This section contains the following:

ProcedureTo Start and Stop Java DB

For more information, see http://db.apache.org/derby/javadoc/publishedapi/org/apache/derby/drda/NetworkServerControl.html and http://db.apache.org/derby/docs/10.0/manuals/admin/hubprnt14.html#HDRCBDJHHFD.

    The database can be stopped and started using the Java DB NetworkServerControl class.

    For example, type:

    • java -Dderby.system.home=PortalServer-DataDir/derby org.apache.derby.drda.NetworkServerControl start to start the database.

    • java -Dderby.system.home=PortalServer-DataDir/derby org.apache.derby.drda.NetworkServerControl shutdown to stop the database.


    Note –

    To run this command:

    • The derby.jar, derbytools.jar, and derbynet.jar files must be in your classpath. By default, these JAR files are installed into /usr/share/lib/Derby directory.

    • The system property Dderby.system.home must be set to PortalServer-DataDir/derby.


ProcedureTo Disable Java DB

  1. Log in to the Portal Server host as root and go to PortalServer-DataDir/portals/portal-ID/config/ directory.

  2. Edit the communitymc.properties file and remove the jdo entry from the manager.contributors list to disable Java DB.

    See communitymc.properties File list for more information on this file and its contents. Note that if this change is applied, the community sample will not function properly.