Microsoft
Software
Hardware
Network
Question : oracle 10g - Remove Duplicates from large table
I have the following table CUSTOMER_CONTACTS in customer contact mart database. Due to some wrong sqls 230 million records got inserted into this table by mistake for the last 2 yrs. This table doesnt have any primary key constraint as only all the fields in this table will combine to form a unique combination.
This table should supposed to have 7 - 10 million records only and i would like to remove the duplicates(only if all the fields in a record match exactly all the fields in another record).
Please let me know the efficient way for the removal of duplicates from this very large table. This is really urgent as the DB is running low on space and the data needs to be removed asap.
CREATE TABLE CUSTOMER_CONTACTS
(
EEE_ACTIVITY_ID VARCHAR2(100 BYTE),
ACTIVITY_TYPE_PK NUMBER,
COUNTRY VARCHAR2(4000 BYTE),
COUNTRY_TYPE NUMBER,
COUNTRY_ERROR NUMBER,
REGION VARCHAR2(4000 BYTE),
REGION_TYPE NUMBER,
REGION_ERROR NUMBER,
CONTACT_NAME VARCHAR2(300 BYTE),
STAKEHOLDER_NUM NUMBER,
SOURCE_ACTIVITY_DATE DATE,
INSERT_SEQUENCE NUMBER,
CUST_ACT_VALID VARCHAR2(1 CHAR)
)
TABLESPACE EZMADD;
Answer : oracle 10g - Remove Duplicates from large table
>>the newtable will only accept unique records, ...
Agreed. That is why I already proposed this exact solution in
http:#a32789356
Random Solutions
ASP.NET to use namespace or not
VPN Not working via Wifi
How to write and use classes in VB.net
Group on a Report "like"
CITRIX and ipad from outside LAN
Clearing free space in windows vista
case statement
flash spininning indicator
Microsoft Office Outlook Credential Loop
Users not receiving NDRs for incorrect external email address - Ex2010