达梦数据库集群修改初始化级别的系统参数步骤

查看当前参数:grep -i MAX_SESSIONS /data/dmdata/HIDC/dm.ini

查看当前是否有活动应用

select datediff(ss,last_recv_time,sysdate) ss,dbms_lob.substr(sf_get_session_sql(sess_id)) sql_text,sess_id,substr(clnt_ip,8,13) IP,clnt_ver from v$sessions where state='ACTIVE' order by 1 desc;

select count(*) from v$sessions where state='ACTIVE';

停止顺序:1.监视器(dmmonitor) 2. 备主(dmwatcher)3.主备(dmserver)

启动顺序:1.主备(dmserver)2.主备(dmwatcher) 3,监视器(dmmonitor)

监视器停起:./DmMonitorServiceTKOMS stop/start

dmwatcher停起:./DmWatcherServiceTKOMS02 stop/start

dmserver停起: ./DmServiceTKOMS02 stop/start

你可能感兴趣的:(数据库)