File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
optimizer/histogram_history/partitioned Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ <h2 >List history information for histograms associated with a partitioned table</h2 >
2
+
3
+ This is a proof-of-concept script to list information on histogram changes over time for a given table. In particular, it reports:
4
+
5
+ - Changes to histogram bucket counts.
6
+ - When histograms were added and removed for each table column.
7
+
8
+ The main script is "h_phist.sql".
9
+
10
+ It requires a DBA account and you supply two parameters:
11
+
12
+ <pre >
13
+ SQL> @h_phist table_name user_name [If the user_name is 'USER', the current username will be assumed]
14
+ </pre >
15
+
16
+ For a worked example, see spool file example.lst and a test script example.sql
17
+
18
+ WARNING: The example.sql script will drop a table called SALES. Always use test databases.
19
+
20
+ DISCLAIMER:
21
+ <br />-- These scripts are provided for educational purposes only.
22
+ <br />-- They are NOT supported by Oracle World Wide Technical Support.
23
+ <br />-- The scripts have been tested and they appear to work as intended.
24
+ <br />-- You should always run scripts on a test instance.
25
+
You can’t perform that action at this time.
0 commit comments