2 .\" Title: \fBndb_blob_tool\fR
3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
6 .\" Manual: MySQL Database System
10 .TH "\FBNDB_BLOB_TOOL\FR" "1" "11/04/2013" "MySQL 5\&.1" "MySQL Database System"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
32 ndb_blob_tool \- check and repair BLOB and TEXT columns of MySQL Cluster tables
34 .HP \w'\fBndb_blob_tool\ \fR\fB\fIoptions\fR\fR\fB\ \fR\fB\fItable\fR\fR\fB\ [\fR\fB\fIcolumn\fR\fR\fB,\ \&.\&.\&.]\fR\ 'u
35 \fBndb_blob_tool \fR\fB\fIoptions\fR\fR\fB \fR\fB\fItable\fR\fR\fB [\fR\fB\fIcolumn\fR\fR\fB, \&.\&.\&.]\fR
38 This tool, which is available in MySQL Cluster NDB 7\&.0\&.4 and later, can be used to check for and remove orphaned BLOB column parts from
40 tables, as well as to generate a file listing any orphaned parts\&. It is sometimes useful in diagnosing and repairing corrupted or damaged
56 ndb_blob_tool [\fIoptions\fR] \fItable\fR [\fIcolumn\fR, \&.\&.\&.]
64 option, you must specify an action to be performed by including one or more of the options
65 \fB\-\-check\-orphans\fR,
66 \fB\-\-delete\-orphans\fR, or
67 \fB\-\-dump\-file\fR\&. These options cause
69 to check for orphaned BLOB parts, remove any orphaned BLOB parts, and generate a dump file listing orphaned BLOB parts, respectively, and are described in more detail later in this section\&.
71 You must also specify the name of a table when invoking
72 \fBndb_blob_tool\fR\&. In addition, you can optionally follow the table name with the (comma\-separated) names of one or more
76 columns from that table\&. If no columns are listed, the tool works on all of the table\*(Aqs
80 columns\&. If you need to specify a database, use the
86 option provides additional information in the output about the tool\*(Aqs progress\&.
88 The following table includes options that are specific to
89 \fBndb_blob_tool\fR\&. Additional descriptions follow the table\&. For options common to most MySQL Cluster programs (including
90 \fBndb_blob_tool\fR), see
91 Options Common to MySQL Cluster Programs(1)\&.
94 .nr an-no-space-flag 1
97 .B Table\ \&17.14.\ \&ndb_blob_tool Options and Variables: MySQL 5.1, MySQL Cluster NDB 6.3-7.1
118 Check for orphan blob parts
129 Database to find the table in\&.
138 Delete orphan blob parts
147 Write orphan keys to specified file
174 .\" ndb_blob_tool: check-orphans option
175 .\" check-orphans option: ndb_blob_tool
176 \fB\-\-check\-orphans\fR
187 5\&.1\&.32\-ndb\-7\&.0\&.4
190 \fBCommand\-Line Format\fR
197 \fBPermitted Values\fR
211 Check for orphaned BLOB parts in MySQL Cluster tables\&.
222 .\" ndb_blob_tool: database option
223 .\" database option: ndb_blob_tool
224 \fB\-\-database=\fR\fB\fIdb_name\fR\fR,
237 5\&.1\&.32\-ndb\-7\&.0\&.4
240 \fBCommand\-Line Format\fR
252 \fBPermitted Values\fR
266 Specify the database to find the table in\&.
277 .\" ndb_blob_tool: delete-orphans option
278 .\" delete-orphans option: ndb_blob_tool
279 \fB\-\-delete\-orphans\fR
290 5\&.1\&.32\-ndb\-7\&.0\&.4
293 \fBCommand\-Line Format\fR
300 \fBPermitted Values\fR
314 Remove orphaned BLOB parts from MySQL Cluster tables\&.
325 .\" ndb_blob_tool: dump-file option
326 .\" dump-file option: ndb_blob_tool
327 \fB\-\-dump\-file=\fR\fB\fIfile\fR\fR
338 5\&.1\&.32\-ndb\-7\&.0\&.4
341 \fBCommand\-Line Format\fR
348 \fBPermitted Values\fR
362 Writes a list of orphaned BLOB column parts to
363 \fIfile\fR\&. The information written to the file includes the table key and BLOB part number for each orphaned BLOB part\&.
374 .\" ndb_blob_tool: verbose option
375 .\" verbose option: ndb_blob_tool
388 5\&.1\&.32\-ndb\-7\&.0\&.4
391 \fBCommand\-Line Format\fR
403 \fBPermitted Values\fR
417 Provide extra information in the tool\*(Aqs output regarding its progress\&.
427 statement shown here:
435 c0 BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
444 Then we insert a few rows into this table, using a series of statements similar to this one:
450 INSERT INTO btest VALUES (NULL, \*(Aqx\*(Aq, REPEAT(\*(Aqx\*(Aq, 1000));
457 \fB\-\-check\-orphans\fR
460 generates the following output:
466 shell> \fBndb_blob_tool \-\-check\-orphans \-\-verbose \-d test btest\fR
469 processing blob #0 c1 NDB$BLOB_19_1
470 NDB$BLOB_19_1: nextResult: res=1
473 processing blob #1 c2 NDB$BLOB_19_2
474 NDB$BLOB_19_2: nextResult: res=0
475 NDB$BLOB_19_2: nextResult: res=0
476 NDB$BLOB_19_2: nextResult: res=0
477 NDB$BLOB_19_2: nextResult: res=0
478 NDB$BLOB_19_2: nextResult: res=0
479 NDB$BLOB_19_2: nextResult: res=0
480 NDB$BLOB_19_2: nextResult: res=0
481 NDB$BLOB_19_2: nextResult: res=0
482 NDB$BLOB_19_2: nextResult: res=0
483 NDB$BLOB_19_2: nextResult: res=0
484 NDB$BLOB_19_2: nextResult: res=1
488 NDBT_ProgramExit: 0 \- OK
494 The tool reports that there are no
496 BLOB column parts associated with column
501 column\&. This is due to the fact that, in an
503 table, only the first 256 bytes of a
507 column value are stored inline, and only the excess, if any, is stored separately; thus, if there are no values using more than 256 bytes in a given column of one of these types, no
509 column parts are created by
511 for this column\&. See
512 Section\ \&11.6, \(lqData Type Storage Requirements\(rq, for more information\&.
516 Copyright \(co 1997, 2013, Oracle and/or its affiliates. All rights reserved.
518 This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
520 This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
522 You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
525 For more information, please refer to the MySQL Reference Manual,
526 which may already be installed locally and which is also available
527 online at http://dev.mysql.com/doc/.
529 Oracle Corporation (http://dev.mysql.com/).