The decisive TD toss was the third of the day for Hogan, who finished 22-of-29 passing for 254 yards with two interceptions as the Cardinal (8-2, 6-2 Pac-12) won their fourth straight.
Ertz made nine catches in all for 75 yards.
Stepfan Taylor picked up 114 rushing yards and a score on 19 carries in the win.
Oregon State (7-2, 5-2), meanwhile, lost for the second time in three games as Cody Vaz was held to 226 yards and a touchdown on 23-of-38 efficiency.
Markus Wheaton led the Beavers' receivers with seven grabs for 91 yards and a TD.
Celebrity Breakups and divorces of 2014 [PHOTOS]