Usually toilet flange is glued down onto plastic drain pipe. There is a toilet flange that can be glued inside of plastic drain pipe also.
if it is a PVC flange glued on to the outside of 3" PVC pipe, there is a tool available that will cut it off and you can glue a new flange on the undamaged pipe. It's called a Flange-off. Available at Locke plumbing supply.
Probably the wrong size flange. Is the flange a toilet collar? If so the pipe is probably 4 inch.
get an "ID" (that is Inside Diameter) pipe wrench. they are available at most good hardware stores. this will allow you to turn the flange from the inside.
I removed the broken flange by perforating the lead filling between the drain pipe and the flange - i.e., drilling holes every 1/4-1/2 inch or so with a regular drill and then sawing through the filling with a power saber saw. Then pried the flange off with a pry bar. Wasn't as bad as I expected. - Dan
The toilet flange is usually above the floor level. You would have to cut it off the drain pipe and cap it. How you do this depends on what type of pipe the drain is made of. Even if the drain should be below the floor level, you have to seal the drain or sewer gas will come up from the drain.
The easiest solution would be to move the toilet so that it lines up with the waste pipe.
At least 3 in. drain pipe
To solder a closet flange to a lead drain pipe, first clean the surfaces to be soldered with a wire brush. Apply flux to both the flange and the pipe, then use a propane torch to heat the joint. Once the lead and flange are hot enough, apply the solder to create a watertight seal.
The bolts that come from the drain and run to to toilet help to alaign proper drainage and seal the toilet. You do not want to do the bolts set in cement idea...
No, it is not recommended to glue the toilet closet flange to the pipe. The flange should be secured to the floor using bolts or screws, and the toilet is then secured to the flange using wax rings or sealing gaskets. Gluing the flange to the pipe can make it difficult to remove or replace the toilet in the future.
What is actually broken the flnge ring rusted out and broke or the abs pipe? Abs pipe/flange broken: Use a ram bit to cut it out and install a new one. http://www.plumbingsupply.com/pvcsaver.html use a compression or expansion flange http://www.plumbingsupply.com/toiletflanges.html or just cut the pipe and put in a new one Flange ring rusted/broken: install a toilet flange repair ring or a spanner flange.