Thanks a lot to all of you. Sanjay's suggestion is right. It works now. By the way, I am using version9i.