286 lines
11 KiB
HTML
286 lines
11 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Start Journal Access Path (STRJRNAP)</title>
|
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</head>
|
|
<body bgcolor="white">
|
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<a name="STRJRNAP.Top_Of_Page"></a>
|
|
<h2>Start Journal Access Path (STRJRNAP)</h2>
|
|
<table width="100%">
|
|
<tr>
|
|
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
|
|
<b>Threadsafe: </b>Yes
|
|
</td>
|
|
<td valign="top" align="right">
|
|
<a href="#STRJRNAP.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#STRJRNAP.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#STRJRNAP.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="STRJRNAP"></a>
|
|
<p>The Start Journal Access Path (STRJRNAP) command is used to start journaling the access paths for all members of a database file to a specified journal. Any new member that is later added to the file also has its access path journaled.
|
|
</p>
|
|
<p>If a physical file is specified, journaling can be started for its access paths. When access path journaling is started for a physical file, only the access paths for the physical file members are journaled. Journaling for any logical file access paths is started only when access path journaling is started for the logical file.
|
|
</p>
|
|
<p>The journal entries created after running this command cannot be used in any apply or remove journaled changes operation. These entries are used only to recover the access path without rebuilding it after an abnormal system operation ending.
|
|
</p>
|
|
<p>If you start journaling your access paths, consider specifying RCVSIZOPT(*RMVINTENT) on either the Create Journal (CRTJRN) or the Change Journal (CHGJRN) command for this journal. This will reduce the additional storage required to do access path journaling.
|
|
</p>
|
|
<p>If you do not want the overhead of managing the access path journaling yourself, consider taking advantage of the system-managed access-path protection support. For more information, see the Journal Management information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter, and the Edit Recovery for Access Paths (EDTRCYAP) or the Change Recovery for Access Paths (CHGRCYAP) command.
|
|
</p>
|
|
<p>For other ways to start journaling see the following commands:
|
|
</p>
|
|
<ul>
|
|
<li>Integrated file system objects - Start Journal (STRJRN)
|
|
</li>
|
|
<li>Physical files - Start Journal Physical File (STRJRNPF)
|
|
</li>
|
|
<li>Other objects - Start Journal Object (STRJRNOBJ)
|
|
</li>
|
|
</ul>
|
|
<p><b>Restrictions:</b>
|
|
</p>
|
|
<ul>
|
|
<li>Before journaling an access path, all physical files over which the access path is built must first be journaled to the same journal that is used to journal the access path. Even if all physical file members for a particular physical file are removed from the access path of a logical file, all physical files must still be journaled to the same journal before journaling the access path.
|
|
</li>
|
|
<li>The maximum number of objects that can be associated with one journal is either 250,000 or 10,000,000. To get 10,000,000, the value of *MAX10M must have been specified for the JRNOBJLMT parameter on either the Create Journal (CRTJRN) command or on the Change Journal (CHGJRN) command. If the number of objects is larger than this maximum, journaling does not start.
|
|
</li>
|
|
<li>All access paths to be journaled must specify MAINT(*IMMED) or MAINT(*DLY).
|
|
</li>
|
|
<li>If only after images are being journaled for the physical file members, the system automatically starts journaling the before and after images for the physical file once journaling is started for any access path built over the physical file. When journaling ends for the access paths, the system automatically stops journaling the before images for the physical file and again only journals the after images.
|
|
</li>
|
|
<li>Overrides are not applied to files specified on the FILE parameter.
|
|
</li>
|
|
<li>The specified journal must be a local journal. Although all object types which can be journaled to a local journal can also have their changes sent to a remote journal, this is accomplished by a two step process. First start journaling to the local journal. Then connect the local journal to a remote instance. To initiate such a connection, use the Add Remote Journal (ADDRMTJRN) command or the Add Remote Journal (QjoAddRemoteJournal) API. For information about remote journaling, see the Journal Management information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRJRNAP.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="STRJRNAP.PARAMETERS.TABLE">Parameters</a></h3>
|
|
<table border="1" cellpadding="4" cellspacing="0">
|
|
<!-- col1="10" col2="15" col3="30" col4="10" -->
|
|
<tr>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#STRJRNAP.FILE"><b>FILE</b></a></td>
|
|
<td valign="top">Journaled file</td>
|
|
<td valign="top">Values (up to 50 repetitions): <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Required, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Journaled file</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
|
</tr><tr>
|
|
<td valign="top" rowspan="3"><a href="#STRJRNAP.JRN"><b>JRN</b></a></td>
|
|
<td valign="top">Journal</td>
|
|
<td valign="top"><i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Required, Positional 2</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Journal</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
|
</tr></table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRJRNAP.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="STRJRNAP.FILE"></a>
|
|
<h3>Journaled file (FILE)</h3>
|
|
<p>Specifies a maximum of 50 database files whose access paths are journaled.
|
|
</p>
|
|
<p>This is a required parameter.
|
|
</p>
|
|
<p><b>Qualifier 1: Journaled file</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>file-name</i></b></dt>
|
|
<dd>Specify the name of the file.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>All libraries in the library list for the current thread are searched until the first match is found.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the job is searched. If no library is specified as the current library for the job, QGPL is used.
|
|
</dd>
|
|
<dt><b><i>library-name</i></b></dt>
|
|
<dd>Specify the name of the library to be searched.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRJRNAP.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRJRNAP.JRN"></a>
|
|
<h3>Journal (JRN)</h3>
|
|
<p>Specifies the journal that receives the file change journal entries.
|
|
</p>
|
|
<p>This is a required parameter.
|
|
</p>
|
|
<p><b>Qualifier 1: Journal</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>journal-name</i></b></dt>
|
|
<dd>Specify the name of the journal.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>All libraries in the library list for the current thread are searched until the first match is found.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the job is searched. If no library is specified as the current library for the job, QGPL is used.
|
|
</dd>
|
|
<dt><b><i>library-name</i></b></dt>
|
|
<dd>Specify the name of the library to be searched.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRJRNAP.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="STRJRNAP.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p>
|
|
<pre>
|
|
STRJRNAP FILE(MYFILE) JRN(MYLIB/JRNLA)
|
|
</pre>
|
|
</p>
|
|
<p>This command journals all access paths for all members in file MYFILE (found using the library search list) to journal JRNLA in library MYLIB.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRJRNAP.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="STRJRNAP.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF6971</b></dt>
|
|
<dd>Damage prevents object &1 from being journaled.
|
|
</dd>
|
|
<dt><b>CPF6972</b></dt>
|
|
<dd>Cannot allocate access path for file &1 in &2.
|
|
</dd>
|
|
<dt><b>CPF7003</b></dt>
|
|
<dd>Entry not journaled to journal &1. Reason code &3.
|
|
</dd>
|
|
<dt><b>CPF7004</b></dt>
|
|
<dd>Maximum number of objects journaled to journal &1.
|
|
</dd>
|
|
<dt><b>CPF7008</b></dt>
|
|
<dd>Cannot start or end access path journaling for file &1.
|
|
</dd>
|
|
<dt><b>CPF7009</b></dt>
|
|
<dd>Not all based-on files being journaled to &3.
|
|
</dd>
|
|
<dt><b>CPF7011</b></dt>
|
|
<dd>Not enough storage or resources.
|
|
</dd>
|
|
<dt><b>CPF703C</b></dt>
|
|
<dd>DDL transaction prevents journaling operation.
|
|
</dd>
|
|
<dt><b>CPF703D</b></dt>
|
|
<dd>DDL transaction prevents journaling operation.
|
|
</dd>
|
|
<dt><b>CPF703E</b></dt>
|
|
<dd>DDL transaction prevents journaling operation.
|
|
</dd>
|
|
<dt><b>CPF7030</b></dt>
|
|
<dd>Object of type *&3 already being journaled.
|
|
</dd>
|
|
<dt><b>CPF7031</b></dt>
|
|
<dd>Cannot allocate member &3 file &1 in &2.
|
|
</dd>
|
|
<dt><b>CPF7033</b></dt>
|
|
<dd>Start or end journaling failed for member &3.
|
|
</dd>
|
|
<dt><b>CPF7034</b></dt>
|
|
<dd>Logical damage of file &1 in &2.
|
|
</dd>
|
|
<dt><b>CPF7035</b></dt>
|
|
<dd>Object &1 in &2 already known to journal.
|
|
</dd>
|
|
<dt><b>CPF705A</b></dt>
|
|
<dd>Operation failed due to remote journal.
|
|
</dd>
|
|
<dt><b>CPF7079</b></dt>
|
|
<dd>Access path journaling for file &1 not started.
|
|
</dd>
|
|
<dt><b>CPF708D</b></dt>
|
|
<dd>Journal receiver found logically damaged.
|
|
</dd>
|
|
<dt><b>CPF7084</b></dt>
|
|
<dd>Object of type *&6 could not be journaled.
|
|
</dd>
|
|
<dt><b>CPF709D</b></dt>
|
|
<dd>Cannot start journaling object of type *&7.
|
|
</dd>
|
|
<dt><b>CPF9801</b></dt>
|
|
<dd>Object &2 in library &3 not found.
|
|
</dd>
|
|
<dt><b>CPF9802</b></dt>
|
|
<dd>Not authorized to object &2 in &3.
|
|
</dd>
|
|
<dt><b>CPF9803</b></dt>
|
|
<dd>Cannot allocate object &2 in library &3.
|
|
</dd>
|
|
<dt><b>CPF9812</b></dt>
|
|
<dd>File &1 in library &2 not found.
|
|
</dd>
|
|
<dt><b>CPF9820</b></dt>
|
|
<dd>Not authorized to use library &1.
|
|
</dd>
|
|
<dt><b>CPF9822</b></dt>
|
|
<dd>Not authorized to file &1 in library &2.
|
|
</dd>
|
|
<dt><b>CPF9825</b></dt>
|
|
<dd>Not authorized to device &1.
|
|
</dd>
|
|
<dt><b>CPF9830</b></dt>
|
|
<dd>Cannot assign library &1.
|
|
</dd>
|
|
<dt><b>CPF9873</b></dt>
|
|
<dd>ASP status is preventing access to object.
|
|
</dd>
|
|
<dt><b>CPF9875</b></dt>
|
|
<dd>Resources exceeded on ASP &1.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRJRNAP.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|