How to automate desktop legacy application?

It is a Orcale product.