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
Set My Site to be Viewed in IE7 Compatibility Mode
In Ruby on Rails, how do I create links to other views that will display the correct results from a related table
How to disable multitasking on iOS4 iPhone 3G ?
Great Plains-Send Report via EMail as a PDF
Crstal Report 2008- What source can I export report so I can keep drill down?
getting text from a listbox in javascripts
Access 2007 report by work shift
Check syntax of SQL Select statement in access vba code
ASP/VB Single Quote Replacement
Call SOURCEDIR executable from embedded VBScript custom action