Register Login

Uninstalling MaxDB/SAP DB software using SDBUNINST

Updated May 18, 2018

You want to uninstall one of the following versions of the SAP DB database or MaxDB database:

* 7.3.00 (build 033 or higher)

* 7.4

* 7.5 or higher



This note describes only how to uninstall the database instance and the database software. It does not describe how to uninstall the SAP software. The tool SDBUNINST is not available for earlier versions than the specified versions. You have installed one of the above versions of SAP DB or MaxDB. In these versions, an installation registry is written. This registry includes information about which files were installed.

Therefore, in these versions, you must not perform any manual uninstallations (by deleting the directories). In a subsequent installation, the system would detect that the files that are usually included in the installation registry do not exist and would cancel the installation.


Uninstalling SAP DB database instances or MaxDB database instances


You must stop and delete all database instances that were installed with the software package to be deleted.

1. Determine the database instances (there is usually only one database instance).
Use the following command:
dbmcli db_enum

2. To stop all database instances for which the <dependent_path> directory to be deleted is displayed, use the following command:
dbmcli -d <database_name> -u <dbm_user>, <password> db_offline

3. To delete the database instances, use the following command:
dbmcli -d <database_name> -u <dbm_user>, <password> db_drop

Uninstalling the SAP DB software or MaxDB software


1. The database installation consists of different installation packages. To display these, use the following command:

sdbuninst -l

Example:
PCR 7301 /sapdb/programs 7.3.01.01 valid
PCR 7401 /sapdb/programs 7.4.01.19 valid
PCR 7240 /sapdb/programs 7.2.04.17 valid
PCR 7402 /sapdb/programs 7.4.02.07 valid
Server Utilities /sapdb/programs 7.4.02.07 64 bit valid
PCR 7250 /sapdb/programs 7.2.05.18 valid
Database Kernel /sapdb/ZW6/db 7.4.02.07 64 bit valid
Database Kernel /sapdb/LW6/db 7.2.05.18 valid
Base /sapdb/programs 7.4.02.07 64 bit valid
PCR 7300 /sapdb/programs 7.3.00.21 valid
APO COM /sapdb/ZW6/db/sap 3.0A.34 64 bit valid

The PCR entries are the precompilers runtimes that have been installed and are required by the SAP application servers.

The server utilities include the X server, for example. In a running SAP system environment, the most current X server is always used for communication. Only one X server is started that is used by all database instances on this host.

APO COM (in the liveCache environment only) specifies the installation of the database procedures (COM routines).

Database Kernel is the database core software.

Base specifies the complete installation of all components.

You can use different options to uninstall the installed software. In the following, three standard situations are described. The following always applies: SDBUNINST must be called as the user root or as the administrator.

a) Uninstallation the complete SAP DB software or MaxDB software
To uninstall the complete SAP DB software or MaxDB software, enter the following command:

sdbuninst -all

b) Uninstalling the dependent package
To uninstall only the version-dependent software and retain the client installation and server utilities on the host, enter the following command:

sdbuninst -package "Database Kernel" -autoresolve

If there are several installations of the 'Database Kernel' package on the host, the system asks you during the uninstallation which of the installations must be deleted. For this, all installations of 'Database Kernel' are then listed.

Example:
0: Database Kernel in /sapdb/ZW6/db 7.4.02.07 64 bit
1: Database Kernel in /sapdb/LW6/db 7.2.05.18
2: none

Enter the number of the installation that you want to delete.
To uninstall the 'Database Kernel'-dependent packages as well (TRex or APO COM or APO LC APPS, for example), use the option 'autoresolve'. You cannot use these packages without the relevant 'Database Kernel' installation.

c) Uninstalling all software except the client software
If you want to uninstall all version-dependent software parts and server utilities, but want to retain the client software, enter the following command:

sdbuninst -package "Server Utilities" -autoresolve


For information about the uninstallation, also see the MaxDB installation manual:
http://maxdb.sap.com/currentdoc/default.htm -> Installation -> Installation Manual -> Installation, Upgrade and Uninstallation on the Command Line -> Uninstalling the Database Software
 


×