File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
optimizer/histogram_history Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 11<h2 >List history information for histograms associated with a table</h2 >
22
3- This is a proof-of-concept script to list information on histogram changes over time for a chosen table. In particular, it reports:
3+ This is a proof-of-concept script to list information on histogram changes over time for a given table. In particular, it reports:
44
5- - Changes to histogram bucket count .
6- - When histograms were added and removed for each column.
5+ - Changes to histogram bucket counts .
6+ - When histograms were added and removed for each table column.
77
8- The main script is "h_hist.sql". It requires a DBA account and you supply two parameters:
8+ The main script is "h_hist.sql".
9+
10+ It requires a DBA account and you supply two parameters:
911
1012<pre >
11- SQL> @h_hist table_name user_name [I the user_name is 'USER', the current username will be assumed]
13+ SQL> @h_hist table_name user_name [If the user_name is 'USER', the current username will be assumed]
1214</pre >
1315
14- For a worked example, see example.lst and example.sql
16+ For a worked example, see spool file example.lst and a test script example.sql
1517
16- WARNING: example.sql will issues a drop command for a table called SALES
18+ The WARNING: The example.sql script will drop a table called SALES. Always use test databases.
1719
1820DISCLAIMER:
1921 <br />-- These scripts are provided for educational purposes only.
You can’t perform that action at this time.
0 commit comments