A selloff in Oracle and other tech names dragged the S&P 500 to a fourth straight losing session on Wednesday.