You can use a sequence to create a new primary key and then add a unique index with novalidate to stop anymore duplicate values from being entered. You can lso combine the field with the duplicates with another field and make a concatenated key based on both fields.