随笔分类 -  数据库

各种数据库应用
摘要:# if u clone a vm with DB2 installed, it may not work due to the different hostname, so need to change DB2's configuration listed belowif [ -e /db2home/$db2inst1_username/sqllib/db2nodes.cfg ]; then chmod 666 /db2home/$db2inst1_username/sqllib/db2nodes.cfg su $db2inst1_username -c "cp /db2h 阅读全文

posted @ 2012-03-29 13:35 bannyle 阅读(269) 评论(0) 推荐(0)

摘要:1. DBI1130EEnvironment: DB2: v9.7.0.4 OS: RHEL 6.2 with x-windowProblem: The IBM Tivoli System Automation for Multiplatforms (SA MP) could not be installed or updated because system prerequisites were not met. See the log file /tmp/prereqSAM.log.26279 for detailsAnswer: As Tivoli Directory Serve... 阅读全文

posted @ 2012-02-23 19:09 bannyle 阅读(250) 评论(0) 推荐(0)

摘要:问题描述: 在克隆来的VM里安装DB2 SERVER, 结果出现端口被占用的情况,端口从5000换到50001,一样的错误提示原因: 克隆来的VM的IP地址是被克隆VM的IP,修改之后虽然可以使用,但在/etc/hosts里还是不匹配,通过hostname -i可以看到这个ip地址与正在使用的ip地址并不匹配,所以修改hosts里的ip地址,使其valid就可以了 阅读全文

posted @ 2012-02-15 10:54 bannyle 阅读(155) 评论(0) 推荐(0)

摘要:第一个问题:远程创建Database 近段时间项目的原因,需要通过远程方式在DB2 server上创建DB,执行创建表格插入数据等操作,创建表格和插入数据等功能可以通过ant提供的SQL完成,而创建DB却不行,于是采用了DB2 client这个工具,它的理念是通过在本地创建一个node,连接到远程DB2 server上,然后就可以本地进行操作了。 其实远程创建DB可以通过SSH的方式解决,命令:ssh-l{remoteusername}{remotehost}{cmd}, 例如 ssh-ldb2inst1 9.186.113.102 "db2listdbdirectory" 阅读全文

posted @ 2011-12-23 14:34 bannyle 阅读(1908) 评论(0) 推荐(1)

导航