A technology stock rally and further gains by the big miners helped mitigate losses in the energy sector, lifting the Australian market to its ninth straight gain.