OpenTP1 Version 7 Operation

[Contents][Index][Back][Next]

jnlinit (Initialize journal files)

Format

jnlinit -j jnl|cpd|srf -f physical-file-name
        -n OpenTP1-records-count

Function

The jnlinit command creates a journal file under the OpenTP1 file system and then initializes it so that the file can be used in the online mode.

Options

-j jnl|cpd|srf

Specifies the type of journal file to be initialized:

jnl: System journal file or archive journal file

cpd: Checkpoint dump file

srf: Server recovery journal file created from an OpenTP1 file

-f physical-file-name~<path name>

Specifies a name for the physical file to be initialized, expressed as the full path name.

For the system journal file for which "jnl" is specified with the -j option, specify the same name as that specified as the physical file name with the definition command jnladdpf in the system journal service definition.

For the archive journal file for which "jnl" is specified with the -j option, specify the same name as that specified as the physical file name with the definition command jnladdfg in the archive journal service definition.

When "cpd" or "srf" is specified with the -j option, specify the same name as that specified as the physical file name in the definition command jnladdfg in the checkpoint dump service definition.

If an existing physical file is specified, an error occurs.

-n OpenTP1-records-count~<unsigned integer> ((12-524287))

Specifies the number of records in the OpenTP1 file to be initialized. A record means a 4096-byte area in the OpenTP1 file system managed by the journal service.

When jnl is specified in the -j option, the -n option must have a value greater than the value shown below:

Notes