Valid in: SQL, ESQL
The Alter Location statement changes the type of files that can be created at an existing location.
Current usage of the location is unaffected, but future attempts to extend a database to the target extension are constrained by the new usage setting.
The Alter Location statement has the following format:
[EXEC SQL] ALTER LOCATION location_name
WITH USAGE = (usage_type {, usage_type}) | NOUSAGE
Specifies the name of an existing disk and directory combination.
Specifies the types of file that can be stored at this location. Valid values are:
Prevents any files from being stored at the location.
In an embedded Alter Location statement, the usage portion of the with clause can be specified using a host string variable. The preprocessor does not validate the with clause.
You must have maintain_locations privileges and be connected to the iidbdb to issue this statement.
The Alter Location statement locks pages in the iilocation_info system catalog.
The following examples change the type of files that can be created at an existing location:
alter location checkpoint_disk
with usage = (checkpoint);
alter location new_db with nousage;