Skip to content
OCTAVIIUS DOCSCore & Studio 0.2.83
Operations / 0.2.83

Catalog and storage administration

Database management, physical namespaces, locations, maintenance and asynchronous jobs.

Operation scope and publication

Server operations define defaults and identities; database operations administer the catalog, locations and structures. Changing a write location does not relocate historical data. Asynchronous tasks have their own job_id and a tracking lifecycle separate from SQL queries. Operations must associate each action with its scope, permissions and publication state.

Create and configure databases

Server administration is reserved for admin; dbo is insufficient. CREATE DATABASE accepts a name and the ON PRIMARY/FILENAME extension, where FILENAME is a data directory rather than an MDF file. ALTER DATABASE MODIFY NAME renames a database; DROP DATABASE [IF EXISTS] requires an idle user database. system is protected.

DEFAULT_DATA_PATH and DEFAULT_SPARE_PATH are creation defaults, not automatic migrations of existing databases. Directories must be absolute, accessible to Core and separate from other databases/spares. Do not run an active database inside a Google Drive-synced folder; Drive is for source/deliverables, not concurrent storage writes.

SQL
CREATE DATABASE AtelierBis;
ALTER DATABASE AtelierBis MODIFY NAME = AtelierArchives;
-- Administrator only; adapt paths before execution:
ALTER SERVER CONFIGURATION SET DEFAULT_DATA_PATH = 'D:\Octaviius\Databases';

Locations and relocation

Studio exposes storage paths/locations, defaults, additional locations and table placement. ALTER DATABASE MODIFY FILE (NAME=data|spare,FILENAME=...) and SPARE/SPARE_PATH/SPARE_RETENTION use the configuration handlers. Before relocation, back up, stop database usage, verify results and retain the original folder until validated. Do not move container fragments manually while Core runs.

Maintenance and cache

ActionEffect / caution
checkpointPublish a storage checkpoint, not an external backup.
clear_cacheClear targeted storage cache, not OS cache.
reclaim / vacuumReclaim unused storage; may wait for readers/writers to become idle.
consolidateConsolidate a selected table.
autoEnable/disable user-database learning.
async compact/vacuum/reclaim/checkpoint/restore_spareTrack through job_id, status and cooperative cancellation.

Management routes include POST /api/action, /api/storage and /api/databases; GET /api/jobs and POST /api/jobs/cancel track tasks. Protocol-4 sys.sp_maintenance/sp_storage expose the same operations and permissions with JSON parameters. Budget and monitor background work during measurements.

Prepare an upgrade

Retain versions, configuration, secrets and verified backups; stop clients and consoles. Never run two Core instances on the same data. Upgrade a compatible Core/Studio set, check native status and test a read, isolated write and restore before resuming. Program rollback is not automatically safe if a future release migrates storage.

Storage-management JSON reference

operationFields / behavior
memorycache_mb or cache_mb_decimal; dynamic minimum 16 MiB, per-reader minima, and idle readers for some reductions.
clear_global_cacheClear coordinator/reader caches, not OS cache.
database_pathsdatabase, data_path, spare_path, spare_retention; hot data_path changes are rejected.
default_rootpath, spare_path; new-database defaults only.
add_locationdatabase, id, path; Core adds its database namespace subdirectory.
default_locationdatabase, id; default write location.
table_locationdatabase, table, id; changes write placement without promising migration of all existing history.
spare_historydatabase; inspect versions.
acknowledge_incidentsids: up to 1000 incident IDs; does not repair data.

Send these bodies to admin-session POST /api/storage, or sys.sp_storage action apply with JSON-text payload under protocol 4. Core validates paths. Hot relocation of primary database storage is explicitly rejected; a MODIFY FILE command name does not imply an automatic migration tool.