You create a new database instance on a local or remote server. At the same time you define the first Database Manager operator with all authorizations for this database instance.
You can enter options to define which of the versions of database software available on the database computer should be used to create this database instance, and to determine further properties of this database instance.
On creation of the new database instance, only the first Database Manager operator defined during creation can access this database instance. This operator has been given all the required authorizations. The operator can carry out administrative tasks and create further Database Manager operators and database users.
You need to complete further steps before you can start working with the newly created database instance.
See also:
Concepts of the Database System, Creating and Configuring a Database Instance
db_create [-a|-auto] [-g <group>] [-u] <database_name> <dbm_user>,<dbm_user_password> [<os_user>,<os_user_password>]
Options
Option |
Description |
-a | -auto |
Under Microsoft Windows the service entry Start-up-type in the Control Panel is set to automatic. Under the UNIX operating system this parameter is ignored. |
-g <group> |
For UNIX only: You assign your database files to an operating system user group other than the standard group and can thus protect the files from unauthorized access. |
-u |
Operating system user specification with option –u (only for Microsoft Windows): The service for starting the database kernel should run under the operating system user specified at the end of the DBM command. |
<os_user> |
Name of the operating system user for the remote computer If you want to create the database instance on a remote server, you must also specify the operating system user for this server. If the logon to the operating system fails, the database instance cannot be installed. |
<os_user_password> |
Operating system user’s password |
<database_name> |
Name of database instance Note the Conventions for Database Names. The database system automatically converts the database name into upper-case letters. |
<dbm_user> |
Database Manager Operator (DBM Operator) See Conventions for User Names and Passwords. The database system automatically converts the user name into upper-case letters. |
<dbm_user_password> |
Password of the Database Manager operator. The database system automatically converts the password into upper-case letters. |
OK
In the event of errors, see Reply Format
On Microsoft Windows:
Logging on
to the Database Manager CLI, creating a local database instance with the name
DEMODB, defining
the first Database Manager operator DBM with
the password DBM:
dbmcli db_create DEMODB DBM,DBM
Logging on to the Database Manager CLI, creating a local database instance with the name DEMODB using the software stored under C:\Program Files\SDB\7500, defining the DBM operator DBM with the password DBM:
dbmcli -R "C:\Program Files\SDB\7500" db_create
DEMODB
DBM,DBM
Logging on
to the Database Manager CLI, creating a database instance with the name
DEMODB on the
remote server GENUA, defining
the DBM operator DBM with the
password DBM,
logging on
as operating system user ANNA
with the
password BLACK
to the
remote server:
dbmcli –n GENUA db_create DEMODB
DBM,DBM ANNA,BLACK
Under UNIX:
Logging on to the Database Manager CLI, creating a local database instance with the name DEMODB, defining the Database Manager operator DBM with the password DBM,suppressing identification of the operating system user with the option –s
dbmcli -s db_create
DEMODB
DBM,DBM
See also:
Example: How to Create and Configure a Database Instance