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
Compaq Web management vulnerability in HP ProLiant ML350 G3 running Small Business Server 2003
Access user prompts display off
Getting a console warning when reading a POST response? (HttpURLConnection)
Help with SCSUDO to root access
exchange 2003, email box count
Send Outlook Contact Automatic Update
How to fix corruption of the innodb tables?
What is the fastest IDE hard drive available?
How do I index fields in an Access database?
PHP: Find and Replace only 1st occurance