个人小记

13:44:04
 # lsof -i :80|grep -v "PID"|awk '{print "kill -9",$2}'|sh
  以上脚本可以清除Linux下80端口的进程


(未测试)
13:44:16
在Linux操作系统中

查看占用某一端口的进程是什么:#lsof -i:端口号

[root@oa test]# lsof -i:21

14:16:02
Cannot find ./catalina.sh. This file is needed to run this program. 这个明显是sh文件没有运行权限。chmod +x catalina.sh,ok

查询重复字段
select * from hcoit where hcoitvchco in(
SELECT t.hcoitvchco
FROM hcoit t
GROUP BY t.hcoitvchco
HAVING COUNT(t.hcoitvchco) > 1 )


PL/SQL DEVELOPER中禁用科学计数法:
Tools - Prefrence - SQL Window - check "Number fields to_char"

你可能感兴趣的:(sql,linux,脚本)