Entering content frame

Procedure documentation Updating the Optimizer Statistics Locate the document in its SAP Library structure

Use

You update the statistics that the SQL Optimizer uses to select the optimum access strategy.

Prerequisites

·        The database instance is in operational state ONLINE.

·         

·        XUSER entries must exist or the environment variable SQLOPT must be set as follows: SQLOPT="-d <database_name> -u <database_user>,<database_user_password>"

Procedure

xpu -s [-u] count

-s

Update statistics for the SQL Optimizer

-u

Only in combination with the option –s; all tables in the database are checked. If this option is not set, only those tables whose size has changed most since the last check are analyzed.

count

Maximum number of parallel tasks; 1 < count < 50

Example

Updating the Optimizer statistics for all tables:

xpu –s -u 10

See also:

Concepts of the MaxDB Database System, SQL Optimizer

Database Manager CLI, Updating the Optimizer Statistics with the XPU Program

 

Leaving content frame