Galactic archaeology with asteroseismology and spectroscopy: Red giants observed by CoRoT and APOGEE