Oracle will pay about $23 million to the Securities and Exchange Commission for allegedly providing impermissible benefits to government officials in several countries, regulators announced Tuesday, marking the second such multimillion-dollar fine for the American software giant.