Hi,
For SAP run command sappfpar check pf=<instance profile> check the worst case requirement
For Oracle check the sum of SGA and PGA refer: Managing Memory
For OS assume 3 GB. If you have any other software running you need to consider it too.
Thanks
Imtiaz