The Australian sharemarket has rallied on opening, following global markets higher.