If you're taking this job on yourself, you really need to pick up a Haynes or Chilton manual for your car. It will give you the precise directions and photos that are impossible to duplicate here. It's a fairly involved job.
The oil pan gasket on a 1997 Pontiac Grand Am GT is changed by draining the oil, removing the oil pan bolts, and removing the pan. The old gasket is scraped away, a new gasket is placed on the pan, and it is bolted into place.
But a new gasket. Using the appropriate tools remove cylinder head and all attached items according to manufacturers instructions. Remove existing gasket and clean cylinder block and head. Fit new gasket according to instructions and reattach removed items.
dont do it yourself because it is so easy to stuff up take t to a mechanic or sme one who speciallises in that model. Before you do anything at all, you should try Steel Seal. You may not have to change the gasket.