Organization Usage¶
Snowflake provides historical usage data for all accounts in your organization via the ORGANIZATION_USAGE schema in a shared database named SNOWFLAKE.
ORGANIZATION_USAGE views¶
The ORGANIZATION_USAGE schema contains the following views:
View |
Type |
Latency [1] |
Notes |
---|---|---|---|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
||
Historical |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
CONTRACT_ITEMS [2] |
Historical |
24 hours |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Historical |
2 hours |
Data retained for 1 year. |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
72 hours |
Data retained for 1 year. |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Historical |
2 hours |
Data retained for 1 year. |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
RATE_SHEET_DAILY [2] |
Historical |
24 hours |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
72 hours |
||
Historical |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Historical |
24 hours |
Data retained for 1 year. |
|
24 hours |
Premium view (only available in organization account). |
||
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Data retained for 1 year. |
|
Historical |
2 hours |
Data retained for 1 year. |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
72 hours |
||
Object |
24 hours |
Premium view (only available in organization account). |
|
Object |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Premium view (only available in organization account). |
|
Historical |
24 hours |
Data retained for 1 year. |
[1] All latency times are approximate; in some instances, the actual latency may be lower.
[2] The organization billing views do not display the actual, final amount because some adjustments are made at the end of the month. Customers who signed a contract through a Snowflake reseller cannot access data in these views.
Accessing the ORGANIZATION_USAGE schema¶
The ORGANIZATION_USAGE schema is available in the organization account and a regular account that has the ORGADMIN role enabled. How you access the views in the schema differs depending on which type of account you are using. For details about accessing views, see the following:
Note
The views in the ORGANIZATION_USAGE schema are currently not available in US SnowGov Regions on AWS GovCloud and Microsoft Azure Government.
Access schema in the organization account¶
By default, only users granted the GLOBALORGADMIN role can access ORGANIZATION_USAGE views in the organization account.
To grant access to other users, the organization administrator can grant the appropriate application role to an account role or user.
Users who have been granted the ORG_USAGE_ADMIN application role can access all views in the ORGANIZATION_USAGE schema of the organization
account. The following example lets user joe
access all views in the schema:
USE ROLE GLOBALORGADMIN;
GRANT APPLICATION ROLE ORG_USAGE_ADMIN TO ROLE custom_role;
GRANT ROLE custom_role TO USER joe;
The organization administrator can also grant access on a more granular level. For example, the ORGANIZATION_OBJECT_VIEWER application role grants access to the DATABASES view but does not grant access to the TASK_HISTORY view.
Using the following list to determine which application role grants access to a specific view.
View |
Required application role |
---|---|
ORGANIZATION_GOVERNANCE_VIEWER |
|
ORGANIZATION_ACCOUNTS_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_BILLING_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_SECURITY_VIEWER |
|
ORGANIZATION_SECURITY_VIEWER |
|
ORGANIZATION_BILLING_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_SECURITY_VIEWER |
|
ORGANIZATION_BILLING_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
MARKETPLACE_PURCHASE_EVENTS view |
ORGANIZATION_BILLING_VIEWER |
ORGANIZATION_GOVERNANCE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_SECURITY_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_GOVERNANCE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_GOVERNANCE_VIEWER |
|
|
|
ORGANIZATION_GOVERNANCE_VIEWER |
|
ORGANIZATION_BILLING_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_BILLING_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_SECURITY_VIEWER |
|
ORGANIZATION_GOVERNANCE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_SECURITY_VIEWER |
|
ORGANIZATION_SECURITY_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_GOVERNANCE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_BILLING_VIEWER |
|
ORGANIZATION_SECURITY_VIEWER |
|
ORGANIZATION_OBJECT_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
|
ORGANIZATION_USAGE_VIEWER |
Access schema in an ORGADMIN-enabled account¶
An ORGADMIN-enabled account is a regular account that has the ORGADMIN role enabled. Within a ORGADMIN-enabled account, anyone who has access to the shared SNOWFLAKE database has access to the ORGANIZATION_USAGE schema. By default, only the ACCOUNTADMIN role has privileges to this database, which means the ORGADMIN role does not have the necessary privileges. To grant these privileges to the ORGADMIN role, see Enabling other roles to use schemas in the SNOWFLAKE database.
To grant access to non-administrators, the organization administrator can grant the appropriate database role to an account role or user.
Using the following list to determine which database role grants access to specific views.
The ORGANIZATION_USAGE_VIEWER, ORGANIZATION_BILLING_VIEWER, and ORGANIZATION_ACCOUNTS_VIEWER SNOWFLAKE database roles are granted the SELECT privilege on Organization Usage views in the shared SNOWFLAKE database.
View |
ORGANIZATION_BILLING_VIEWER Role |
ORGANIZATION_USAGE_VIEWER Role |
ORGANIZATION_ACCOUNTS_VIEWER Role |
---|---|---|---|
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
|||
✔ |
For more information, refer to GRANT DATABASE ROLE.
General usage notes¶
The Snowflake-specific views are subject to change. Avoid selecting all columns from these views. Instead, select the columns that you want.
For example, if you want the name
column, use SELECT name
, rather than SELECT *
.