这里通常有如下几种原因导致。
1:
这种问题多半是修改了默认端口,请确认
dm.ini
文件中
port_num
端口号是多少如果修改了,端口号,请按照以下方式来登录:
D:\dm7\bin>disql SYSDBA/SYSDBA@127.0.0.1:8236
服务器 [127.0.0.1:8236]: 处于普通打开状态
登录使用时间 : 66.208( 毫秒 )
disql V7.6.0.142-Build(2019.03.12-103811)ENT
SQL>
2: 检查数据库服务是否为启动状态。
[dmdba@localhost bin]$ ps -e f|grep dms
3:对于第一次使用dminit 初始化的DM实例,直接用服务启动时,也会出现该问题。
手工启动
[dmdba@localhost bin]$ ./dmserver '/dm/dmdbms/data/DAMENG/dm.ini'
4:检查服务器及本机防火墙状态。
红帽6 系列:
service iptables status/start/stop/restart/save -- 状态 / 开启 / 停止 / 重启防火墙 / 保存防火墙配置
chkconfig iptables off -- 永久关闭防火墙
chkconfig iptables on -- 永久启用防火墙
iptables -L -- 查看防火墙状态
iptables -F -- 清空防火墙配置
红帽7 系列:
systemctl stop firewalld -- 临时关闭防火墙
systemctl disable firewalld -- 永久关闭防火墙开机自起
systemctl status firewalld -- 查看防火墙状态
firewall-cmd --state -- 查看防火墙状态
firewall-cmd --add-port=5236/tcp -- 临时添加 5236 端口白名单
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69976220/viewspace-2695611/ ,如需转载,请注明出处,否则将追究法律责任。