Well, if we break this down, we can get this very rough approximation. Sources
here and
here.
The world produces 869.8 TWh of electricity from oil. We'll round up to 870 TWh. Based on the current level of efficiency and using 350 watt solar panels, we would need roughly 2,850 solar panels to produce 1 megawatts. We need 870,000,000 megawatts to reach 870 terawatts, which means we would need approximately 2,479,500,000,000 individual solar panels to match the energy generation produced by oil. An average commercial solar panel is approximately 6.5' X 3', so 19.5 sqft. That is about 127,153,846,153.9 sqft of solar panels, or 2.92 million acres of solar panels. In comparison, according to the Department of Agriculture, the United States is roughly 2.26 million square acres, meaning the solar panel array would be 22% larger than the land mass of the United States.
Just asking the obvious here, but even if it wasn't just one array (which is seemingly impossible) one would have to question how you 1) build 2.92 million acres worth of solar panels in orbit, 2) how you repair such a massive array, 3) how you cool everything, and 4) how you justify the cost of this project from an environmental and economic perspective when other alternatives, such as nuclear power, provide an actually plausible path forward while being far more reliable.
All told, I'll have beachfront property in Nebraska before this comes even close to a drawing board.