IBM has agreed to buy a 20 percent stake in Batista???s SIX Automacao, a company that specializes in providing technology services to sectors including oil and gas, mining, naval construction, naval ports and others, said EBX, Mr. Batista???s holding company.