What is Oxycodone, and how does it help in treating cancer-related pain? Oxycodone is a short-acting opioid. Oxycodone relieves pain due to cancer for about four to six hours, so it needs to be given 4 to 6 times a day to provide pain relief for the whole day.