The Red Sox won for the ninth time in 11 games and took two of three in this series between AL division leaders, although this was anything but a thing of beauty.
The teams combined to strand 21 runners and draw 16 walks. But the East-leading Red Sox came up with enough big hits to prevail in a game that lasted 3 hours, 57 minutes.
Pedroia had three hits, starting with a solo homer in the first. Ramirez connected leading off a two-run third against Erik Johnson (0-1).
Reliever Matt Barnes (2-1) worked 1 2/3 scoreless innings for the win.