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
Outlook dictionary not found
Update table basxed on results of query
how to write to hfsplus drive with journeling from linux?
OpenVPN and Ubuntu 10.04: Question about crl
how to display character & in wpf
Case of the missing InBox Outlook 2007
sql server string manipulation
Windows 7 Okidata cannot print multiple copies
Can I put a 800MHz bus CPU in a 533MHz bus motherboard?
php