OAKLAND — Any thoughts coach Dennis Allen had of going back to quarterback Terrelle Pryor were erased by a strong second half by Matt McGloin in a 23-19 loss to the Tennessee Titans on Sunday at O.co Coliseum.

McGloin was 11 of 15 for 155 yards after halftime and threw a 27-yard touchdown pass to Marcel Reece with 6:10 left in the fourth quarter to put the Raiders in front, only to have the defense give up the lead and the game with 10 seconds left to play.

Allen said McGloin will remain the starter when the Raiders visit the Dallas Cowboys on Thursday.

“I thought Matt played well,” Allen said. “He got us the touchdown we needed to give us the lead. We just couldn’t hold it defensively.”

Pryor was active but did not play, with backup Tyler Wilson inactive. The Raiders ran two plays out of the wildcat formation, but with fullback Reece taking the snap and not Pryor.

McGloin was 8 of 17 for 105 yards in the first half and threw an interception to linebacker Zach Brown on a pass intended for Reece.

“We just couldn’t get anything going early on,” McGloin said. “You’re going to have days like that, and unfortunately that was one of those days today. I thought we did a good job adjusting at halftime and it was great to see we were able to make those changes and get better in the second half.”

McGloin had four passes batted down at the line of scrimmage, all in the first half, and credited the Titans with laying back on their rush and timing the passes correctly.

“It happens to everybody,” McGloin said. “I don’t think I had any passes batted down last week.”

McGloin exchanged greetings with Titans coach and fellow Scranton, Pa., native Mike Munchak after the game.

“I thought he managed the game very well for them,” Munchak said. “He put them in position to win.”

Munchak, who said his father and McGloin’s father met in Scranton on Friday night, will get a trophy made by locals which features a small bell.

“Now my dad will have bragging rights at the diner tomorrow morning,” Munchak said.

The misses keep coming for place-kicker Sebastian Janikowski. He was wide left from 32 yards on the final play in the first half after the Raiders set up the attempt with a blocked punt. He then missed from 48 yards in the third quarter. With four conversions, Janikowski is 15 of 22 for the season — as many field goals as he missed in the 2011 and 2012 seasons combined (62 of 69). More alarming, Janikowski is 11 of 15 on field goal attempts of less 50 yards after hitting 49 of 50 the previous two seasons. The Raiders signed Janikowski to a four-year contract extension during training camp that could be worth as much as $19 million. “I’d say it’s a field goal unit problem. There are 11 guys out there, it’s not all on one guy,” Allen said. “The goal is to get the ball through the uprights and there are 11 guys who are responsible to make sure that happens.” Even one of the kicks Janikowski, made, from 48 yards, was a low line drive that somehow traveled over the crossbar and between the uprights. Janikowski, who has missed six times from the left hash and one from the right, was not available for comment after the game.