C:\> cd \app\oracle\product\12.2.0\grid\crs\install
perl roothas.bat -deconfig -force
Note:
Starting with Oracle Database 12c Release 1 (12.1.0.2), the roothas.bat
script replaces the roothas.pl
script in the Oracle Grid Infrastructure home.
This removes any configuration related files on the system that referenced the old host name.