EDMONTON, Alberta -- After yet another disappointing season, the Edmonton Oilers were hoping to give their fans something to cheer about in their final home game.
Ryan Getzlaf spoiled those plans.
An Edmonton shot caromed off the boards and came all the way down the ice for a Getzlaf breakaway, and he beat Edmonton goalie Devan Dubnyk through the legs 1:12 into extra time.
Andrew Cogliano and Bobby Ryan also scored for the Ducks who ended a three-game winless streak and moved up to 23rd in the NHL with one game to play this season.
"It was actually a pretty bad game for us," Cogliano said. "The first period, we were badly outshot. It was ugly, but we found a way to win. That's good because you want to finish the year off well and have something to look forward to next year."
Ducks goalie Jeff Deslauriers made 24 stops to pick up the victory in his first start against the team which originally drafted him.
"I was pretty happy to get this start against Edmonton," he said. "It was great to get the win here."
Sam Gagner and Jordan Eberle scored for the Oilers, who sit second to last in the NHL and finished off the season 18-17-6 on home ice this season.
"At the end of the day we had a winning record at home this season, which is a positive," Eberle said, comparing their home record to a 13-22-6 campaign at Rexall Place in 2010-11. "Obviously we had some games here that would like to take back. I thought we started the season well at home and finished it fairly well. We just need to get that consistency. In order to be a contender next year and in years to follow, that consistency will be important."
Oilers coach Tom Renney said the breakdown on the overtime goal is the kind of thing the team needs to eliminate next season.
"Until we get deeper and have more firepower and some different ways to win, we are going to have to play smart, really intelligent hockey that doesn't give the opponent too much and gives us a chance to sting you with a quick strike," he said. "We'll get there and it will be fun to watch when we do. But you aren't going to win in this game if you don't defend properly and pay attention to detail."
Anaheim had a great chance four minutes in as it looked like Ryan was going to have a clear breakaway, but Dubnyk hustled way out of the net to make a diving play to strip him of the puck.
Edmonton's best chance in the scoreless first period came halfway through as Gagner dropped a pass back to Eric Belanger, but he shot a puck wide of the open net.
Edmonton had 11 shots on Ducks goalie Jeff Deslauriers, while Anaheim only had two shots on Dubnyk through 20 minutes.
The Oilers finally broke the scoreless deadlock midway through the second period. Jeff Petry's shot rang off the post but came back to Gagner, who scored his 18th of the season past a flailing Deslauriers.
The Ducks came back with two quick goals late in the second period to surge ahead 2-1.
With three minutes to play in the middle period, Cogliano came off the boards and sent a quick snap shot from the right faceoff dot past Dubnyk.
Only 36 seconds later, Ryan came away with a loose puck on the doorstep and lifted it over the Oilers starter for his 29th goal of the season.
Edmonton tied it with six minutes remaining in the third period. Ryan Nugent-Hopkins fed a pass to Eberle and he deked out Deslauriers before flipping in a backhander for his 34th of the year, eventually sending the game to overtime.
Both teams will conclude their seasons on Saturday -- the Oilers travel to Vancouver to play the Canucks and the Ducks are in Calgary.
It was the final of four meetings between the two teams and second in a five-day span. The Ducks won the first two before Edmonton came away with a 2-1 win on Sunday in Anaheim... The Oilers and Ducks have both long been out of the playoff picture this season. Edmonton will miss the playoffs for the sixth consecutive year since losing Game 7 of the 2006 Stanley Cup Finals. Anaheim will miss the postseason for the second time in the past three years ... Ducks F Teemu Selanne entered the game with seven goals and seven assists during a nine-game point streak against Edmonton.