If you are looking on how to install opencv and opencv-devel on Oracle Linux 9, here is the answer:
dnf config-manager --add-repo https://yum.oracle.com/repo/OracleLinux/OL9/developer/EPEL/x86_64
dnf update
dnf install opencv
dnf install opencv-devel
Done.
Did this help? Leave a comment below.