DATABASE_REFRESH_HISTORY

functionsupportedReplication, failover & backup

docs.snowflake.com ↗

Information SchemaTable functions

Returns the refresh history for a secondary database. Note This function returns database refresh activity within the last 14 days.

Syntax

DATABASE_REFRESH_HISTORY( '<secondary_db_name>' )

Parameters

NameRequiredDescription
secondary_db_namerequiredName of the secondary database. This argument is optional if the secondary database is the active database in the current session. Note that the entire name must be enclosed in single quotes.

Usage notes

Output

The function returns the following columns: Column Name | Data Type | Description CURRENT_PHASE | TEXT | Current replication phase. For the list of phases, see the usage notes. START_TIME | NUMBER | Time when the replication operation began. Format is epoch time. END_TIME | NUMBER | Time when the replication operation finished, if applicable. Format is epoch time. JOB_UUID | TEXT | Query ID for the secondary database refresh job. COPY_BYTES | NUMBER | Number of bytes copied during the replication operation. OBJECT_COUNT | NUMBER | Number of database objects copied during the replication operation.

See also

Referenced by