Hi guys,
I have an oracle8i 8.1.7.3.0 database, the one table CEPRINT has a duplicate primary key in it, causing the validate structure cascade cascade command to fall over with a ORA-1499, I need to find and delete the duplicate keys, but when I run the following select statement :
"select a.rowid, a.* from CEPRINT a, CEPRINT b where a.MANDT=b.MANDT and a.APPLCLASS=b.APPLCLASS and a.SUBCLASS=b.SUBCLASS and a.TABNAME=b.TABNAME and a.FORM=b.FORM and a.SUBNR=b.SUBNR and a.ELNR1=b.ELNR1and a.ELNR2=b.ELNR2 and a.PRART=b.PRART and a.rowid!=b.rowid;"
I get a ORA-1467 Sort key too long, the select statement has only the primary key fields in, so as far as I can see I can't change the SQL without making it useless, so is there anyway I can make this work? Or is there a another method of getting the rowid's of duplicate keys?
Any help or suggestions appreciated!
Thanks,
MK83
I have an oracle8i 8.1.7.3.0 database, the one table CEPRINT has a duplicate primary key in it, causing the validate structure cascade cascade command to fall over with a ORA-1499, I need to find and delete the duplicate keys, but when I run the following select statement :
"select a.rowid, a.* from CEPRINT a, CEPRINT b where a.MANDT=b.MANDT and a.APPLCLASS=b.APPLCLASS and a.SUBCLASS=b.SUBCLASS and a.TABNAME=b.TABNAME and a.FORM=b.FORM and a.SUBNR=b.SUBNR and a.ELNR1=b.ELNR1and a.ELNR2=b.ELNR2 and a.PRART=b.PRART and a.rowid!=b.rowid;"
I get a ORA-1467 Sort key too long, the select statement has only the primary key fields in, so as far as I can see I can't change the SQL without making it useless, so is there anyway I can make this work? Or is there a another method of getting the rowid's of duplicate keys?
Any help or suggestions appreciated!
Thanks,
MK83