# Oracle Database Creation

Migration-center uses an Oracle database to store information about documents, migration sets, users, jobs, settings and others.

This guide describes the process of creating an **Oracle 19c** (v19.3.0.0.0) database instance on Microsoft Windows.\
Even though the description is very detailed, the installing administrator is expected to have a good degree of experience in configuring databases.

{% hint style="info" %}
_Oracle Express Edition_ can be used for small migration projects that don't requires more resources than available in Express Edition. Check the [Sizing Guide](sizing-guide) for more details regarding the required resources.
{% endhint %}

## Database configuration assistant

Open the **Database Configuration Assistant** from the **Oracle** program group in the **Start menu**. The assistant will guide you through the creation steps.

### Step 1: Database Operation

Select the **Create Database** option and click _Next_.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-Ma9vDssEz5ni5yqkjZx%2F-Ma9zCmFc7Z9ztncbhpn%2Fimage.png?alt=media\&token=ef9f7df9-0651-4167-8836-08187abc3e6f)

### Step 2: Creation Mode

It is recommended to go with the **Advanced configuration**.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaA-QLGdR8HKRgdStP3%2F-MaA0dwNcLPJ37uj_L5p%2Fimage.png?alt=media\&token=275db91c-06d2-4fe8-a2e2-70f45431ff32)

### Step 3: Deployment Type

For the purpose of most installations **Oracle Singla Instance Database** and **General Purpose** is sufficient.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaA-QLGdR8HKRgdStP3%2F-MaA1M64rGTpf8ued1lZ%2Fimage.png?alt=media\&token=e925f548-eae6-42db-a3f3-05a7b43669c4)

### Step 4: Database identification

Define the database name here. The name must be unique, meaning that there should not be another database with this name on the network. The SID is the name of a database instance and can differ – if desired - from the global database name. In order to make an easy identification of the database possible, a descriptive name should be selected, for instance „migration“.

You can either create it as a Container DB with a Pluggable DB inside or not, depending on preference.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaA-QLGdR8HKRgdStP3%2F-MaA4bcHs5gAUwfhx-db%2Fimage.png?alt=media\&token=dd865e1d-e6c6-4cb8-925c-2eba666fe8b8)

### Step 5: Storage Options

For use with migration-center the “File System” option is sufficient. \
For more information on the “ASM” method, please refer to the Oracle documentation.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaA-QLGdR8HKRgdStP3%2F-MaA64kX47J14aXF2qJL%2Fimage.png?alt=media\&token=3a60ec81-12c3-42d5-ad28-18c90b939c79)

### Step 6: Recovery Options

This step describes the database's archiving and recovery modes. The default settings are fine here.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaA-QLGdR8HKRgdStP3%2F-MaA6PjlnVFRG0neYO2q%2Fimage.png?alt=media\&token=8a0834f2-420a-4db7-bc9d-87d5acb0d75b)

### Step 7: Network Options

If a default listener is not already configured, you can select one here or choose to create a new one:&#x20;

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaA-QLGdR8HKRgdStP3%2F-MaA7KOWSRpWFrrnxRRJ%2Fimage.png?alt=media\&token=f2e2c220-1378-4b7e-9e6b-8281b70567e3)

### Step 8: Configuration Options

This step contains several tabs on which the configuration options for the new database must be specified.

#### Memory

The memory values of the database need to be specified here. For migration-center, user-defined settings are required. Please review the Database chapter the [Sizing Guide](../sizing-guide#database) for the recommended amount of memory allocated to the database instance.

For most projects **Automatic Memory Management** is a good option.

{% hint style="info" %}
When processing mass data, it may be necessary to change the parameters after some time. This can be done retrospectively in the Oracle Enterprise Manager. To do so, select \<Administration / Memory Parameters> in the menu. In the dialog box displayed the settings for the "SGA” and “PGA” values can be changed and saved.
{% endhint %}

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaA7MZp0ECzafBDeG1r%2F-MaA9k8yBW4m8jHwnzgt%2Fimage.png?alt=media\&token=1d07a76d-440a-4b93-b05a-49351e807563)

#### Sizing

