我们今天主要向大家讲述的是在aix、linux、windows系统下知道DB2端口号
的实际操作方案,相信如果你掌握了在aix、linux、windows系统下知道DB2端口号的实际操作方案这项技术,会在以后的学习或是工作中带来很大的帮助。
DB2安装完成后,tcp/ip连接端口默认为50000,可通过下面的方法确认:
1、使用命令 DB2 get dbm cfg |find "SVCENAME" 查找到TCP/IP 服务名
2、到系统配置文件里找到service name 对应的 port number
windows:查看 c:\windows\system32\drivers\etc\services aix: 查看 /etc/services
如下:
- DB2_
DB2 60000/tcp
- DB2_
DB2_1 60001/tcp
- DB2_
DB2_2 60002/tcp
- DB2_
DB2_END 60003/tcp
DB2c_
DB2 50000/tcp
3、使用 netstat -an 命令查找tcp/ip 服务的端口
4、另外附上一个关于linux系统下的查找方法(摘抄帖子):
-
In JDBC configurations for WPA, you have to specify the port that DB2 is listening on. I usually look for
-
/etc/services or try one of 50000/50001 and it usually works. In SUSE Linux, both the solutions did
-
not work and there was another process (Multithreaded routing toolkit aka mrt) was listening on port 50000.
-
So how do we find out the
DB2 port in a reliable way? Read on...
-
Step 1: Set the
DB2 environment.
-
$ . ~
DB2inst1/sqllib/
DB2profile
-
Step 2: Find the service name for
DB2 instance. It basically involves running
-
"
DB2 get dbm cfg" command and finding a line containing SVCENAME.
-
$
svc
=`
DB2 get dbm cfg | grep SVCENAME | cut
-d
= -f2 | awk '{print $1}'`
-
Step 3: Find the service name that you got from Step 2 in /etc/services or %SYSTEMROOT
-
%\system32\drivers\etc\services. That is the port
DB2 is listening on.
-
$ grep $svc /etc/services
-
Hope you find this useful.
以上的相关内容就是对aix、linux、windows系统下如何知道DB2端口号的介绍,望你能有所收获。
上述的相关内容就是对aix、linux、windows系统下如何知道DB2端口号的描述,希望会给你带来一些帮助在此方面。
分享到:
相关推荐
Linux和windows下查看DB2端口号
Windows系统安装DB2通用数据库企业版,安装说明详细并有截图说明。
WINDOWS下安装DB2并使用客户端访问(全程截图).rar 环境: DB 9.5 OS:XP DB2客户端:toad for db2 4.0 懒得写WORD文档了,全部都是截图,很完整
windows 2003 下 DB2双机集群配置手记
IBM DB2 10.5 for Linux, UNIX, and Windows LinuxMWindowsODDB2 20M\mkE
Windows 64位版本的DB2安装压缩包,找了许久,亲测可用
AIX和WINDOWS下DB2数据库互导
1.9. windows/Linux或Unix下查看DB2端口号 31 1.10. 尽量让fetch first n row only或者分页的时候结合optimize for n rows使用(原) 32 1.11. 格式化字符串(原) 33 1.12. 10大DB2优化技巧 33 1.13. 使用DB2的整数转换...
大家可能都配置过unix下的DB2双机,但是windows下用mscs实现的并不多见,我也一样轻敌了,结果便有了这份手记,希望给需要的朋友起个提示作用!
DB2数据库安装,DB2从windows系统下迁移至linux系统上,DB2的备份还原,db2数据库调优,db2的Oracle兼容模式开启
压缩包为适用于 Winddows的DB2版本 V11.1的数据库,博主大费周折找了好久才找到的,得来不易,且下且珍惜。
IBM DB2通用数据库Windows版快速入门
windows版 ...经过测试,全部Windows系统(包括Win10、Win7、Win8、WinXP等)都能正常运行,可放心下载使用。 1)首先是解压 2)点击setup.exe开始安装 选择典型安装,点击下一步 。。。 下一步
win7系统下安装和卸载db2数据库图例详解
db2数据库从AIX操作系统移植到windows XP
数据库DB2的windows操作系统64位odbc 驱动程序 windows 64位,可以提供通过odbc连接DB2数据库。
sesu linux修改主机名称,以及修改DB2配置信息
DB2 V11.5 linuvx + Windows双版本下载 官方LINUX环境DB2安装参考文档: https://www.ibm.com/support/knowledgecenter/SSEPGG_11.5.0/com.ibm.db2.luw.qb.server.doc/doc/t0008875.html ...
db2启动错误db2启动错误db2启动错误db2启动错误db2启动错误db2启动错误