North Dakota's oil output slipped about 1% in June but should remain above 1 million barrels per day (bbl/d) for the foreseeable future, state officials said Aug. 11.

The optimistic outlook comes as the state's shale producers in the Bakken have found a way to survive low oil prices with new technology and process improvements.

North Dakota, the No. 2 U.S. oil-producing state, has largely taken a back seat in the past year as companies in the Permian Basin of Texas and New Mexico—the largest U.S. oil field—battle with OPEC for global energy market dominance.

"That's two elephants fighting it out and North Dakota gets caught in the middle," Lynn Helms, head of the North Dakota Department of Mineral Resources (DMR), said on a Aug. 11 conference call with reporters.

The state pumped 1.03 million bbl/d of oil in June, down from 1.04 million bbl/d in May, according to the DMR, which reports on a two-month lag.

"We should be staying in that 1 million to 1.05 million per barrel range for the foreseeable future," Helms said.

Natural gas production dipped slightly to 1.85 million cubic feet per day.

The state's oil well count hit 13,915 during the month, an all-time high.

North Dakota's drilling rig count, a closely watched barometer of the state's oil industry's health, has been steadily rising. On Aug. 11 the count stood at 57 rigs, about 4% higher than in June.

Even as the rig count climbs, the state's oil industry has been fracking fewer wells due to a labor shortage. There are only 25 frack crews in the state today, less than half the number of rigs. Many of the state's oil industry workers left last year as oil prices plunged, forcing thousands of layoffs.

As the industry gets back on its feet, Halliburton Co. (NYSE: HAL), Baker Hughes Inc. (NYSE: BHGE) and Schlumberger Ltd. (NYSE: SLB) are finding it difficult to get new workers the experience they need, with many oil producers unhappy with the quality of their work, Helms said.

"The oilfield service providers are training people, but the operators are not happy with the performance of inexperienced crews," he said. "It's been a struggle."