스키마:

ACCOUNT_USAGE

DATABASE_STORAGE_USAGE_HISTORY 뷰

이 Account Usage 뷰는 지난 365일(1년) 동안 계정의 데이터베이스에 대한 평균 일일 저장소 사용량(바이트)을 쿼리하는 데 사용할 수 있습니다. 데이터에는 다음이 포함됩니다.

  • 데이터베이스의 테이블에 저장된 모든 데이터.

  • 데이터베이스에 대해 Fail-safe에서 유지 관리되는 모든 과거 데이터.

열 이름

데이터 타입

설명

USAGE_DATE

DATE

이 저장소 사용량 레코드의 날짜(현지 타임존)입니다. 대신 UTC 타임존을 사용하도록 쿼리 세션을 변경하는 것이 좋습니다(예: ALTER SESSION SET TIMEZONE='UTC').

DATABASE_ID

NUMBER

데이터베이스의 내부/시스템 생성 식별자입니다.

DATABASE_NAME

VARCHAR

데이터베이스의 이름입니다.

DELETED

TIMESTAMP_LTZ

데이터베이스가 삭제된 날짜 및 시간입니다. 활성 데이터베이스의 경우 NULL입니다.

AVERAGE_DATABASE_BYTES

FLOAT

Time Trave의 현재 바이트를 포함하여 사용된 데이터베이스 저장소의 바이트 수입니다.

AVERAGE_FAILSAFE_BYTES

FLOAT

사용된 Fail-safe 저장소의 바이트 수입니다.

AVERAGE_HYBRID_TABLE_STORAGE_BYTES

FLOAT

사용된 하이브리드 테이블 저장소의 바이트 수(행 저장소의 데이터)입니다.

AVERAGE_ARCHIVE_STORAGE_COOL_BYTES

FLOAT

Average number of bytes (including active bytes, time travel bytes, and bytes subject to minimum storage duration charges) of table storage used in the COOL storage tier.

AVERAGE_ARCHIVE_STORAGE_COLD_BYTES

FLOAT

Average number of bytes (including active bytes, time travel bytes, and bytes subject to minimum storage duration charges) of table storage used in the COLD storage tier.

AVERAGE_COOL_FAILSAFE_BYTES

FLOAT

Average number of bytes of Fail-safe storage used in the COOL storage tier.

AVERAGE_COLD_FAILSAFE_BYTES

FLOAT

Average number of bytes of Fail-safe storage used in the COLD storage tier.

사용법 노트

  • 뷰의 지연 시간은 최대 180분(3시간)입니다.

  • 참고

    With BCR-2127, this view includes new columns for storage lifecycle policies. To view storage lifecycle policy columns, you must enable the 2025_07 behavior change bundle in your account.

    To enable this bundle in your account, execute the following statement:

    SELECT SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE('2025_07');
    
    Copy