UNPKG

hana-cli

Version:
109 lines (70 loc) 3.2 kB
# reclaim > Command: `reclaim` > Category: **Backup & Recovery** > Status: Production Ready ## Description Reclaim LOB, Log, and Data Volume space ## Syntax ```bash hana-cli reclaim [options] ``` ## Aliases - `re` ## Command Diagram ```mermaid graph TD Start([hana-cli reclaim]) --> Connect[Establish Connection<br/>Database Connection] Connect --> LOB[Reclaim LOB Space<br/>ALTER SYSTEM RECLAIM LOB SPACE] LOB --> Log[Reclaim Log Space<br/>ALTER SYSTEM RECLAIM LOG] Log --> Data[Reclaim Data Volume<br/>ALTER SYSTEM RECLAIM DATAVOLUME<br/>105 DEFRAGMENT] Data --> Results[Display Results<br/>Show reclaim operation results] Results --> Complete([Command Complete]) style Start fill:#0092d1 style Complete fill:#2ecc71 style LOB fill:#9b59b6 style Log fill:#9b59b6 style Data fill:#9b59b6 ``` ## Parameters ### Connection Parameters | Option | Alias | Type | Default | Description | |-----------|-------|---------|---------|------------------------------------------------------| | `--admin` | `-a` | boolean | `false` | Connect via admin (default-env-admin.json) | | `--conn` | - | string | - | Connection filename to override default-env.json | ### Troubleshooting | Option | Alias | Type | Default | Description | |---------------------|-----------|---------|---------|----------------------------------------------------------------------------------------------------------| | `--disableVerbose` | `--quiet` | boolean | `false` | Disable verbose output - removes all extra output that is only helpful to human readable interface | | `--debug` | `-d` | boolean | `false` | Debug hana-cli itself by adding output of LOTS of intermediate details | ## What Does This Command Do? The `reclaim` command performs three cleanup operations to free up disk space in your HANA database: 1. **LOB Space Reclamation**: Frees up unused space in LOB (Large Object) storage 2. **Log Reclamation**: Reclaims space from transaction logs that are no longer needed 3. **Data Volume Defragmentation**: Defragments data volume 105 to optimize storage This command is particularly useful after large delete operations or when disk space is running low. ## Examples ### Basic Usage ```bash hana-cli reclaim ``` Execute all three reclaim operations with default connection. ### Using Admin Connection ```bash hana-cli reclaim --admin ``` Execute reclaim operations using admin credentials for full system access. ### With Custom Connection ```bash hana-cli reclaim --conn my-db-connection.json ``` Execute reclaim operations using a custom connection file. ### Quiet Mode for Scripting ```bash hana-cli reclaim --quiet ``` Run reclaim operations with minimal output for use in scripts. ## Related Commands See the [Commands Reference](../all-commands.md) for other commands in this category. ## See Also - [Category: Backup & Recovery](..) - [All Commands A-Z](../all-commands.md)