Extending gains for third day in a row, the Sensex rose 7.03 points, or 0.04 per cent, to close at 19,642.75. The gauge had gained over 167 points in last two trading sessions.
Similarly, the broad-based-based National Stock Exchange index Nifty rose by 3.35 points, or 0.06 per cent, to 5,943.05, after moving between 5,971 and 5,937.55.
Brokers said while profit-booking erased most of the day's gains, an upsurge in trend-setter Reliance Industries and software exporting companies kept the market in better tone.
The RIL stocks spurted by 3.13 per cent to Rs 875.35 following reports of the company plans to invest in next three to five years jointly with UK partner BP to boost declining output at a key natural gas field. The oil and Gas sector index gained the most by rising 1.70 per cent to 9,170.01.
A firming trend in the Asian region and higher opening in Europe further influenced the market sentiment to some extent,
The refinery, realty and information technology stocks were the major supporter to the market.
In 30-BSE index components, 11 stocks advanced while 19 closed with losses.
Realty sector index was second best performer by rising 0.77 per cent to 2,134.64 followed by information technology
index by 0.60 per cent to 6,591.69.