Define AlloyDB Databases

Use the AlloyDB Database Editor for the following tasks:

  • Create databases
  • Define the files that are used to store an existing database
  • Create a database snapshot
  • Attach a database from the detached files of an existing detached database
  • Define database properties in a AlloyDB physical model

To define a database in AlloyDB

  1. In the Model Explorer, right-click Databases and click New.

    An instance of Database is created.

  2. Right-click the instance and click Properties.

    The AlloyDB Database Editor opens.

  3. In the navigation grid, select the database that you want to define and work with the following options:

    Click New New icon in property editors to create a new object on the toolbar to create a database. Use the Enter filter text box to filter a very large list of databases to quickly locate the one that you want to define.

    Name

    Specifies the name of the database. Set the name of the database in this field.

    Generate

    Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.

  4. On the AlloyDB tab, work with the following options:
    Owner

    Specifies the owner of the database. Select a role from the drop-down list or click New New icon in property editors to create a new object to create one.

    Encoding

    Specifies the character set encoding to use in the new database. Specify a string constant (for example, 'SQL_ASCII'), or an integer encoding number, or DEFAULT to use the default encoding (namely, the encoding of the template database).

    Tablespace

    Specifies the name of the tablespace that will be associated with the new database. This tablespace will be the default tablespace used for objects created in this database.

    Collation

    Specifies the default collation for the database.

    Connection Limit

    Specifies the number of concurrent connections that can be made to the database. The default value is -1, which indicates no limit.

    Template

    Specifies the name of the template from which to create the new database, or DEFAULT.

  5. (Optional) Click the Commenttab and enter any comments that you want to associate with the object.
  6. (Optional) Click the Where Used tab to view where the object is used within the model.
  7. (Optional) Click the UDPtab to work with user-defined properties for the object.
  8. (Optional) Click the Notestab to view and edit user notes.
  9. (Optional) Click the Extended Notes tab to view or edit user notes.
  10. Click Close.

    The database is defined and the AlloyDB Database Editor closes.

For more information, refer to AlloyDB documentation.