snap_id
stores the last snapshot id and is used for purging (see procedure dbms_workload_repository.purge_sql_details
). ref_count
is not used anymore to reduce contention. Instead, the ref count is tracked in wri$_sqltext_refcount
. dbid,sql_id,con_dbid,snap_id
.