Davis’s major league leading 46th home run helped Baltimore beat the Tampa Bay Rays, 4-2, on Wednesday night and enabled the Orioles to avoid a three-game sweep.

Davis connected against Jeremy Hellickson (10-7) leading off the fifth inning to put Baltimore in front 4-2. It was the 74th homer in the 22-year history of Camden Yards to land on Eutaw Street, and one of the quickest to arrive there.

Get Sports Headlines in your inbox:

The Globe's most recent sports headlines delivered to your inbox every morning.

‘‘It means we put up one run on the board and we were able to get the win. That’s the biggest thing,’’ Davis said. ‘‘Obviously team goals come before individual goals. I'm happy to be swinging the bat well, I'm even happier to get the win.’’

Wei-Yin Chen (7-6) gave up two runs and six hits in seven innings to help Baltimore win for only the third time in nine games.

‘‘Big win,’’ said catcher Matt Wieters, who sealed the victory with a brilliant throw in the ninth inning. ‘‘You like to get a series, but the only thing we could do tonight was win one game. We came out here and played well.’’

Chen was backed by three double plays, two of which he started.

‘‘How many athletic plays did he make tonight that pitchers don’t make?’’ manager Buck Showalter said. ‘‘It’s one thing to catch it, it’s another thing to make that accurate throw.’’

Darren O'Day worked a perfect eighth and gave up a leadoff single to Wil Myers in the ninth before Brian Matusz walked pinch-hitter James Loney. Tommy Hunter then got two straight outs, and with runners on the corners, Kelly Johnson was thrown out by Wieters trying to steal second.

The Orioles used a two-run first inning to take their first lead in the series.

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.

Thanks & Welcome to Globe.com

You now have unlimited access for the next two weeks.

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.