US oil and gas company Occidental has signed two agreements to divest certain upstream assets for a combined value of $1.2bn.