Retaining rings for shafts without groove