...
When the JDBC driver is installed, you can configure your database connections or create new databases. There are three options available:
Include+
Note |
---|
If you are connecting to an Oracle database on Amazon RDS, you will need to create the database structure first. See Creating DTP database structure at Amazon RDS for Oracle. When the database structure has been created, proceed to Create a DTP schema for an existing database below. |
Anchor | ||||
---|---|---|---|---|
|
To connect to an existing DTP database using existing user credentials:
- Click Configure Database Settings and select Connect to existing DTP database in the window that appears.
- Click Next.
- Select a database type: MySQL, Oracle, or PostgreSQL.
Enter the database URL and user credentials, then click Test Connection to confirm that it is correct.
- Click Save & Connect to connect to the database.
Anchor | ||||
---|---|---|---|---|
|
To create a new DTP database and schema as well as new user credentials:
- Click Configure Database Settings and select Create new DTP database, user, and schema in the window that appears.
- Click Next.
- Select a database type: MySQL, Oracle, or PostgreSQL.
- Enter the database URL and root credentials, then click Test Connection to confirm that it is correct.
- Click Next.
Enter new user and credentials and click Create Database.
Info title Existing Parasoft Users The processes will fail if the Parasoft default "dtp" user already exists. In this rare scenario, you can manually create the database and users, then go through the Create a DTP schema for an existing database described below. Alternatively, you can drop the "dtp" user before running this process.
Anchor CreateSchema CreateSchema
Create a DTP schema for an existing database
CreateSchema | |
CreateSchema |
To create a DTP schema for an existing database with existing user credentials:
- Click Configure Database Settings and select Create DTP database schema in the window that appears.
- Click Next.
- Select a database type: MySQL, Oracle, or PostgreSQL.
- Enter the database URL and user credentials, then click Test Connection to confirm that it is correct.
- Click Create Schema.
Switching to an External Database
Starting with DTP 2022.2, DTP no longer ships with an embedded database. The feature described below is deprecated. For information about migrating an embedded database to an external database, see Migrating an Embedded Database to an External Database. Include+
If you installed the DTP distribution with an embedded database, you can switch to an external database at your convenience. Be aware that once DTP has been configured to use an external database, it cannot be configured to use an embedded database again (though it can be configured to use a different external database). Make sure that your database meets the requirements described in Database Requirements.
- Choose Report Center Settings from the main menu (gear icon).
- Click Database Settings.
- Click Configure Database Settings and follow the instructions for preparing and configuring the external database as described in Connecting to the Database.
Follow the instructions for preparing and configuring the external database as described in Connecting to the Database.