Occidental Oil Company signed a $ 38 billion deal to buy Anadarko Oil Company after Chevron Corp. pulled out of the competition for a $ 33 billion offer, ending one of the most dramatic energy competitions in recent years at the heart of the US oil boom in the Permi basin to the west from Texas and New Mexico.