huytonscouser
Programmer
I have a report that returns some 700k rows, but takes > 8 hours to run. It uses oracle 10g tables linked to a ms access table
without the ms access table report returns data in about 15-20 mins, but when linked to ms access > 8 hrs.
i am using 12.3.0.601 cr
This is the sql generated.
StorageScope- Phoenix
SELECT "SRMDEVICEALLOCATION"."HOSTORHBAALIAS", "SRMARRAYDEVICE"."ISSHARED", "SRMARRAYDEVICE"."ARRAYDEVICENAME", "SRMARRAYDEVICE"."ARRAYDEVTOTAL", "SRMARRAYDEVICE"."METADEVICETOTAL", "SRMARRAYDEVICE"."ISMETADEVICE", "SRMARRAYDEVICE"."SHAREDOBJECTLIST", "SRMARRAYDISK"."DISKRPM", "SRMARRAYDEVICE"."ARRAYKEY"
FROM ("EMCSTS"."SRMARRAYDISK" "SRMARRAYDISK" INNER JOIN "EMCSTS"."SRMDEVTODISK" "SRMDEVTODISK" ON "SRMARRAYDISK"."ARRAYDISKKEY"="SRMDEVTODISK"."ARRAYDISKKEY") INNER JOIN ("EMCSTS"."SRMDEVICEALLOCATION" "SRMDEVICEALLOCATION" INNER JOIN "EMCSTS"."SRMARRAYDEVICE" "SRMARRAYDEVICE" ON "SRMDEVICEALLOCATION"."ARRAYDEVICEKEY"="SRMARRAYDEVICE"."ARRAYDEVICEKEY") ON "SRMDEVTODISK"."ARRAYDEVICEKEY"="SRMDEVICEALLOCATION"."ARRAYDEVICEKEY"
EXTERNAL JOIN SRMDEVICEALLOCATION.HOSTORHBAALIAS={?WWN FOR PHOENIX: WWNNODUPS.DE_full_host_wwn_new_csv_50060482d52dcbc2} AND SRMARRAYDEVICE.ARRAYKEY={?StorageScope- Phoenix: SRMARRAY.ARRAYKEY}
WWN FOR PHOENIX
SELECT `WWNNODUPS`.`DE_full_host_wwn_new_csv_APDWD597`, `WWNNODUPS`.`DE_full_host_wwn_new_csv_50060482d52dcbc2`
FROM `WWN092911` `WWNNODUPS`
WHERE `WWNNODUPS`.`DE_full_host_wwn_new_csv_50060482d52dcbc2`={?StorageScope- Phoenix: SRMDEVICEALLOCATION.HOSTORHBAALIAS}
StorageScope- Phoenix
SELECT "SRMARRAY"."ARRAYALIAS", "SRMARRAY"."ARRAYTYPE", "SRMARRAY"."ARRAYSERIALNUMBER", "SRMARRAY"."ARRAYMODEL", "SRMARRAY"."ARRAYKEY"
FROM "EMCSTS"."SRMARRAY" "SRMARRAY"
WHERE "SRMARRAY"."ARRAYKEY"={?StorageScope- Phoenix: SRMARRAYDEVICE.ARRAYKEY}
This is the linking order :-
SRMDEVICEALLOCATION.ARRAYDEVICEKEY --> SRMARRAYDEVICE.ARRAYDEVICEKEY
SRMARRAYDISK.ARRAYDISKKEY --> SRMDEVTODISK.ARRAYDISKKEY
SRMDEVTODISK.ARRAYDEVICEKEY --> SRMDEVICEALLOCATION.ARRAYDEVICEKEY
SRMDEVICEALLOCATION.HOSTORHBAALIAS --> WWNNODUPS.DE_full_host_wwn_new_csv_50060482d52dcbc2
SRMARRAYDEVICE.ARRAYKEY --> SRMARRAY.ARRAYKEY
link option for SRMDEVICEALLOCATION.HOSTORHBAALIAS --> WWNNODUPS.DE_full_host_wwn_new_csv_50060482d52dcbc2
is left outer join
I am using the ms access table(WWNNODUPS) as a lookup table.
WWNNODUPS is setup in odbc admin as a data source using the ms
access .mdb DRIVER
Thanks in advance.
without the ms access table report returns data in about 15-20 mins, but when linked to ms access > 8 hrs.
i am using 12.3.0.601 cr
This is the sql generated.
StorageScope- Phoenix
SELECT "SRMDEVICEALLOCATION"."HOSTORHBAALIAS", "SRMARRAYDEVICE"."ISSHARED", "SRMARRAYDEVICE"."ARRAYDEVICENAME", "SRMARRAYDEVICE"."ARRAYDEVTOTAL", "SRMARRAYDEVICE"."METADEVICETOTAL", "SRMARRAYDEVICE"."ISMETADEVICE", "SRMARRAYDEVICE"."SHAREDOBJECTLIST", "SRMARRAYDISK"."DISKRPM", "SRMARRAYDEVICE"."ARRAYKEY"
FROM ("EMCSTS"."SRMARRAYDISK" "SRMARRAYDISK" INNER JOIN "EMCSTS"."SRMDEVTODISK" "SRMDEVTODISK" ON "SRMARRAYDISK"."ARRAYDISKKEY"="SRMDEVTODISK"."ARRAYDISKKEY") INNER JOIN ("EMCSTS"."SRMDEVICEALLOCATION" "SRMDEVICEALLOCATION" INNER JOIN "EMCSTS"."SRMARRAYDEVICE" "SRMARRAYDEVICE" ON "SRMDEVICEALLOCATION"."ARRAYDEVICEKEY"="SRMARRAYDEVICE"."ARRAYDEVICEKEY") ON "SRMDEVTODISK"."ARRAYDEVICEKEY"="SRMDEVICEALLOCATION"."ARRAYDEVICEKEY"
EXTERNAL JOIN SRMDEVICEALLOCATION.HOSTORHBAALIAS={?WWN FOR PHOENIX: WWNNODUPS.DE_full_host_wwn_new_csv_50060482d52dcbc2} AND SRMARRAYDEVICE.ARRAYKEY={?StorageScope- Phoenix: SRMARRAY.ARRAYKEY}
WWN FOR PHOENIX
SELECT `WWNNODUPS`.`DE_full_host_wwn_new_csv_APDWD597`, `WWNNODUPS`.`DE_full_host_wwn_new_csv_50060482d52dcbc2`
FROM `WWN092911` `WWNNODUPS`
WHERE `WWNNODUPS`.`DE_full_host_wwn_new_csv_50060482d52dcbc2`={?StorageScope- Phoenix: SRMDEVICEALLOCATION.HOSTORHBAALIAS}
StorageScope- Phoenix
SELECT "SRMARRAY"."ARRAYALIAS", "SRMARRAY"."ARRAYTYPE", "SRMARRAY"."ARRAYSERIALNUMBER", "SRMARRAY"."ARRAYMODEL", "SRMARRAY"."ARRAYKEY"
FROM "EMCSTS"."SRMARRAY" "SRMARRAY"
WHERE "SRMARRAY"."ARRAYKEY"={?StorageScope- Phoenix: SRMARRAYDEVICE.ARRAYKEY}
This is the linking order :-
SRMDEVICEALLOCATION.ARRAYDEVICEKEY --> SRMARRAYDEVICE.ARRAYDEVICEKEY
SRMARRAYDISK.ARRAYDISKKEY --> SRMDEVTODISK.ARRAYDISKKEY
SRMDEVTODISK.ARRAYDEVICEKEY --> SRMDEVICEALLOCATION.ARRAYDEVICEKEY
SRMDEVICEALLOCATION.HOSTORHBAALIAS --> WWNNODUPS.DE_full_host_wwn_new_csv_50060482d52dcbc2
SRMARRAYDEVICE.ARRAYKEY --> SRMARRAY.ARRAYKEY
link option for SRMDEVICEALLOCATION.HOSTORHBAALIAS --> WWNNODUPS.DE_full_host_wwn_new_csv_50060482d52dcbc2
is left outer join
I am using the ms access table(WWNNODUPS) as a lookup table.
WWNNODUPS is setup in odbc admin as a data source using the ms
access .mdb DRIVER
Thanks in advance.