Following is a list of the SQL status tables.
|
Table Name and Location |
|---|
|
SQL_STATUS (SQS) |
The SQL virtual tables are now in the Dynamic System Tables database. To save the rows in these tables, you can use the searched form of the INSERT statement to insert them into a table of your own. For example, to obtain a profile of SQL activity during the day, you could define a table with the same columns as the SQL_STATUS table and execute the following statement every 30 minutes:
INSERT INTO MY_AUTHID.SQL_STATUS SELECT * FROM SYSADM.SQL_STATUS;
You can access the SQL status tables as you would any other SQL-accessible table. For example, you can use DDOL and DQRY for on demand queries and develop your own customized monitoring tools for ongoing analysis.
Here are examples of other possible uses of the SQL status tables.
SELECT TTM_BLKS_ALLOC - TTM_BLKS_IN_USE FROM SYSADM.SQL_STATUS;
SELECT * FROM SYSADM.SQL_STATUS_CURRENT WHERE ACCESSOR_ID = :USER_SIGNON;
SELECT * FROM SYSADM.SQL_STATUS_PLAN WHERE PLAN_AUTHID = :AUTHID AND PLAN_NAME = :PLAN;
SELECT * FROM SYSADM.SQL_STATUS_URT WHERE DBID = :BASE AND DB_TBL_NAME = :TBL;
|
Copyright © 2014 CA.
All rights reserved.
|
|