Oil and gas production is a complex, lengthy and costly process that starts long before the drilling begins. Shale wells can be drilled in two to four weeks and brought on line within months, while offshore wells are costlier and can take much longer.