|
| 1 | + |
| 2 | + |
| 3 | +First, create a user called STEST by adapting the the user.sql script to use an appropriate tablespace (which needs to have about 1.5GB free). |
| 4 | + |
| 5 | +Two 'connect' scripts are available: |
| 6 | +cadm.sql <-- Connects to SYSDBA account |
| 7 | +cusr.sql <-- Connects to the STEST user account |
| 8 | +You can edit these to suit you system, particularly if you are using a multitenant environment. |
| 9 | + |
| 10 | +Create tables: |
| 11 | +@tabs.sql |
| 12 | + |
| 13 | +Gather database stats to start with a 'clean slate': |
| 14 | +@gather.sql |
| 15 | + |
| 16 | +Make RM plan: |
| 17 | +@make_plan.sql |
| 18 | +Note that SCOPE=MEMORY so the plan change is temporary. |
| 19 | +If necessary, you can drop the plan with drop_plan.sql |
| 20 | + |
| 21 | +If you want to use the DEFAULT_MAINTENANCE_PLAN instead, |
| 22 | +run modify_plan.sql in the 'DEFAULT' directory. |
| 23 | + |
| 24 | +To use AUTO_DEGREE: @auto.sql |
| 25 | +To use serial execution: @noauto.sql |
| 26 | + |
| 27 | +To user CONCURRENT: @conc.sql |
| 28 | +To disable CONCURRENT: @noconc.sql |
| 29 | + |
| 30 | +Prepare the test by dripping stats on the test tables: |
| 31 | +@drop_stats.sql |
| 32 | + |
| 33 | +Initiate stats gathering by creating a 20min batch window: |
| 34 | +@run_gather.sql |
| 35 | +If you want to use DEFAULT_MAINTENANCE_PLAN, then run 'run_gather.sql' in |
| 36 | +the 'DEFAULT' subdirectory instead. |
| 37 | + |
| 38 | +I have put the monitoring queries I use in util.sql |
| 39 | +Take a look at scheduler information: get_status.sql |
| 40 | +Take a look at stale objects: stale.sql |
| 41 | + |
| 42 | +If you want to stop the test: drop_window.sql [stop.sql is an alternative] |
| 43 | + |
| 44 | +======================== |
| 45 | + |
| 46 | +You can run a manual stats gathering with 'manual.sql' |
0 commit comments