Procedure documentation Uninstalling the SAP DB Software Locate the document in its SAP Library structure

Implementation Considerations

You use the uninstall program SDBUNINST to uninstall some or all of the SAP DB software components, while taking into account the dependencies between them. It is included in the SAP DB software from Version 7.4.

You can use it to uninstall SAP DB software as of Version 7.2.

Overview of Options for the Program SDBUNINST

Note

For a short description of the standard uninstallation of all the SAP DB software, see the documentation Structure linkDatabase Software Installation Guide: SAP DB 7.4

Conventions

Structure linkVariables, supported Structure linkOperating System Platforms

Prerequisites

·        One or more SAP DB software versions are installed on your server. These include at least one installation of Version 7.4, which includes SDBUNINST.

·        You have administrator rights for your server.

Procedure

...

       1.      On UNIX/Linux: Switch to the rootshell.

On Microsoft Windows: Open the command prompt on your server.

       2.      Stop V Server (Xserverservice):
x_server stop

       3.      Stop each SAP DB database instance on your server with the command:
dbmcli –d <database_name> -u <dbm_user>,<password> db_offline

       4.      Delete each SAP DB database instance on your server with the command:
dbmcli –d <database_name> -u <dbm_user>,<password> db_drop

       5.      Call the uninstall program with your chosen options:

¡        If you want to uninstall all SAP DB software components, specify the option –all; otherwise, specify your chosen component with the option –package.

¡        If there is more than one software package with the same name on your server, specify a unique package with the option -package_dir. You can determine the directory of a software package (<package_directory>) with the option -l|-list.

¡        If you want to uninstall a software component that is still needed by another component, specify the option -autoresolve. The system then uninstalls all those software components that are dependent on the specified component.
Otherwise, the uninstall process terminates with the following message:
cannot delete package \"<package>\" (<package_directory>) - other package (s) are dependent

sdbuninst -all | -package <package_name>[-package_dir <package_directory>] [-autoresolve]

       6.      Start the uninstallation by entering y.

The specified SAP DB software components are uninstalled. At the same time, the system checks the dependencies between the components.

If you have not specified a unique software package, the system shows you a list of packages with the same name. Choose a package ID and confirm.

You see a message about the successful completion of the uninstallation.

Result

The specified SAP DB software component is uninstalled, along with all dependent components.