cpu_count

2025-11-14 07:33:33  Updated

Note

This parameter is available starting with V1.4.

Description

cpu_count specifies the total number of CPU cores in the system.

Privilege requirements

  • Query the parameter

    The sys tenant and all user tenants can query the value of this parameter by using the SHOW PARAMETERS statement or the GV$OB_PARAMETERS view.

  • Modify the parameter

    Only the sys tenant can modify this parameter. User tenants cannot modify this parameter.

Attributes

Attribute Description
Type Int
Default value 0, which indicates that the system automatically detects the number of CPU cores.
Value range [0, +∞)
Modifiable Yes. You can use the ALTER SYSTEM SET statement to modify the parameter.
Effective upon OBServer node restart No. The setting takes effect immediately.

Considerations

Other parameters in the cluster may affect the effectiveness of this parameter. We recommend that you query the CPU_CAPACITY field in the GV$OB_SERVERS internal table by using the SELECT statement after you configure this parameter. If the value is not dynamically effective, you must restart the entire cluster.

Examples

Set the total number of CPU cores in the system to 16.

obclient> ALTER SYSTEM SET cpu_count=16;

References

Contact Us