Summary
This passage guides you to remove ASMLib on OEL7.
This passage is based on Oracle 12.2.0.1 & 18.1.1.
Oracel Enterprise Linux
As OEL7 contains ASMLib by default, so if you want to install AFD, you have to remove ASMLib in advance.
Remove
If you have installed Grid Infrastructure and Oracle Database, you need to stop ASM and DB by running
crsusr $ srvctl stop asm
racusr $ srvctl stop instance -d db_unique_name
Then stop GI stack and ASMLib by running
# crsctl stop has
# /etc/init.d/oracleasm disable
Finally remove oracleasm by RPM
# rpm -e oracleasm-support
# rpm -e oracleasmlib