Shorten names to 30 because of Oracles limitation

I have converted a data model from SQL Server to Oracle and I’m now having to long names for constraints (primary and foreign keys) in Oracle. Now I want to change the names automatically.