1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry id="prdb_check8">
4 <refentrytitle>prdb_check</refentrytitle>
5 <manvolnum>8</manvolnum>
8 <refname>prdb_check</refname>
9 <refpurpose>Checks the integrity of the Protection Database</refpurpose>
12 <title>Synopsis</title>
13 <para><emphasis role="bold">prdb_check</emphasis> <emphasis role="bold">-database</emphasis> <<emphasis>ptdb file</emphasis>> [<emphasis role="bold">-uheader</emphasis>] [<emphasis role="bold">-pheader</emphasis>]
14 [<emphasis role="bold">-entries</emphasis>] [<emphasis role="bold">-verbose</emphasis>] [<emphasis role="bold">-help</emphasis>]</para>
16 <para><emphasis role="bold">prdb_check</emphasis> <emphasis role="bold">-d</emphasis> <<emphasis>ptdb file</emphasis>> [<emphasis role="bold">-u</emphasis>] [<emphasis role="bold">-p</emphasis>] [<emphasis role="bold">-e</emphasis>] [<emphasis role="bold">-v</emphasis>] [<emphasis role="bold">-h</emphasis>]</para>
20 <title>Description</title>
21 <para>The <emphasis role="bold">prdb_check</emphasis> command checks the integrity of the Protection Database,
22 reporting any errors or corruption it finds. If there are problems, do not
23 issue any <emphasis role="bold">pts</emphasis> commands until the database is repaired.</para>
27 <title>Cautions</title>
28 <para>The results can be unpredictable if the Protection Server makes changes to
29 the Protection Database while this command is running. Use the <emphasis role="bold">bos
30 shutdown</emphasis> command to shutdown the local <emphasis role="bold">ptserver</emphasis> process before running
31 this command, or before creating a second copy of the <replaceable>prdb.DB0</replaceable> file
32 (with a different name) on which to run the command.</para>
36 <title>Options</title>
39 <term><emphasis role="bold">-database</emphasis> <<emphasis>ptdb file</emphasis>></term>
41 <para>Names the Protection Database (copy of the <replaceable>prdb.DB0</replaceable> file) to check. If
42 the current working directory is not the location of the file, provide a
43 pathname, either full or relative to the current working directory.</para>
48 <term><emphasis role="bold">-uheader</emphasis></term>
50 <para>Displays information which Ubik maintains in the database's header.</para>
55 <term><emphasis role="bold">-pheader</emphasis></term>
57 <para>Displays information which the Protection Server maintains in the
58 database's header.</para>
63 <term><emphasis role="bold">-entries</emphasis></term>
65 <para>Outputs every entry in the database. Some of the information is similar to
66 that returned by the <emphasis role="bold">pts examine</emphasis> command.</para>
71 <term><emphasis role="bold">-verbose</emphasis></term>
73 <para>Reports additional information about the database, including the number of
74 entries in the database and a trace of the internal database structures
75 the command is verifying.</para>
80 <term><emphasis role="bold">-help</emphasis></term>
82 <para>Prints the online help for this command. All other valid options are
91 <para>If there are errors in the database, the output always reports them on the
92 standard error stream. If any options other than <emphasis role="bold">-database</emphasis> or <emphasis role="bold">-help</emphasis>
93 are provided, the output written to the standard output stream includes
94 additional information as described for each option in <link linkend="OPTIONS">OPTIONS</link>. The
95 output is intended for debugging purposes and is meaningful to someone
96 familiar with the internal structure of the Protection Database.</para>
100 <title>Privilege Required</title>
101 <para>The issuer must be logged in as the local superuser <computeroutput>root</computeroutput>.</para>
105 <title>See Also</title>
106 <para><link linkend="prdb_DB05">prdb.DB0(5)</link>,
107 <link linkend="bos_shutdown8">bos_shutdown(8)</link>,
108 <link linkend="pts_examine1">pts_examine(1)</link>,
109 <link linkend="ptserver8">ptserver(8)</link></para>
113 <title>Copyright</title>
114 <para>IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.</para>
116 <para>This documentation is covered by the IBM Public License Version 1.0. It was
117 converted from HTML to POD by software written by Chas Williams and Russ
118 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.</para>