A 9-pin device should be quite easy. I'd remove the solder from the holes using desoldering wick or sucker at the bottom. After removing solder from each hole, use a tweezer to shake the pin to make sure that the pin can move freely.
After doing all the pins one by one, the device should came out freely, if not just use a small screw driver and give it a little twist from the top under the device.
This would take some practices, try it out on a junked PCB where there are some TTL 14 or 16 pin chips and use the method mentioned above and see if the chips come up unharmed.
For chips with 28 pins and above. I would first remove solder as much as possible from the holes. Then I'd use a hot-air gun to heat up all the pins on the bottom PCB evenly. Then I use a chip extractor on the component side and pull it gently until the chip starts to separate from the PCB.
Allen