Old English þær "in or at that place, so far as, provided that, in that respect," from Proto-Germanic *thær (source also of Old Saxon thar, Old Frisian ther, Middle Low German dar, Middle Dutch daer, Dutch daar, Old High German dar, German da, Gothic þar, Old Norse þar), from PIE *tar- "there" (source also of Sanskrit tar-hi "then"), from root *to- (see the) + adverbial suffix -r.
Interjectional use is recorded from 1530s, used variously to emphasize certainty, encouragement, or consolation. To have been there "had previous experience of some activity" is recorded from 1877.
upon prep.
early 12c., from Old English uppan (prep.) "on, upon, up to, against," from up (adv.) + on (prep.); probably influenced by Scandinavian sources such as Old Norse upp a.
On, Upon. These words are in many uses identical in force, but upon is by origin (up + on) and in use more distinctly expressive of motion to the object from above or from the side. On has the same force, but is so widely used in other ways, and so often expresses mere rest, that it is felt by careful writers to be inadequate to the uses for which upon is preferred. [Century Dictionary, 1895]