Applying a small amount of clove oil on a cotton ball and placing it directly on the affected tooth can help alleviate the pain due to cavities, if any.