Oberramsern was a municipality in the district of Bucheggberg in the
Canton of Solothurn 
in
Switzerland 
. On 1 January 2010, the municipalities of
Balm bei Messen 
, Brunnenthal and Oberramsern merged into the municipality of Messen.
History
Oberramsern is first mentioned in 1276 as Rambsern though this comes from a 17th-century copy of the original. In 1318 it was mentioned as Ramserron superiori.
Geography
Oberramsern has an area, as of 2009, of 1.75 square kilometers (0.68 sq mi). Of this area, 1.18 km2 (0.46 sq mi) or 67.4% is used for agricultural purposes, while 0.5 km2 (0.19 sq mi) or 28.6% is forested.