To create a new database instance with the Database Manager CLI, you only need a few DBMCLI commands.
First execute the command db_create and define the first Database Manager operator.
dbmcli db_create <database_name> <dbm_user>,<password>
·
If you can
choose between multiple versions of the database software, make your choice by
specifying the option:
dbmcli db_create <database_name> <dbm_user>,<password> -R
<dependent_path>.
· If you want to install a new database on a remote server, also specify the option -n <server_node>. You also need authorization for the operating system:
dbmcli -n <server_node> db_create <database_name> <dbm_user>,<password> <os_user>,<password>
· On UNIX platforms there is no difference between remote and local communication. Therefore authorization is always required. When you are creating a new database instance locally, you can avoid communication and, therefore, authorization by using the option -s:
dbmcli -s db_create <database_name> <dbm_user>,< password>
For the other steps need to create the database instance, use a DBMCLI script:
dbmcli -d <database_name> -u <dbm_user>,<password> -i <script_file>
Example of a script: param_startsession
Modify the values of the database parameters
according to your requirements.
param_init
param_put
MAXUSERTASKS 5
param_checkall
param_commitsession
param_addvolume
1 SYS sys_001 F
param_addvolume 1 LOG LOG_001 F 2000
param_addvolume 1 DATA DAT_001 F 10000
db_admin
util_connect
util_execute
INIT CONFIG
util_activate
<sysdba>,<password>
load_systab
-ud <domain_password>