They don't do that. It's a hollywood thing. I've been to court many times (to observe, not as a witness or anything) and I've never seen them do that. They only ask you to raise your right hand and say "I swear the statement I am about to give is the truth." Or something similar. That's all.