---
title: Adding a Database as a Device
slug: kronpam-reference-guide-3-4-0/adding-a-database-as-a-device
docTags: 
createdAt: 2023-12-19T16:27:57.694Z
---

This section shows how to add one database to the KRON PAM.

Prerequired Configuration: The port number is the identifier of the connection to ORACLE, MSSQL, MySQL and Cassandra, Teradata, Hive, PostgreSQL, and DB2 via a Kron PAM SQL Proxy. The port number must be defined in the Device Properties of the MSSQL, MySQL Cassandra, Teradata, Hive, PostgreSQL, DB2, SAP Hana, and Couchbase databases.

The following system configuration parameter should be set for the port assignment option:

1. Navigate to **Administration > System Config Manager.**
2. Click the blue **Add** button and inside the pop-up select the **Add New System Parameter** button.
3. Set the **sql.proxy.bind.port.range** parameter with the requested port range.

| **Parameter Name**            | **Parameter Value**         |
| ----------------------------- | --------------------------- |
| **sql.proxy.bind.port.range** | Port range (e.g. 1000-2000) |

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/daS0OZA92WiuFr3pmAF0t_image.png "SQL Proxy Bind Port")

The target database is configured as a device:

1. Navigate to **Devices > Inventory.**
2. Click the blue **Add&#x20;**&#x62;utton and inside the pop-up select the **Add Device&#x20;**&#x62;utton.
3. **Information**, Enter the following required information:
   a.	IP address
   b.	Device Name
   c.	Port (if not set, the default port is used according to the access protocol)
   d.	Access protocol (Oracle TNS, MSSQL, PostgreSQL etc.). When you select Access protocol the following inputs will appear:
   i.	Database Name
   ii.	Username of Database User (this must match with the created User’s username)
   iii.	Password of Database User
   e.	Element Type

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/l6fQE2Vlct41WuZqhEV96_image.png "Database Device Addition / Information Section")

- **Group Membership,&#x20;**&#x65;nter your device group.

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/-hfg-3zQDy1ZMc5eyJ30K_image.png " Database Device Addition / Group Membership Section")

- **Properties,&#x20;**&#x63;lick the Auto Assign (This will use the setup parameter of the system configuration manager guided earlier)

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/gNGiNNR82N-mFv-vYXxDI_image.png "Database Device Addition / SQL PROXY Bind Port in Properties Section")

- Click the **Test Connection** button to control the connection information you provided.

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/rjMFwbEM7IM-0vIiojmO-_image.png)

