replace pan (junk yard, used part) or find a somone who welds aluminum. New oil pan from the dealer would be expencive.
Drain the oil from your oil pan. Remove the oil pan bolts. There are 24 oil pan bolts. The oil pan will come off.
I just got quoted $1,189 to replace the oil pan gasket on my 2006 BMW 525xi...
Bolted into the bottom of the oil pan.
Under the car.
climb under it an on the oil pan it has a screw an that's how you take change the oil in a 1997 BMW 313i
On the bottom of the oil pan - under the engine.
Bottom of the engine on the oil pan.
you either have a blown head gasket or a warped head or a cracked block.
Carefully.
At the bottom of the engine block.
In the oil pan
you have water in the oil. either a blown head gasket or a cracked cylender head.