【发布时间】:2016-01-07 12:05:03
【问题描述】:
我想在 Windows 7 机器上设置一个 db2 服务器,但我无法从远程连接到数据库,只能从本地连接。我想我可能会错过一些配置。
1) 我关闭了防火墙 2)我的数据库信息是:
数据库 2 条目:
Database alias = SAMPLE
Database name = SAMPLE
Local database directory = C:
Database release level = f.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
netstat -a 命令的部分输出是:
TCP [::]:49155 WIN-whatever:0 LISTENING
TCP [::]:49164 WIN-whatever:0 LISTENING
TCP [::]:49165 WIN-whatever:0 LISTENING
TCP [::]:50000 WIN-whatever:0 LISTENING
如果我 ping 我的服务器,客户端没有响应
另外,如果我用nmap -sV <server_ip_address> 扫描它,它不会返回我打开的端口和使用它的服务
为了连接,我从客户端运行以下命令:
db2 list node directory
SQL1027N The node directory cannot be found.
catalog tcpip node <i am not sure what does here> remote <server_ip_address> server <port_number>
no output
这意味着有问题。我为节点尝试了几件事,但没有任何效果 我不知道发生了什么以及如何解决它。
感谢您的帮助
【问题讨论】:
标签: database db2 database-connection