Officials in Ecuador say Venezuela is to help them build a $ 5 billion oil refinery that will become operational in 2012 .