A new δ18O Phanerozoic database, based on 24,000 low-Mg calcitic fossil shells, yields a prominent 32 Ma oscillation with a secondary 175 Ma frequency modulation. The periodicities and phases of these oscillations are consistent with parameters postulated for the vertical motion of the solar system across the galactic plane, modulated by the radial epicyclic motion. We propose therefore that the galactic motion left an imprint on the terrestrial climate record. Based on its vertical motion, the effective average galactic density encountered by the solar system is . This suggests the presence of a disk dark matter component.