DM8命令行創建實例與服務

創建實例

[root@dm1 ~]# su - dmdba
Last login: Mon Mar  2 16:39:22 CST 2020 on :0
[dmdba@dm1 ~]$ dminit PATH=/dm/dmdbms/data DB_NAME=dm1 INSTANCE_NAME=dm1
initdb V8
db version: 0x7000a
file dm.key not found, use default license!
License will expire on 2020-11-21

 log file path: /dm/dmdbms/data/dm1/dm101.log


 log file path: /dm/dmdbms/data/dm1/dm102.log

write to dir [/dm/dmdbms/data/dm1].
create dm database success. 2020-03-02 16:48:54

創建服務 


[root@dm1 root]# ./dm_service_installer.sh -t dmserver -dm_ini /dm/dmdbms/data/dm1/dm.ini -p dm1
Created symlink from /etc/systemd/system/multi-user.target.wants/DmServicedm1.service to /usr/lib/systemd/system/DmServicedm1.service.
Finished to create the service (DmServicedm1)
[root@dm1 system]# systemctl enable DmServicedm1.service
[root@dm1 system]# systemctl start  DmServicedm1.service
[dmdba@dm1 ~]$ disql sysdba
password:無密碼

[dmdba@dm1 ~]$ disql sysdba/sysdba@dm1:5236

Server[dm1:5236]:mode is normal, state is open
login used time: 3.364(ms)
disql V8


[root@dm1 root]# pwd
/dm/dmdbms/script/root
[root@dm1 root]#  ./dm_service_installer.sh -h
Usage: dm_service_installer.sh -t service_type [-p service_name_postfix] [-dm_ini dm_ini_file]
        [-watch_ini watch_ini_file ] [-wmon_ini wmon_ini_file] [-rww_ini rww_ini_file]
        [-watcher_ini watcher_ini_file ] [-monitor_ini monitor_ini_file] [-cssm_ini cssm_ini_file]
        [-dfs_ini dfs_ini_file] [-dcr_ini dcr_ini_file]
        [-dss_ini dss_ini_file] [-drs_ini drs_ini_file] [-dras_ini dras_ini_file] [-dcs_ini dcs_ini_file] [-server server_info]
        [-m open|mount] [-y dependent_service]
  or dm_service_installer.sh [-s service_file_path]
  or dm_service_installer.sh -h

   -t               Service Type, include: dmimon,dmap,dmserver,dmwatcher,dmmonitor,dmcss,dmcssm,dmasmsvr,dmdcs,dmdrs,dmdras,dmdss.
   -p               Service Name Postfix, is invalid for dmimon,dmap.
   -dm_ini          The path of the dm.ini file.
   -watch_ini       The path of the dmwatch.ini file.
   -wmon_ini        The path of the dmwmon.ini file.
   -rww_ini         The path of the dmrww.ini file.
   -watcher_ini     The path of the dmwatcher.ini file.
   -monitor_ini     The path of the dmmonitor.ini file.
   -dcr_ini         The path of the dmdcr.ini file.
   -cssm_ini        The path of the dmcssm.ini file.
   -dss_ini         The path of the dss.ini file.
   -drs_ini         The path of the drs.ini file.
   -dras_ini        The path of the dras.ini file.
   -dcs_ini         The path of the dcs.ini file.
   -dfs_ini         The path of the dfs.ini file.
   -server          server info
   -m               Set the start modeof the server, include:open or mount, is valid for dmserver only, select.
   -y               Set the dependent service, this parameter is valid for dmserver,dmasmsvr in systemd service environment.
   -s               The path of the service script file, if set this parameter and ignore other parameter but -y.
   -h               Help

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章