The software giant Oracle will oversee the security of Americans’ data and monitor changes and updates to TikTok’s powerful recommendation technology under a new deal to avert a ban of the service, according to a senior White House official.

A copy of the algorithm, the recommendation engine that powers the app’s addictive feed of short videos, will be licensed from China to an American investor group that will oversee the app in the United States, the official said.

Oracle will also invest in the new American TikTok, as will private equity firm Silver Lake, another senior official said.

It will be “secured” in the United States outside the control of TikTok’s Chinese owner, ByteDance, one of the officials said. The U.S.-run TikTok will work to retrain the copy on users’ data in the Uni

See Full Page