Dumpdb
dumpdb#
About dumpdb#
dumpdb outputs memory tablespace information from memory checkpoint image files, or the contents of incremental backup files of the memory tablespace in character format.
dumpdb {-j job_number } [-i pingpong_number] [-o] [-f file_name] [-s] [-p] [-d]
Syntax#
Parameters#
Parameters | Description |
---|---|
-j job_number | Specifies which information to output. Values available for specification and suboptions available for additional specification for each value are as below: 0: META (-s -f) 1: TABLESPACE (-s -f) 2: TABLESPACE-FLI (-s -d) 3: TABLESPACE-FREE-PAGE-LIST (-s) 4: TABLE (-o -d) 5: TABLE-ALLOC-PAGE-LIST (-o) 6: PAGE (-s -p -d) 7: INCREMENTAL_BACKUP_META (-f) |
-i pingpong_number | Specifies the ping pong number of the checkpoint image file. On omission, 0 is used. |
-o | Specifies the ID of the object to be analyzed. |
-f file_name | Specifies the name of the checkpoint image file. |
-s | Specifies the ID of the tablespace to be analyzed. |
-p | Specifies the ID of the page to be analyzed. |
-d | Outputs detailed information. |
Description#
dumpdb analyzes memory checkpoint image files and outputs information of the meta header, page, etc. in text format, or outputs backup information from incremental backup files of the memory tablespace in text format.
Since this utility analyzes checkpoint image files stored on the disk, the user can view schemas created in the database, regardless of the status of the Altibase server. However, if the server is abnormally terminated after a DDL operation and this leads to the updated schema not being recorded on the disk, such information cannot be given.
Examples#
At a shell prompt, type the following:
$ dumpdb -j 1
$ dumpdb -j 1 -s 0
$ dumpdb -j 2
$ dumpdb -j 3
$ dumpdb -j 4
$ dumpdb -j 4 -d
$ dumpdb -j 4 -o 65536
$ dumpdb -j 5 -o 65536
$ dumpdb -j 6 -s 0 -p 4
<Example 1> This example outputs information on the memory tablespace. By adding the -s suboption, information only regarding a certain tablespace can be output.
$ dumpdb -j 1
<Example 2> This example outputs information on the FreeListInfo(FLI) page of the memory tablespace. By adding the -s suboption, information only regarding a certain tablespace can be output; by adding the -d suboption, invalid contents of the FLI page can also be output.
$ dumpdb -j 2
$ dumpdb -j 3
$ dumpdb -j 4
$ dumpdb -j 4 -d
$ dumpdb -j 4 -o 65568
<Example 7> This example outputs the list of pages that a certain table uses.
$ dumpdb -j 5 -o 65568
<Example 8> This example outputs a certain page from the memory database.
$ dumpdb -j 6 -s 0 -p 4
<Example 9> This example executes dumpdb on incremental backup files and outputs backup information.
$ dumpdb -j 7 -f SYS_TBS_MEM_DATA-0-0_TAG_MONDAY.ibak
dumpdb: Release 6.3.1.0.0 - Production on Oct 31 2012 22:12:21
(c) Copyright 2001 ALTIBase Corporation. All rights reserved.
[BEGIN CHECKPOINT IMAGE HEADER]
Binary DB Version [ 6.2.1 ]
Redo LSN [ 1, 5867599 ]
Create LSN [0, 1385 ]
DataFileDescSlot ID [ 1, 1 ]
//Incremental backup information stored in the backup file.
[BEGIN BACKUPFILE INFORMATION]
Begin Backup Time [ 2012_11_06 23:18:43 ]
End Backup Time [ 2012_11_06 23:18:44 ]
IBChunk Count [ 0 ]
Backup Target [ DATABASE ]
Backup Level [ LEVEL0 ]
Backup Type [ FULL ]
TableSpace ID [ 1 ]
File ID [ 0 ]
Backup Tag Name [ MONDAY ]
Backup File Name [ /backup_dir/TAG_MONDAY/SYS_TBS_MEM_DATA-0-0_TAG_MONDAY.ibak ]
[END BACKUPFILE INFORMATION]
[END CHECKPOINT IMAGE HEADER]
Dump complete.
Output#
The following table describes only the items that are output by executing the dumpdb utility on incremental backup files.
Field Name | Description |
---|---|
Binary DB Version | The version of the data file. |
Redo LSN | The Redo LSN for media recovery. If the value of the Redo LSN of the log anchor is larger than the Redo LSN of the datafile, starting from the Redo LSN output of this item, media recovery is required. |
Create LSN | The LSN at the time point of the checkpoint image creation |
DataFileDescSlot ID | The DataFileDescSlot ID of the ChangeTracking bound to the memory checkpoint image. |