Quote:
|
Originally Posted by JAYANTA_DATTA
Hi,
In your input queries, what command are you using: for example(IMPORT/LOAD etc). If you are using IMPORT then you can use the COMMITCOUNT clause to see the latest COMMIT point.
Thanks,
Jayanta Datta
New Delhi, INIDA
|
I am using:
INSERT INTO LM_CPU (ENDPOINT_LABEL, INSTANCE_KEY, NAME, STAT, METRICVALUE, DTTM_DATE, DTTM_TIME)
SELECT
DB2ADMIN.ENDPOINTS.ENDPOINT_LABEL,
LEFT(DB2ADMIN.INSTANCES.INSTANCE_KEY, LENGTH(DB2ADMIN.INSTANCES.INSTANCE_KEY)-1) AS INSTANCE_KEY,
DB2ADMIN.METRICS.NAME,
DB2ADMIN.METRICS.STAT,
DB2ADMIN.METRICSDATA.METRICVALUE,
DATE(DB2ADMIN.METRICSDATA.TIMEKEY_DTTM) AS DTTM_DATE,
TIME(DB2ADMIN.METRICSDATA.TIMEKEY_DTTM) AS DTTM_TIME
FROM
((DB2ADMIN.INSTANCES
INNER JOIN DB2ADMIN.ENDPOINTS ON DB2ADMIN.INSTANCES.EID = DB2ADMIN.ENDPOINTS.EID)
INNER JOIN DB2ADMIN.METRICS ON DB2ADMIN.ENDPOINTS.EID = DB2ADMIN.METRICS.EID)
INNER JOIN DB2ADMIN.METRICSDATA ON (DB2ADMIN.ENDPOINTS.EID = DB2ADMIN.METRICSDATA.EID)
AND (DB2ADMIN.INSTANCES.IID = DB2ADMIN.METRICSDATA.IID) AND (DB2ADMIN.METRICS.MID = DB2ADMIN.METRICSDATA.MID)
WHERE
(
(
YEARMONTH(DATE(TIMEKEY_DTTM)) = YEARMONTH(CURRENT DATE) -1
)
AND
(
(DB2ADMIN.INSTANCES.INSTANCE_KEY Like 'Processor%') OR (DB2ADMIN.INSTANCES.INSTANCE_KEY Like '%System%')
)
)
Today, I created a VIEW using the above... from the first Select statement down. I then ran an export on that view and it was still running after 6.5hrs. Normally, the entire SQL statement would take less than 1hr to complete. With the Control Center open, I received a memory error msg and the application (my Control Center) was terminated. This forced the export to stop. I'm now trying to IMPORT the IXF File into the LM_CPU table.
I'm beginning to think that one or more of the tables is missing one or more records that is forcing the query to loop. Problem here is I've run the ReOrg on all the data tables which came back successful and don't know how I would prove my thought right/wrong.