---
description: This chapter describes all installation/upgrade/de-installation steps.
---

# Installation & Upgrade & De-installation

## Installation

This paragraph describes the installation.

### Prerequisites

This paragraph describes all necessary steps which must be completed before you start the DMK\_SQL installation.

The DMK\_SQL doesn’t require any specific action. It can be installed regardless of DMK.

### Software extraction

Based on the dbi services and OFA (Oracle Flexible Architecture) best practices extract the archive under ${ORACLE\_BASE}/local, as explained below: <img src="https://3382315087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPtQvF2ryopbZznR9blJe%2Fuploads%2Fgit-blob-f614e4ffbf8c785bcb89e5cedc4f0e0acfba291a%2Fwindows_and_linux_logo.png?alt=media" alt="" data-size="line">

```
gzip --decompress dmk-xx-xx-xxxx.tar.gz
tar -xvf dmk-xx-xx-xxxx.tar
```

Typically, ${ORACLE\_BASE} match:

* “/u00/app/oracle” on Linux/Unix
* “D:\oracle” on Microsoft Windows systems

### Install

To complete the installation you just need to re-source DMK. This can be either achieved by

* <img src="https://3382315087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPtQvF2ryopbZznR9blJe%2Fuploads%2Fgit-blob-dd45286cda15317dd6e129fcae9cc69c6fb97de7%2Fwindows_logo.png?alt=media" alt="" data-size="line">restarting the PowerShell Console
* <img src="https://3382315087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPtQvF2ryopbZznR9blJe%2Fuploads%2Fgit-blob-e73ef37ed7e1f831b1dd8adaf7f6e665a6c59537%2Flinux_logo.png?alt=media" alt="" data-size="line">sourcing DMK within your shell (alias dmk)

```
oracle@vmoraoel:/home/oracle/ [rdbms11202] dmk

oracle@vmoraoel:/home/oracle/ [rdbms11202] echo ${DMK_SQL}
/u00/app/oracle/local/dmk_sql
```

Your shell automatically expands the SQLPATH variable with the DMK\_SQL scripts.

_Enjoy!_

## Upgrade

dbi services recommend to perform a backup of your DMKSQL package before upgrading.

The upgrade process is similar to the installation except that the prerequisites are already fulfilled:

* Extract the software as explained in chapter 3.1.2 Software extraction
* Install DMK\_SQL as explained in chapter 3.1.3 Install

That’s it!

## De-installation

This paragraph describes the de-installation of the DMK\_HA toolkit.

<img src="https://3382315087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPtQvF2ryopbZznR9blJe%2Fuploads%2Fgit-blob-e73ef37ed7e1f831b1dd8adaf7f6e665a6c59537%2Flinux_logo.png?alt=media" alt="" data-size="line"> For Linux:

```
rm -rf $DMK_SQL
```

<img src="https://3382315087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPtQvF2ryopbZznR9blJe%2Fuploads%2Fgit-blob-dd45286cda15317dd6e129fcae9cc69c6fb97de7%2Fwindows_logo.png?alt=media" alt="" data-size="line"> For Windows

```
Remove-Item $DMK_SQL
```
