Entering content frame

This graphic is explained in the accompanying text Example: How to Create and Configure a Database Instance Locate the document in the library structure

Use

You use the Database Manager CLI to define the name of a new database instance on the local computer, adapt the system default values for the database parameter file to your requirements, define log and data volumes, define the name and password for the database system administrator, and load the system tables.

In the Database Manager CLI, you can either execute the individual DBM commands one after the other, or use a script to do this. If you decide to use a script, save the DBM commands for steps 3-11 in a file, execute steps 1 and 2. In step 2, specify the option –i and the name of the script.

 

For the prerequisites, see the description of the command db_create

Procedure

...

       1.      Calling the Database Manager CLI and creating the new database instance DEMODB, defining the first DBM operator with user name DBM and password DBM.

>dbmcli db_create DEMODB DBM,DBM

Alternative command lines:

If you have several versions of the database software installed on your computer, you need to enter additional information. Use the option -R <dependent_path> to specify the version for which you want to create the database instance.

>dbmcli -R "C:\Program Files\SDB\7.6.00" db_create DEMODB DBM,DBM

 

       2.      Logging on to the Database Manager CLI as operator DBM with password DBM, connecting to the database instance DEMODB (working in session mode, see Concepts of the Database System, Operating Mode of Command Line Programs):

>dbmcli -d DEMODB -u DBM,DBM

 

       3.      Open a parameter session

>param_startsession

 

       4.      Initializing the database parameter

This enters the first Database Manager operator defined above for the parameter CONTROLUSERID in the parameter file.

>param_init

 

       5.      Changing the database parameter MAXUSERTASKS to the value 5.

>param_put MAXUSERTASKS 5

 

       6.      Checking all database parameters

>param_checkall

 

       7.      Confirming changes to the database parameter file

>param_commitsession

 

       8.      Creating data and log volumes

                            a.      Creating data volume No. 1 with name DAT_001, type FILE, size 10000 pages:

>param_addvolume 1 DATA DAT_001 F 10000

                            b.      Creating log volume No. 1 with name LOG_001, type FILE, size 2000 pages

>param_addvolume 1 LOG LOG_001 F 2000

 

       9.      Transferring the database instance to the ADMIN operational state:

>db_admin

   10.      Initializing the new database instance and creating the database system administrator with user name DBADMIN and password SECRET:

>db_activate DBADMIN,SECRET

 

   11.      Loading the system tables

>load_systab

Result

You have created the database instance DEMODB. The database instance is now in the ONLINE operational state. For this database instance, there is currently only the first DBM operator with user name DBM and the database system administrator with user name DBADMIN.

 

Leaving content frame