Marcell Ozuna and Jose Martinez hit two-run homers, rookie Jack Flaherty pitched into the seventh inning, and the St. Louis Cardinals beat the San Diego Padres 5-2 on Monday night.

Jedd Gyorko added a one-out home run in the eighth.

The Cardinals have won 13 of their last 18 games against the Padres, who have dropped 46 of their last 62 games in St. Louis.

Flaherty (3-2) pitched 6 1/3 innings, his second-longest outing this season. He allowed one run and three hits with a walk and six strikeouts. It was a bounce-back effort for Flaherty, who took an 11-3 loss in his previous start against Miami. Flaherty, 22, has pitched five or more innings in all eight starts this season.

Flaherty retired 14 consecutive batters before issuing a one-walk in the seventh. John Brebbia relieved and walked the bases loaded before getting two strikeouts to end the threat.

Bud Norris earned his 13th save in 15 chances.

Jordan Lyles (2-3) gave up 11 hits and four runs in six innings.

St. Louis went ahead 2-1 in the third when Martinez homered into the right-field bleachers after Tommy Pham led off with a single. Martinez has five homers over his last five games.

After Martinez singled for his third hit in the fifth, Ozuna followed with a drive into the left-field bleachers on an 0-2 breaking pitch left over the plate, giving the Cardinals a 4-1 advantage. It was Ozuna's fourth homer in his last nine games.

Cory Spangeberg hit a line-drive homer into the right-field seats with one out in the second, giving San Diego a 1-0 lead.

The Padres added a run in the eighth when Travis Jankowski hit a ground-rule double, took third on a wild pitch and scored on a ground out.

SIGNING

The Cardinals signed first-round draft pick (19th overall) Nolan Gorman, of Sandra Day O'Connor High School in Phoenix. After Gorman, 18, signed at Busch Stadium, he worked out with the club and took batting practice. The left-handed hitting third baseman will forgo the University of Arizona to play at Johnson City, the Cardinals' rookie level affiliate in the Appalachian League.

TRAINERS ROOM

Padres: C Austin Hedges (right elbow tendinitis) has been out since May 1. He took batting practice Monday at Class A Lake Elsinore, where he will begin his rehab assignment Tuesday.

Cardinals: SS Paul DeJong (left hand fracture) will be looked at by a doctor Thursday, Cardinals president John Mozeliak said. The Cardinals expect DeJong back at the end of June. Mozeliak said the Cardinals are hopeful to get RHP Greg Holland (right hip impingement) and RHP Matt Bowman (right hand finger blisters) back later this week.

UP NEXT

Padres: LHP Matt Strahm (1-2, 3.07) is projected to be the starter. In his two previous starts this season, Strahm did not earn a decision, going two innings in one game and 2 1/3 in the other.

Cardinals: RHP Miles Mikolas (7-1, 2.27) pitched 6 2/3 innings in a 2-1 win over his former team on May 10 in San Diego. He allowed one unearned run over seven innings in his last start against Miami. He is one of just three NL pitchers who to issue fewer walks (nine) than games started this season.