database:oracle:adjust-tablespace-size
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| database:oracle:adjust-tablespace-size [2019/04/23 15:21] – [Check existing size] odefta | database:oracle:adjust-tablespace-size [2025/01/02 18:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Adjust tablespace size to free up space ====== | ====== Adjust tablespace size to free up space ====== | ||
| - | ===== Check existing size ===== | + | ===== Check how much space from datafiles are occupied for a specific tablespace ===== |
| + | |||
| + | Replace < | ||
| + | |||
| + | <code sql> | ||
| + | SELECT df.tablespace_name, | ||
| + | FROM dba_data_files df | ||
| + | LEFT JOIN dba_extents e ON df.file_id = e.file_id | ||
| + | WHERE df.tablespace_name='< | ||
| + | GROUP BY df.tablespace_name, | ||
| + | </ | ||
| + | |||
| + | Output: | ||
| + | < | ||
| + | DATA D: | ||
| + | DATA D: | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | ===== Check existing | ||
| <code sql> | <code sql> | ||
database/oracle/adjust-tablespace-size.1556032879.txt.gz · Last modified: (external edit)
