Vladimir Sobotka and Vladimir Tarasenko also scored for St. Louis, which outscored the Oilers 17-4 in winning all three games in the season series.
Sobotka, who returned to the lineup after missing 12 games with a knee injury, and Oshie each had two assists. Miller has stopped 134 of 145 shots in six games with St. Louis and has yet to lose in regulation.
David Perron and Mark Fraser scored for Edmonton. Perron spent six seasons in St. Louis and leads the Oilers with 25 goals.
Pietrangelo scored 42 seconds into the third period on a shot from the low slot. Sobotka set up the play by stealing the puck in the corner.
Schwartz added his 20th goal less than 4 minutes later, and Oshie converted on a 5-on-3 power play.
Watch the 'Blues Live' pregame and postgame shows before and after every St. Louis Blues game on FOX Sports Midwest.
Fraser tied it at 2 late in the second period with a shot from close range.
Tarasenko gave the Blues a 2-1 lead with a shot from the slot off a pass from Oshie.
Notes: St. Louis D Barret Jackman left the game briefly late in the second period after colliding with Jesse Joensuu. Jackman returned for the third period. ...The Oilers have used six goalies this season. ... Ten of the Blues' last 13 games have been decided by one goal. ... Edmonton C Sam Gagner had a five-game points streak snapped. ... The Oilers are 7-2-3 in their last 12 games, their best stretch since going 8-3 at the start of the 2011-12 season. ... Oshie's two assists give him a career-high 36 this season.