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
How do I load form using the same code as 'After_Update' event from searchforrecords macro?
DVD +R vs DVD -R, CD +R vs CD -R
Install SSL Certificate
foxpro formatting text problem
How to format Process.StartInfo.Argument
s with spaces in the arguments?
ASP.Net Menu Problem on IE 8
Raise domain function level when there are 2 ADs
WNLB between to exchange 2010 CAS Servers
Jquery addClass
Product aspx datasource