The Sensex closed (provisional) with a gain of 149 points at 12,323.SBI closed with a gain of nearly 3% (Rs 29 ) at Rs 1,000. ICICI Bank and HDFC Bank also closed with sharp gains.