TikTok's reportedly agreed a deal with US data management firm Oracle after rejecting Microsoft's offer to buy the app's US operations.