Oracles are hypothetical constructs so it's a bit difficult to define concretely. They are used in thought experiments within mathematical proofs. From what I remember from my Comp Sci studies, they were sometimes used in negative proofs — you imagine you had an oracle who could magically tell you the correct answer, and this eventually leads to a logical contradiction