The calculated distance (air line) between Edinburgh and Oldham is approximately 172 miles respectively 277 kilometers.
By car or train, the actual journey to Oldham is certainly longer, as only the direct route (as the crow flies) between Edinburgh and Oldham has been calculated here.