4.6.1 ibd2sdi — InnoDB Tablespace SDI Extraction Utility表空间SDI提取实用程序

ibd2sdi is a utility for extracting serialized dictionary information (SDI) from InnoDB tablespace files. ibd2sdi是一个从InnoDB表空间文件中提取序列化字典信息(SDI)的实用程序。SDI data is present all persistent InnoDB tablespace files.SDI数据存在于所有持久的InnoDB表空间文件中。

ibd2sdi can be run on file-per-table tablespace files (*.ibd files), general tablespace files (*.ibd files), system tablespace files (ibdata* files), and the data dictionary tablespace (mysql.ibd). ibd2sdi可以在每个表的文件表空间文件(*.ibd文件)、通用表空间文件、系统表空间文件(ibdata*文件)和数据字典表空间(mysql.ibd)上运行。It is not supported for use with temporary tablespaces or undo tablespaces.它不支持与临时表空间或撤消表空间一起使用。

ibd2sdi can be used at runtime or while the server is offline. ibd2sdi可以在运行时或服务器脱机时使用。During DDL operations, ROLLBACK operations, and undo log purge operations related to SDI, there may be a short interval of time when ibd2sdi fails to read SDI data stored in the tablespace.DDL操作、ROLLBACK操作和撤消与SDI相关的日志清除操作期间,ibd2sdi可能会在短时间内无法读取存储在表空间中的SDI数据。

ibd2sdi performs an uncommitted read of SDI from the specified tablespace. Redo logs and undo logs are not accessed.ibd2sdi从指定的表空间执行SDI的未提交读取。无法访问恢复日志和撤消日志。

Invoke the ibd2sdi utility like this:按如下方式调用ibd2sdi实用程序:

ibd2sdi [options] file_name1 [file_name2 file_name3 ...]

ibd2sdi supports multi-file tablespaces like the InnoDB system tablespace, but it cannot be run on more than one tablespace at a time. For multi-file tablespaces, specify each file:ibd2sdi支持多文件表空间,如InnoDB系统表空间,但一次不能在多个表空间上运行。对于多文件表空间,指定每个文件:

ibd2sdi ibdata1 ibdata2

The files of a multi-file tablespace must be specified in order of the ascending page number. If two successive files have the same space ID, the later file must start with the last page number of the previous file + 1.必须按页码升序指定多文件表空间的文件。如果两个连续的文件具有相同的空间ID,则后一个文件必须从前一个文件的最后一个页码+1开始。

ibd2sdi outputs SDI (containing id, type, and data fields) in JSON format.ibd2sdiJSON格式输出SDI(包含id、类型和数据字段)。

ibd2sdi Options

ibd2sdi supports the following options:ibd2sdi支持以下选项: