Hi Phil,
I think I need more information about your scenario. Optim certainly will be able to archive data from such tables, based on some criteria. There is no need for an Optim index for that. Now, the lack of a unique index will affect processing of such archive performance-wise but not functionally.
The two scenarios, which you may be worried about, are (selective) RESTORE and DELETE. And only if there are duplicate instances of the same row (contents) in the table.
RESTORE, with INSERT or UPDATE, would not be able to properly determine the existence of all, possibly duplicate, instances of a row. And the results would not be what you wanted. If you were to restore the rows previously deleted, a LOAD would be a better choice because it would not stumble upon potentially duplicate rows already inserted in to the table. If there were no duplicates, there would be no problem.
A DELETE, irrespective of duplicates, would work OK. With duplicates, it would possibly give you false "missing row" status because all matching rows would be deleted with the first row of the duplicates set.
------------------------------
Greg Czaja
Optim for z/OS Development
Unicom Systems Inc.
------------------------------
Original Message:
Sent: 08-28-2018 11:28
From: Phil Neff
Subject: Using optim to archive DB2 ZOS tables without unique index
How can I use Optim to archive mainframe DB2 tables that do not have a unique index on them. These tables have duplicate rows on them so there is not a way to create an internal Optim unique index even if we add every column in the table to the index.
------------------------------
Phil Neff
------------------------------
#InfoSphereOptim
#Optim