Car starts, then dies quickly after oil pan change. Codes P0021&p0011,+oil light on 2009 Pontiac G6

cleaned ocv solenoid valves, next step is camshaft position sensor, and thinking oil pressure switch. Any other ideas would be greatly appreciated. Replaced oil pan, huge pain, and codes popped right after. Car runs smooth for anywhere from 5 to 10 seconds at idle, then comes to an abrupt halt. Thanks in advance for any advice.

by in Houston, TX on March 08, 2013
Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer 2 comments
ANSWER by , March 09, 2013
Got oil in it? Might want to check oil pressure with a gauge. Why did you "change" the oil pan?
COMMENT by , March 09, 2013
Oil level is good, changes do to hole in pan, caught a rock.
COMMENT by , March 09, 2013
Good luck!