Oracle stock initially climbed after news of a software deal with the Pentagon. But the gains didn't hold.

Oracle will supply on-premises software to the U.S. Department of Defense.

Oracle wins a nearly $7 billion 10-year Pentagon software contract, expanding its defense presence and streamlining U.S. government procurement.