Indian Oil Corp. shares gain 0.39% as Sensex rises