U.S. business software giant Oracle on Tuesday announced that it was buying e-commerce software company Art Technology Group for $1 billion in cash.