上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 1切换到db2实例用户下(uppdb) su - uppdb 2查看db2是否开启tcp服务 db2set -all 设置tcp服务:db2set DB2COMM=TCPIP 3查看是否配置db2 tcp服务名 db2 get dbm cfg |grep -i svcename 配置db2的tcp服 阅读全文
posted @ 2017-07-12 23:05 疯狂的蜗牛仔 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: Oracle中查询 select * from table where rownum<=10; DB2中查询 select * from table fetch first 10 rows only; MySql中查询 select * from table limit 10; 阅读全文
posted @ 2017-07-12 23:03 疯狂的蜗牛仔 阅读(6217) 评论(0) 推荐(0) 编辑
摘要: 1.内连接(inner join) 返回两个表符合条件的数据。 查询: SELECT DISTINCT p.user_id,p.user_name,r.c_id,r.job_id FROM person p INNER JOIN relative r ON p.user_id=r.user_id 结 阅读全文
posted @ 2017-07-12 23:02 疯狂的蜗牛仔 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 1.查看内存、磁盘等使用情况 命令:nmon 输入命令nmon之后,按M键memory,N键NetWork,J键查看目录使用情况。 2.查看防火墙 命令:smit 输入之后按照图形化操作 Communications Applications And Services——>TCP/IP——>Conf 阅读全文
posted @ 2017-07-12 22:53 疯狂的蜗牛仔 阅读(875) 评论(0) 推荐(0) 编辑
摘要: 对于普通Linux机器开关防火墙命令: 1重启后生效 chkconfig iptables off chkconfig iptables on 2即时生效 serivce iptables status service iptables start service iptables stop 对于A 阅读全文
posted @ 2017-07-12 22:52 疯狂的蜗牛仔 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 一、在Ubuntu下创建hadoop用户组合hadoop用户 1、创建hadoop用户组 addgroup hadoop 2、创建hadoop用户 adduser -ingroup hadoop hadoop 3、为hadoop用户添加权限 vim /etc/sudoers 4、切换到hadoop用 阅读全文
posted @ 2017-07-12 22:43 疯狂的蜗牛仔 阅读(4956) 评论(0) 推荐(0) 编辑
摘要: 1type() 获取对象的基本类型,判断两个对象类型。 2types 判断对象是否是函数,使用前要引入import types 3isinstance() 判断class类型,判断一个变量是否是某种类型中的一种,基本上能用type判断,都可以用isinstance。 4.dir() 获取对象的所有属 阅读全文
posted @ 2017-07-09 11:35 疯狂的蜗牛仔 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1.切片 取一个list或tuple的部分元素是非常常见的操作 取前三个元素 L[0:3],L[:3] 取倒数第一个元素:L[-1](倒数第一个元素的索引-1) 取后两个元素:L[-2:] 取前十个元素:L[:10] 取后十个元素:L[-10:] 前11-20个元素:L[10:20] 前10个数,每 阅读全文
posted @ 2017-07-09 11:15 疯狂的蜗牛仔 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 函数定义总结: 1.定义函数时,需要确定函数名和参数个数;2.如果有必要,先对参数的数据类型进行检查;3.函数体内部可以用return随时返回函数结果;4.函数执行完毕没有return语句时,自动return None;5.函数可以同时返回多个值,也就是一个tuple; 函数参数 位置参数:调用函数 阅读全文
posted @ 2017-07-09 10:58 疯狂的蜗牛仔 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-07-07 15:03 疯狂的蜗牛仔 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页