db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-5195) Create tools for browsing the files in the database log directory.
Date Fri, 06 May 2011 14:19:03 GMT

     [ https://issues.apache.org/jira/browse/DERBY-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Rick Hillegas updated DERBY-5195:

    Attachment: LogFileReader.java

Attaching a new version of LogFileReader. This version adds support for pretty-printing log
files in encrypted databases:


    java LogFileReader $logFileName [ -v ] [ -p $P ] [ -n $N ] [ -e $bootPassword $serviceProperties

    -v   Verbose. Deserialize the logged operations. If you do not set this flag, the tool
just decodes the wrapper headers.
    -p   Starting position. $P is a positive number, the offset of the first log entry to
read. This causes the tool to skip reading the file header as well.
    -n   Number of records to read. $N is a non-negative number. If you do not specify this
flag, the tool prints all subsequent log entries.
    -e   If the database is encrypted, you must supply the boot password and the location
of service.properties.

The following example decrypts and deserializes an entire log file, dumping the result into
an xml file for inspection:

java LogFileReader wombat/log/log1.dat -v -e Wednesday wombat/service.properties > z.xml

> Create tools for browsing the files in the database log directory.
> ------------------------------------------------------------------
>                 Key: DERBY-5195
>                 URL: https://issues.apache.org/jira/browse/DERBY-5195
>             Project: Derby
>          Issue Type: Task
>    Affects Versions:
>            Reporter: Rick Hillegas
>         Attachments: ControlFileReader.java, ControlFileReader.java, LogFileReader.java,
LogFileReader.java, LogFileReader.java
> It would be nice to have some tools to examine the contents of the log directory. The
tools should be able to read the files in that directory without disturbing them.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message