GLENDALE, Ariz. -- The hollering in the post-game locker room sounded as if Oakland had just won a playoff game or something.
That's how good victory finally felt for the Raiders.
The Raiders (2-8), who had lost five straight, matched the record of the Cardinals.
"It's fun to win again," said Jon Gruden, whose return to coaching this season after a decade away has been difficult, to say the least. "With the injuries and the lack of practice, I really credit our guys for finishing the football game and finding a way to win."
Derek Carr threw for two touchdowns and had completions of 32 and 20 yards on the final drive that led to Carlson's winning kick.
"I was just ready," Carlson said. "I stayed ready those last two drives because I didn't know when it was going to happen. I had a feeling it was going to happen eventually. ... It's awesome."
Carlson also had field goals of 49 and 21 yards in the second half after the teams were tied 14-14 at the break.
"We all believed. There was never a doubt," Carr said. "There's been times when we believed and we didn't win. It was the same feeling you need to have, same mentality, same look in everybody's eye. It was a good win."
Arizona rookie Josh Rosen threw for three touchdowns, two to Larry Fitzgerald, but was intercepted twice. Both picks led to first-half touchdowns for Oakland. David Johnson rushed for a season-best 137 yards, including a 53-yarder that set up Rosen's 5-yard TD pass to Fitzgerald that gave the Cardinals a 21-20 lead with 5:02 to play.
Later, Johnson had a 57-yard touchdown run called back by a holding penalty against Ricky Seals-Jones and also had a key drop. That possession also featured an unnecessary roughness penalty on tight end Jermaine Gresham that helped force the punt to Oakland.
"It was just a dumb play by me," Gresham said. "I turned around and saw my guy (Fitzgerald) on the ground. It was a stupid thing. ... I cost us the game."
Carr completed 19 of 31 passes for 192 yards.
Rosen was 9 of 20 for 136 yards, but three of the completions went for scores: 18 and 5 yards to Fitzgerald and a 59-yard pass play to fellow rookie Christian Kirk. Fitzgerald has 114 career TD catches, seventh most in NFL history.
"This one is going to definitely sting," Johnson said. "You know, the Raiders, everyone knows they're trading guys away, they're doing everything to try to rebuild. This one is a tough one."
Or, as Rosen put it, "No disrespect to the Raiders but we feel we are the better football team. That's what makes this so frustrating."
The day started badly for the Cardinals and ended that way.
Arizona took the subsequent kickoff and tied it with a nine-play, 64-yard drive. Rosen threw 18 yards to Fitzgerald for the touchdown.
The Cardinals took the lead when Rosen, changing the play at the line of scrimmage, threw short to Kirk. Kirk, on his 22nd birthday, shook loose from a would-be tackler and raced to the end zone, a 59-yard play to make it 14-7 late in the first quarter.
Carlson's 49-yard field goal on Oakland's first possession of the second half gave the Raiders the lead. Later in the quarter, the Raiders used 7:39 in a drive that stalled at the 1-yard line and Carlson's 21-yard field goal made it 20-14.
Both of Arizona's wins came against San Francisco. The 49ers, Cardinals and Raiders are now tied for the worst record in the NFL.
Oakland drew a 5-yard penalty for calling consecutive timeouts in the second quarter. It moved what would have been a third-and-2 situation to third-and-7 and the Raiders failed to convert. Coach Jon Gruden was demonstrably upset with Carr afterward on the sideline.
Raiders: LaFell left in the second half with an Achilles tendon injury. Cornerback Leon Hall hurt his back in the first half.
Cardinals: Linebacker Deone Bucannon left with a chest injury in the second half.
Raiders: at Baltimore next Sunday.
Cardinals: at the Los Angeles Chargers next Sunday.
More AP NFL: https://apnews.com/NFL and https://twitter.com/AP-NFL
Baker: 'Myles can gain respect back by handling it like a man'
Baker Mayfield says Myles Garrett knows what he did was wrong and he has to own up to it.
Rudolph: Garrett's helmet hit 'cowardly, bush league'
Mason Rudolph responds to Myles Garrett clubbing him in the head with his own helmet, calling the move cowardly, but says he won't back down from a bully.
Baker throws 2 TDs and runs for another vs. Steelers
Baker Mayfield runs for the Browns' first touchdown of the game and throws for two more as they top the Steelers 21-7.
Woody: Garrett striking Rudolph was 'assault on the football field'
Damien Woody and Scott Van Pelt weigh in on Myles Garrett striking Mason Rudolph with his helmet at the conclusion of the Steelers-Browns game.
Garrett: 'I lost my cool, I regret it'
Myles Garrett addresses hitting Mason Rudolph in the head with a helmet, saying the final eight seconds doesn't overshadow the Browns' victory.
Kitchens: 'I never condoned fighting'
Freddie Kitchens says he doesn't condone fighting because he doesn't coach penalties and that's what those result in.