Updated

Oliver Ekman-Larsson scored with 0.3 seconds left in overtime, and the Arizona Coyotes beat the Edmonton Oilers 2-1 Tuesday night to end a team-record nine-game home losing streak.

The game appeared to be headed to a shootout, but Ekman-Larsson took a feed from Sam Gagner and beat Ben Scrivens just before the horn sounded. Ekman-Larsson was swarmed by teammates after helping the Coyotes end a five-game losing streak overall.

Brandon McMillan scored his first goal of the season and Arizona set a franchise record with 27 shots in the second period to extend its points streak to 17 games against Edmonton, a franchise mark against one team.

Devan Dubnyk stopped 30 shots for the Coyotes against his former team.

Ryan Nugent-Hopkins scored and Scrivens stopped 42 shots for the Oilers in their first game since coach Dallas Eakins was fired on Monday. Edmonton has lost 16 of 17.

Both teams were looking to gain a little traction in a season that has quickly spiraled downhill.

Edmonton entered last in the Western Conference with 19 points — matching Carolina for worst in the NHL — and fired Eakins on Monday after notching one win since Nov. 9. General manager Craig MacTavish was behind the bench against Arizona and will stay there until Todd Nelson is promoted to interim coach from Oklahoma City of the AHL.

Arizona has been only marginally better, just ahead of Edmonton at the bottom of the West standings after one of the worst stretches in team history.

The Oilers jumped on the Coyotes early, scoring in the first period when Nugent-Hopkins sent a shot through the legs of Arizona defenseman Zbynek Michalek that beat Dubnyk stick side.

McMillan tied it midway through the second period, beating Scrivens from the right circle with a shot off the crossbar after Joe Vitale found him trailing the rush.

The Coyotes kept firing shots throughout the period, breaking their mark of 25 set against Calgary in 1982.

Edmonton had just six shots in the period, but came out of it tied with Arizona thanks to Scrivens. He made some tough saves on Arizona's power play, a couple from in close, and denied Ekman-Larsson with a spectacular stop, stacking his pads for the block while lying on his side.

Then the Coyotes needed more than 13 minutes to get their first shot of the third.

Edmonton had 13 in the period, but couldn't get anything past Dubnyk.

NOTES: Coyotes LW Lauri Korpikoski did not play due a lower-body injury, and D Michael Stone did not return after sustaining an upper-body injury on a big hit in the first period. ... Oilers LW David Perron played his 450th career game. ... Arizona C Shane Doan played career game No. 1,346, tying Mats Sundin for 47th on the NHL's all-time list.