# 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\_DBDUPLICATE installation.

* A successful installation of DMK as it is the root component of DMK\_DBDUPLICATE.

### 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">

```
unzip dmk_dbduplicate-xx-xx-xxxx..zip
```

Typically, ${ORACLE\_BASE} match:

* “/u01/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_DBDUPLICATE}
/u01/app/oracle/local/dmk_dbduplicate
```

*Enjoy!*

## Upgrade

dbi services recommend to perform a backup of your DMK\_DBDUPLICATE 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 as explained in chapter 3.1.3 Install

:warning:**Upgrades of versions prior to the 12-10 require a reinstallation.**

That’s it!

## De-installation

This paragraph describes the de-installation of the DMK\_ DBDUPLICATE 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_DBDUPLICATE
```

<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_DBDUPLICATE
```