At this point the block sizes and maximum number of user processes are defined. The default block size and maximum number of processes can be applied.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaA9mzUISsfl6zfD-tW%2F-MaAA5zHkZ-AJOb41Rcl%2Fimage.png?alt=media\&token=ee1cc380-6340-42a3-a18b-074d9da35d14)

#### Character Sets

The Unicode character set **AL32UTF8** must be selected here. This character set will ensure that all special characters of any language will be correctly saved in the database.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaAAGIAcmqeX4H1C0os%2F-MaAAgCTZm9mAR-hx_rl%2Fimage.png?alt=media\&token=4dc1216a-fa18-4bbb-83ca-f1524b059a63)

#### Connection Mode

The option **Dedicated Server Mode** connection type is appropriate for migration-center.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaAAGIAcmqeX4H1C0os%2F-MaAAn9IxF4Z9IQp099u%2Fimage.png?alt=media\&token=296868cd-df41-4ca2-a3a4-e637ca7d7d94)

#### Sample Schemas

Sample Schemas are not needed so leave the option unchecked.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaAAGIAcmqeX4H1C0os%2F-MaAB7iFdckh2zOKWyFg%2Fimage.png?alt=media\&token=d7b685ba-168c-46be-b4c5-dced4d598358)

### Step 9: Management options

To manage the database, Oracle Enterprise Manager is recommended. In Oracle 19c, databases can be managed centrally using the Grid Control or locally using the Database Control. Since the choice of database management has no influence on the operability of migration-center, this can be configured according to personal preferences or company policies. For the purposes of this guide the local Database Control will not be selected here. E-mail notification and backup can be configured separately at a later time, if necessary.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaAAGIAcmqeX4H1C0os%2F-MaAC0rXrow92KQr_XX2%2Fimage.png?alt=media\&token=bb6b54d1-c1fc-4dad-9072-0f607f6aad74)

### Step 10: User Credentials

Now the passwords for the Oracle system accounts **SYS**, **SYSTEM** and **PDBADMIN** must be entered and confirmed. These accounts with their passwords are needed for the installation of the migration-center database schema.

{% hint style="warning" %}
These accounts/passwords grant full rights for the new Oracle database and should therefore be chosen and safeguarded carefully. The allocation of different passwords is recommended.
{% endhint %}

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaACF7eV9aTqDgHwoq7%2F-MaACqRP9SiXytxmrBGZ%2Fimage.png?alt=media\&token=c2475de6-0acd-4e50-b2b6-e1c4d5021f8b)

### Step 11: Creation Option

Optionally a script can be generated which contains all the settings for the creation of this database. With this script, the setup can be repeated later if necessary. Moreover this script can be used as documentation for the settings used.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaACF7eV9aTqDgHwoq7%2F-MaAD5icJMZxxNgH-bX5%2Fimage.png?alt=media\&token=e56e5f23-d108-49af-a312-2acca0997ef8)

### Step 12: Summary

The assistant shows a summary of the previous settings. This summary can be stored for documentation purposes in an RSP file.&#x20;

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaACF7eV9aTqDgHwoq7%2F-MaADTdTqIOyEr0JboRA%2Fimage.png?alt=media\&token=7ff45702-8391-458d-b096-c35cdb0bfa4f)

Clicking on **Finish** will start the database creation process. This process can take some time.

![](https://406911575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXwpM5nhZwVq8kDixeu%2F-MaACF7eV9aTqDgHwoq7%2F-MaAE17MX8dmWBVNwsay%2Fimage.png?alt=media\&token=0d3b7828-ce26-49ad-9040-9ac3e9eb8b41)

## Additional Information

The Oracle database Configuration Assistant generates the following tablespaces (we assume that unused tablespace is marked to be deleted):

* INDX
* SYSTEM
* TEMP
* TOOLS
* UNDOTBS
* USERS

### Summary of the most important Oracle 19c installation parameters

_**Oracle components:**_

* Oracle Database
* Oracle XML DB
* Oracle Net Listener
* Oracle Call Interface

_**General options:**_

* Oracle JVM
* Enterprise Manager Repository (optional)

_**Initialization parameters:**_

* Dependent on server

_**Character sets:**_

* Database character set (AL32UTF8)

_**Data files:**_

* Use standard parameters

_**Control files:**_

* Use standard parameters

_**Redo log groups:**_

* Use standard parameters
