16 lines
360 B
Markdown
16 lines
360 B
Markdown
|
```SQL
|
||
|
-- 테이블 용량 산정
|
||
|
SELECT TABLE_NAME, SUM(DATA_LENGTH)
|
||
|
FROM ALL_TAB_COLUMNS
|
||
|
WHERE TABLE_NAME = 'SACP_OBJECT_FILE'
|
||
|
GROUP BY TABLE_NAME ;
|
||
|
|
||
|
SELECT TO_NUMBER(:arExpRos) FROM dual
|
||
|
|
||
|
-- 예상 적재 용량
|
||
|
SELECT TABLE_NAME
|
||
|
, ( SUM(DATA_LENGTH) * :arExpRos /1024 ) as kb_a1day
|
||
|
FROM ALL_TAB_COLUMNS
|
||
|
WHERE TABLE_NAME = 'SACP_AC'
|
||
|
GROUP BY TABLE_NAME
|
||
|
```
|