A broken onshore pipeline spewed oil down a storm drain and into the Pacific Ocean for several hours before it was shut off, creating a slick some 4 miles long across a scenic stretch of central California coastline, officials said.