innodb_stats_persistent

2025-11-27 02:38:06  Updated

Note

  • For OceanBase Database V4.3.x, this variable was introduced in OceanBase Database V4.3.2.
  • For OceanBase Database V4.2.x, this variable was introduced in OceanBase Database V4.2.3.

Description

innodb_stats_persistent specifies whether to persist InnoDB index statistics to the disk.

Applicability

  • This variable is applicable to only OceanBase Database in MySQL mode.
  • This variable is used only for compatibility with ecosystem tools and does not affect the features of OceanBase Database.

Limitations

  • Query the variable

    In the sys tenant or a user tenant, you can execute the SHOW VARIABLES statement to query the variable at the global level or query the information_schema.GLOBAL_VARIABLES view (in MySQL mode) for the variable at the global level.

  • Modify the variable

    • In the sys tenant, you can directly change the value of the variable at the global level.

    • In a MySQL user tenant, you must have the SUPER or ALTER SYSTEM privilege to change the value of the variable at the global level.

Attributes

Attribute Description
Type ENUM
Default value 1
Value range
  • ON
  • OFF
Effective scope Global
Modifiable Yes. You can use the SET statement to modify the variable.

Considerations

This variable is used only for compatibility, and its setting does not take effect.

Examples

Configure to persist InnoDB index statistics to the disk.

obclient> SET GLOBAL innodb_stats_persistent=ON;

Contact Us