Rh negative

I recently found out pregnant with my second child and I am rh negative. I can't remember when I received the shot for immune globulin. Also is there chance of miscarrage since it is my second? When am I suppose to receive the shot?