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
Mike Williams rescues Chargers, reminds NFL he's a big-time playmaker
Mike Williams had three touchdowns against the Chiefs, including the go-ahead two points -- stepping up when star receiver Keenan Allen went down.
Is Wentz injury a blessing in disguise for fantasy managers?
Matthew Berry breaks down why Carson Wentz's disappointing season was actually holding back many fantasy teams instead of helping them.
Woodson: Patriots' success against Steelers will continue
Tedy Bruschi and Darren Woodson pick the Patriots over the Steelers in Week 15.
Seahawks' run game will be enough to beat 49ers
Tedy Bruschi and Darren Woodson both take the Seahawks to run all over the Niners in Week 15.
Woodson: Ravens will beat Bucs, stay in contention
Darren Woodson and Tedy Bruschi are both confident in picking the Ravens to beat the Bucs in Week 15.
Bruschi: Jaguars will win 'Disappointment Bowl' vs. Skins
Tedy Bruschi and Darren Woodson pick the Jaguars to beat the Redskins in Week 15.