If you have a decayed tooth with a hole and it's very painful, you should rinse your mouth with warm salt water first to reduce inflammation. Avoid eating hard, cold, or hot foods that may aggravate the pain. Take over-the-counter painkillers if necessary under the guidance of a pharmacist. Then, see a dentist as soon as possible. The dentist will examine the tooth and determine the appropriate treatment, which may include filling the cavity, root canal treatment, or other procedures depending on the severity of the decay. Do not ignore the problem as it may worsen over time.