Matt Maiocco of CSN Bay Area (@MaioccoCSN) is reporting that 49ers free-agent cornerback Shawntae Spencer has agreed to a deal with the Oakland Raiders.

Spencer spent his entire career in San Francisco, but fell out of favor with the new coaching staff in 2011 and ended the season as an inactive player.