It really doesn't. Oil doesn't mix with water. The only thing it does is oiling your pasta when you drain the water, which prevents the sauce from sticking correctly.
Pasta naturally don't stick together if you use a pot large enough, with enough water. And even then it doesn't stick, I honestly don't know how people make their pasta stick.