Skip to content

Commit 7520984

Browse files
committed
stats on load
1 parent d33b143 commit 7520984

File tree

5 files changed

+1067
-0
lines changed

5 files changed

+1067
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This example demonstrates that statistics are maintained during direct path load.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
select table_name,num_rows,sample_size,stale_stats from user_tab_statistics where table_name = 'FACT1';
2+
3+
select table_name,column_name,low_value,high_value,sample_size,histogram from user_tab_col_statistics where table_name = 'FACT1';
4+
5+
SELECT '<=' || endpoint_value AS range,
6+
endpoint_value - (LAG(endpoint_value, 1, -1) OVER (ORDER BY endpoint_value)+1) + 1 AS vals_in_range,
7+
endpoint_number - LAG(endpoint_number, 1, 0) OVER (ORDER BY endpoint_value) AS frequency
8+
FROM user_tab_histograms
9+
WHERE table_name = 'FACT1'
10+
AND column_name = 'NUM1'
11+
ORDER BY endpoint_value;

0 commit comments

Comments
 (0)