What Happens if You Lie Under Oath?

Lying under oath can have many consequences. The worst of which, jail time. Also, the judge may simply sentence one to community service or a fee.