The calculated distance (air line) between Oberviechtach and Frankfurt am Main is approximately 173 miles respectively 278 kilometers.
By car or train, the actual journey to Frankfurt am Main is certainly longer, as only the direct route (as the crow flies) between Oberviechtach and Frankfurt am Main has been calculated here.
Air line (approximately)
278 kilometers
150 nautical miles