To enable a repo, do :
yum-config-manager --enable ol7_optional_latest
To **temporarily** enable a repo that's disabled you can use the `--enablerepo` option with `yum`, which is what you did. My answer above will permanently enable the repo and should change the status to enabled.