How to recover from a bad semester?

Could you name a few of the universities that does this? Does the first attempt show up on the student transcript or is it completely wiped off, with no history that the student had multiple attempts for a specific course?