Uncategorized

Oracle Database Appliance (ODA) Cleanup Utility


Oracle Database Appliance provides a utility called “cleanupDeploy.pl” that is used to:
  • If you encounter deployment issues and wants to cleanup to perform a fresh deployment.
  • If you want to wipe out everything on you ODA
  • If you want to redeploy the ODA base image
To perform a ODA cleanup we make use of the utility “cleanupDeploy.pl’. It located under /opt/oracle/oak/onecmd directory.

[root@odanode1 ~]# locate cleanupDeploy.pl
/opt/oracle/oak/onecmd/cleanupDeploy.pl


cleanupDeploy.pl utility wipes out everything on your ODA and you can rerun the deployment process again using oakcli utility.


Execute ODA cleanup utility:

For Bare-Metal setup execute the utility on first node (node 0) and in Virtualization setup on Dom0.

Connect to first node on ODA and execute the cleanupDeploy.pl utility as root user.

[root@odanode1 ~]# cd /opt/oracle/oak/onecmd
[root@odanode1 ~]# ./cleanupDeploy.pl


cleanupDeploy.pl utility performs a series of steps as below:

  • SetupSSHroot
  • SetupPrivSSHroot
  • deinstallASR
  • CleanupDBConsolefiles
  • DeinstallGI
  • resetmultipathconf
  • resetstoragenickname
  • deleteudevrulefile
  • DropUsersGroups
  • resetnetwork
  • resetpassword
  • reboot
At the end of the execution cleanupDeploy.pl both the ODA nodes are rebooted.

Practical cleanupDeploy.pl session
  • Connect as root user to ODA node 1 and navigate to /opt/oracle/oakcli/onecmd
[root@odanode1 ~]# cd /opt/oracle/oak/onecmd
[root@odanode1 ~]# ./cleanupDeploy.pl

Enter the root password and re-enter again
 

















Conclusion:
In this article we have learned how to cleanup ODA setup using cleanupDeploy.pl. If you encounter issue on ODA or want to wipe out everything on ODA, this utility comes handy and you can rerun the deployment process again using oakcli utility.