Procedure documentationUninstalling in the Command Line Locate this document in the navigation structure

 

Use the SDBUNINST uninstallation program to uninstall some or all of the software components, taking into account the dependencies between them.

In the uninstallation command, place any package names of software components that contain spaces in double quotation marks.

The SDBUNINST program can be used to uninstall the database software on Unix, Linux, and Microsoft Windows. It is contained in the database software of all versions ≥ 7.3.00.33.

You can uninstall database software of versions ≥ 7.2 using SDBUNINST.

Overview of the Options for the SDBUNINST program

Note Note

If you are working on the Linux operating system and have used the Red Hat Package Manager (rpm package) to install the database software on your computer, you must use this program to uninstall the software.

End of the note.

Prerequisites

  • You have administrator rights for your computer.

  • There are one or more versions of the database software installed on your computer. At least one of them is ≥ 7.3.00.33, and therefore contains the SDBUNINST program.

Procedure

  1. On Unix or Linux: Open a root shell and log on as the user root.

    On Microsoft Windows: Open a command prompt and log on as a member of the Administrators group.

  2. Call Database Manager CLI in session mode, log on as a DBM operator and connect to the database assigned to the installation directory in which you want to uninstall software:

    >dbmcli -d <database_name> -u <dbm_operator>,<dbm_operator_password>

  3. Stop the database:

    >db_stop

  4. Delete the database:

    >db_drop

  5. Exit Database Manager CLI:

    >exit

    Repeat steps 2 to 5 in succession for each database assigned to the installation directory in which you want to uninstall software.

  6. Execute the uninstallation program with the required option:

    >sdbuninst <option>

    Specify the installation to be uninstalled indicating the -i <installation name> or the -path <installation_path> option (see: Overview of Options for the SDBUNINST Program).

    If you want to uninstall all software components of all SAP MaxDB versions on your computer, specify the –all option; otherwise, specify your chosen component with the -package option. Place any package names of software components that contain spaces in double quotation marks.

    If a particular package has been installed in several versions, a list of the versioned packages with their IDs is displayed by the system. Specify a package ID and confirm.

Result

The specified database software was uninstalled.