Quarterback John Mateer accounted for 181 yards of offense and Oklahoma held on to beat No. 19 Mississippi 24-17, their first win over Ole Miss in four meetings.