The Database Configuration screen enables you to create and configure databases using the embedded HyperSQL server or connect to an external, supported database. You can also create and restore database backups, as well as port existing backups to a different type of database. For example, you could back up a HyperSQL database, then re-create it as an Oracle or MySQL database. Or, you could capture the current state of a database and use that for a rollback.
Choose Database Configuration from the administration menu (gear icon) to open the Database Configuration screen.
In this section:
This process connects the current CTP to an existing CTP database.
Enter the database URL and user credentials. See Database Settings below.
This process creates a new, empty CTP database. For information about creating a new CTP database from a backup, see Creating a Database from a Backup.
For MySQL databases, the root user must have the GRANT OPTION privilege. |
Enter new user and credentials and click Create Database.
This process creates a CTP schema for an existing database with existing user credentials.
To back up your CTP database, click Back Up Database on the Database Configurations page. What happens next depends on your database type:
If the database is HyperSQL, MariaDB, or MySQL, the backup will begin immediately.
If the database is Oracle, a dialog will appear asking for the data tablespace. Enter the name of the tablespace and click Create Backup and the backup will begin.
If the database is PostgreSQL, a dialog will appear for the schema. Enter the name of the schema and click Create Backup and the backup will begin.
Once the backup is complete, you can click Download to download it to your device.
If you are using a MySQL database and the backup fails, try increasing the MySQL size limits as follows:
[mysqld]
[mysql]
[client]
A new database will be created in the specified location then it will be populated with the data saved in the backup file. After a new database is successfully created, CTP will ask you if you want it to delete the previous database (the database whose connection settings are shown in the main page behind the dialog).
To add multiple databases of the same type, specify a different location (for example, schema, SID, service name, or path) when creating a new database. This prevents the existing database from being overwritten.
To port a database to a different database type, select the target database type, then specify the desired location for the new database.
To create a new database account from this interface, enter the desired username and password, enable Create a new user, then confirm the password. For new accounts on Oracle, you can also specify a data tablespace and temp tablespace or you can leave those fields empty to use the defaults (<USER>_DATA> and <USER_TEMP>).
You can view the current database configuration in this section.
See System Requirements for details about supported database versions and requirements.
CTP ships with an embedded HyperSQL database. To use it, choose File path as the connection mode.
jdbc:hsqldb:file:/hsqldb/em;ifexists=true
em
user. If the Create a new user option is enabled, a new user with the name specified in this field will be added to the database.em
user. If the Create a new user option is enabled, a new user with the password specified in this field will be added to the database. jdbc:mariadb://hostname:3306?useUnicode=true&characterEncoding=UTF-8&sessionVariables=sql_mode=NO_BACKSLASH_ESCAPES
jdbc:mysql://hostname:3306?useUnicode=true&characterEncoding=UTF-8&sessionVariables=sql_mode=NO_BACKSLASH_ESCAPES&useSSL=false&allowPublicKeyRetrieval=true
em
user. If the Create a new user option is enabled, a new user with the name specified in this field will be added to the database.em
user. If the Create a new user option is enabled, a new user with the password specified in this field will be added to the database.jdbc:oracle:thin:@//hostname:1521/service_name
jdbc:oracle:thin:@//hostname:1521:sid
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=service_name)))
em
.em
user. If the Create a new user option is enabled, a new user with the password specified in this field will be added to the database.CTP does not ship with JDBC driver libraries for MySQL or Oracle. Refer to the JDBC Driver Notes in the installation guide for additional information. |
If the Oracle database user is created outside of CTP by a Database Administrator (DBA), then it needs permission to create tables so CTP can perform database schema updates when upgrading to new product versions. The DBA should execute: |
Also see Installing and Running CTP.