An excitation function for resonance elastic scattering of p+N12 was measured in the center of mass energy range of 0.8-2.7 MeV. Measurements were performed using inverse kinematics and the thick-target techniques. The data were analyzed in the framework of the R-matrix formalism. A definitive spin and parity assignment was possible for the first excited state of O13 at an excitation energy of 2.69 MeV as J=12+. An indication of the presence of a new level in O13 at an excitation energy of 3.29 MeV with tentative spin-parity assignment J=12- or 32- was obtained. We evaluate the impact of this measurement on the reaction rate of N12(p,)O13 for nucleosynthesis in low-metallicity stars. 2007 The American Physical Society.