 Spains Telefonica signed a multi-year deal with cloud-service provider Oracle to migrate most of its database systems to the cloud, the firms said on Monday, in preparation for the use of 5G and the Internet of Things. 