Duhee Lee <[EMAIL PROTECTED]> writes:

> Hi,
>
> Relocating 'derby.log' and temp directory are quite easy since those can
> be configured through java system properties.
> However, handling 'log' directory is not easy to me.
> I'd like to make 'log' directory not updated under database directory.
> Meaning that I want to either relocate the log directory to different
> place without altering 'service.properties' or make no logs written. My
> application only do 'select' and no transactions. So, I called
> 'setReadOnly(true) on connection but it still update files in log
> directory.
> Is there a way to do that?

You can specify where the log files should be placed at database
creation time. Use a URL like this when you create the database:

  jdbc:derby:mydb;create=true;logDevice=/path/to/log/directory

If you want to relocate the log directory after you have created the
database, I think you have to modify service.properties.

-- 
Knut Anders

Reply via email to