This study investigates the unsteady, two-dimensional flow and heat transfer past a rotationally oscillating circular cylinder in linear shear flow. A higher order compact (HOC) finite difference scheme is used to solve the governing Navier–Stokes equations coupled with the energy equation on a nonuniform grid in polar coordinates. The hydrodynamic and thermal features of the flow are mainly influenced by the shear rate (K), Reynolds number (Re), Prandtl number (Pr), and the cylinder oscillation parameters, i.e., oscillation amplitude (αm), the frequency ratio (fr). The simulations are performed for , and . The numerical scheme is validated with the existing literature studies. Partial and full vortex suppression is observed for certain values of shear parameter K. The connection between heat transfer and vortex shedding phenomenon is examined where a pronounced increase in the heat transfer is observed for certain values of oscillation parameter, relative to the nonshear flow case.