HP Neoview SQL Reference Manual page 218

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

maintain table t1_090, all, display;
Displays all tasks that are done on table t1_090 but shows the actual execution:
maintain table t1_090, all;
Refreshes mvgroup MVG_090:
maintain mvgroup MVG_090, refresh;
Reorganizes index T1_090_2:
maintain index T1_090_2, reorg;
Shows the internal SQL statements that will be used for each task:
maintain table t1_090, all, display detail;
Disables all tasks that are allowed to be disabled (reorg table, index, update statistics):
maintain table t1_090, all, disable;
The status will show up as Disabled for the tasks that were disabled by the previous
command.
maintain table t1_090, all, display;
Enables all tasks:
maintain table t1_090, all, enable;
The display shows the status as Scheduled (enabled):
maintain table t1_090, all, display;
Disables update statistics on the specified table:
maintain table t1_090, update statistics, disable;
Enables update statistics on the specified table:
maintain table t1_090, update statistics, enable;
Examples of MAINTAIN invoked with optional task options:
maintain table t1, reorg ', rate 100';
Task: REORG_TABLE
Task: REORG_TABLE
--SQL operation complete.
maintain table t1, reorg ', rate 100', display detail;
Task: REORG_TABLE
100, no output;
This example shows a reorg of multiple tables using the MAINTAIN command. The example
reorganizes three tables in one command:
MAINTAIN TABLES (t1,t2,t3), REORG;
Task: REORG_TABLE
Task: REORG_TABLE
Task: REORG_TABLE
Task: REORG_TABLE
--- SQL operation complete.
Detailed Example With Reorg Statistics
>>maintain tables (t1,t2), reorg, return detail output;
Task: REORG_TABLE
Task: REORG_TABLE
Reorg Statistics:
=================
218
SQL Utilities
STATUS: Started
Object: CAT.SCH.T1
STATUS: Ended
ET: 00:00:00.031
STATUS: scheduled
Command: REORG.TABLE.CAT.SCH.T1 , rate
Status: Started
Status: Started
Status: Started
Status: Ended
Status: Started
Status: Started
Object: CAT.SCH.T1
Object: CAT.SCH.T2
Object: CAT.SCH.T3
ET: 00:01:00.884
Object: CAT.SCH.T1
Object: CAT.SCH.T2

Advertisement

Table of Contents
loading

Table of Contents