You can put a database's log on a separate device when you create it.
For more information, see the Java DB Server and Administration Guide.