"Oh well" is an interjection used to express acquiescence or resignation towards an undesirable event which has occurred (maybe this isn't the most precise definition, but I think most native English speakers know what it means.).
What is the history of this phrase?
A remark: it would sound more logical for it to be "all well" rather than "oh well", because the former would reaffirm that all is still well in spite of whatever bad has occurred.