enabled) of a storage volume. For more about the properties of a storage volume, see CREATE STORAGE VOLUME. This feature is supported from v3.1.
CAUTION
- Only users with the ALTER privilege on a specific storage volume can perform this operation.
- The
TYPEandLOCATIONSof an existing storage volume, and the propertiesaws.s3.enable_partitioned_prefixandaws.s3.num_partitioned_prefix, cannot be altered. The database does not block changes to other properties such as the endpoint or region, and the new values apply to all existing databases and tables that use the storage volume. Alter these properties only to access the same storage, for example, to rotate credentials. If the new values point to different storage, the data of the existing databases and tables becomes inaccessible.- When
enabledisfalse, the corresponding storage volume cannot be referenced.- In shared-data mode, the database performs a storage accessibility check during
ALTER STORAGE VOLUMEonly when theenable_storage_volume_access_checkconfiguration is enabled (enabled by default). If this check is enabled and the updated credentials or endpoint cannot access remote storage, the statement fails. You can turn off this check by disablingenable_storage_volume_access_check.
Syntax
Parameters
For detailed information on the properties that can be altered or added, see CREATE STORAGE VOLUME - PROPERTIES.
Examples
Example 1: Disable the storage volumemy_s3_volume.
my_s3_volume.