Khimetrics develops so-called 'customer demand management' technology that helps retailers set prices, promotions and markdowns, and generate forecasts.
The deal marks yet another acquisition of a player in the retail software vertical market by a major enterprise software vendor.
SAP acquired Triversity, a Canadian provider of software for point-of-sale systems, in September.
The retail vertical market represents relatively uncharted territory where SAP and Oracle can gain market share, according to Paul Hamerman, vice president in the enterprise applications research group at Forrester Research.
"This is a battleground vertical," he told vnunet.com. "These vendors want to go head to head here, but there are other verticals where they might not compete so much."
Back in 2001 Oracle took part in a $12.4m investment round in Khimetrics together with several financial parties, and still owns an unknown amount of the company's stock.
A spokeswoman for Oracle declined to comment on the vendor's involvement in Khimetrics.
Khimetrics was founded in 1996 and has 130 employees. SAP expects the acquisition to be completed in January.
Everything we think we know about the imminent Apple iPhone 9, iPhone 11 and iPhone 11 Plus launches
All the latest rumours about Apple iPhone Displays, CPUs, launch dates and even prices
Nvidia brings Turing microarchitecture into the high-end gaming segment
Did you make the shortlist for the UK's most respected IT event?
Latest Tesla news: Tesla share price continues to fall after Saudi Arabia's sovereign wealth fund is linked to investment in rival
SEC 'probe' takes its toll on Tesla as new research suggests that Tesla loses $6,000 on every $35,000 Model 3