The abundances of iron and oxygen are homogeneously determined in a sample of 523 nearby (d<150pc) FGK disk and halo stars with metallicities in the range -1.5<[Fe/H]<0.5. Iron abundances were obtained from an LTE analysis of a large set of FeI and FeII lines with reliable atomic data. Oxygen abundances were inferred from a restricted non-LTE analysis of the 777nm OI triplet. We adopted the infrared flux method temperature scale and surface gravities based on Hipparcos trigonometric parallaxes.