doc-exports/docs/dws/dev/dws_04_0638.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:24:04 +00:00

17 lines
5.2 KiB
HTML

<a name="EN-US_TOPIC_0000001233761671"></a><a name="EN-US_TOPIC_0000001233761671"></a>
<h1 class="topictitle1">System Catalogs for Performance View Snapshot</h1>
<div id="body0000001130382911"><p id="EN-US_TOPIC_0000001233761671__p482656142814">After <strong id="EN-US_TOPIC_0000001233761671__b106271911151112">enable_wdr_snapshot</strong> is set to <strong id="EN-US_TOPIC_0000001233761671__b1036771314113">on</strong>, the background snapshot thread creates and maintains a system catalog named in the format of <strong id="EN-US_TOPIC_0000001233761671__b177811434111">SNAP_</strong><em id="EN-US_TOPIC_0000001233761671__i1498285110110">View name</em> to record the snapshot result of each performance view. The following system catalogs are accessible only to users with system administrator rights:</p>
<ul id="EN-US_TOPIC_0000001233761671__ul10826662281"><li id="EN-US_TOPIC_0000001233761671__li98266612819">SNAP_<a href="dws_04_0812.html">PGXC_OS_RUN_INFO</a></li><li id="EN-US_TOPIC_0000001233761671__li3826760283">SNAP_<a href="dws_04_0832.html">PGXC_WAIT_EVENTS</a></li><li id="EN-US_TOPIC_0000001233761671__li13827869288">SNAP_<a href="dws_04_0808.html">PGXC_INSTR_UNIQUE_SQL</a></li><li id="EN-US_TOPIC_0000001233761671__li1582719642819">SNAP_<a href="dws_04_0821.html">PGXC_STAT_BAD_BLOCK</a></li><li id="EN-US_TOPIC_0000001233761671__li082796182818">SNAP_<a href="dws_04_0822.html">PGXC_STAT_BGWRITER</a></li><li id="EN-US_TOPIC_0000001233761671__li5827767281">SNAP_<a href="dws_04_0824.html">PGXC_STAT_REPLICATION</a></li><li id="EN-US_TOPIC_0000001233761671__li12827065282">SNAP_<a href="dws_04_0817.html">PGXC_REPLICATION_SLOTS</a></li><li id="EN-US_TOPIC_0000001233761671__li282713610282">SNAP_<a href="dws_04_0819.html">PGXC_SETTINGS</a></li><li id="EN-US_TOPIC_0000001233761671__li1282711612819">SNAP_<a href="dws_04_0807.html">PGXC_INSTANCE_TIME</a></li><li id="EN-US_TOPIC_0000001233761671__li11827156172818">SNAP_<a href="dws_04_0687.html">GLOBAL_WORKLOAD_TRANSACTION</a></li><li id="EN-US_TOPIC_0000001233761671__li1982715642814">SNAP_<a href="dws_04_0843.html">PGXC_WORKLOAD_SQL_COUNT</a></li><li id="EN-US_TOPIC_0000001233761671__li1482711682820">SNAP_<a href="dws_04_0823.html">PGXC_STAT_DATABASE</a></li><li id="EN-US_TOPIC_0000001233761671__li582714611289">SNAP_<a href="dws_04_0684.html">GLOBAL_STAT_DATABASE</a></li><li id="EN-US_TOPIC_0000001233761671__li18827186152812">SNAP_<a href="dws_04_0815.html">PGXC_REDO_STAT</a></li><li id="EN-US_TOPIC_0000001233761671__li1482736112812">SNAP_<a href="dws_04_0682.html">GLOBAL_REDO_STAT</a></li><li id="EN-US_TOPIC_0000001233761671__li1482726202810">SNAP_<a href="dws_04_0816.html">PGXC_REL_IOSTAT</a></li><li id="EN-US_TOPIC_0000001233761671__li8827116162818">SNAP_<a href="dws_04_0683.html">GLOBAL_REL_IOSTAT</a></li><li id="EN-US_TOPIC_0000001233761671__li48271565285">SNAP_<a href="dws_04_0827.html">PGXC_TOTAL_MEMORY_DETAIL</a></li><li id="EN-US_TOPIC_0000001233761671__li1782712617285">SNAP_<a href="dws_04_0811.html">PGXC_NODE_STAT_RESET_TIME</a></li><li id="EN-US_TOPIC_0000001233761671__li1073163272410">SNAP_<a href="dws_04_0825.html">PGXC_SQL_COUNT</a></li><li id="EN-US_TOPIC_0000001233761671__li197322325242">SNAP_<a href="dws_04_0962.html">GLOBAL_TABLE_STAT</a></li><li id="EN-US_TOPIC_0000001233761671__li873283212415">SNAP_<a href="dws_04_0963.html">GLOBAL_TABLE_CHANGE_STAT</a></li><li id="EN-US_TOPIC_0000001233761671__li3732113232417">SNAP_<a href="dws_04_0964.html">GLOBAL_COLUMN_TABLE_IO_STAT</a></li><li id="EN-US_TOPIC_0000001233761671__li13732932172414">SNAP_<a href="dws_04_0965.html">GLOBAL_ROW_TABLE_IO_STAT</a></li></ul>
<p id="EN-US_TOPIC_0000001233761671__p1078293105215">Except the new <strong id="EN-US_TOPIC_0000001233761671__b142701349191219">snapshot_id</strong> column (of the bigint type), the definitions of the other columns in these system catalogs are the same as those of the corresponding views, and the distribution key of each system catalog is <strong id="EN-US_TOPIC_0000001233761671__b1776617156173">snapshot_id</strong>.</p>
<p id="EN-US_TOPIC_0000001233761671__p3515103034911">For example, <strong id="EN-US_TOPIC_0000001233761671__b14373124210182">SNAP_PGXC_OS_RUN_INFO</strong> is used to record snapshots of the <strong id="EN-US_TOPIC_0000001233761671__b151215564185">PGXC_OS_RUN_INFO</strong> view. The <strong id="EN-US_TOPIC_0000001233761671__b1548150203115">snapshot_id</strong> column is new, and other columns are the same as those of the <a href="dws_04_0812.html">PGXC_OS_RUN_INFO</a> view.</p>
<div class="notice" id="EN-US_TOPIC_0000001233761671__note513241642816"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001233761671__ul1082896202810"><li id="EN-US_TOPIC_0000001233761671__li1282811632817">The schema of all above system catalogs is <strong id="EN-US_TOPIC_0000001233761671__b10906338113214">dbms_om</strong>.</li><li id="EN-US_TOPIC_0000001233761671__li5828146132812">Do not modify or delete these catalogs externally. Otherwise, functions related to view snapshots may not work properly.</li></ul>
</div></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0561.html">System Catalogs</a></div>
</div>
</div>