10 2017 档案

摘要:select …,level from tablename start with 条件1 connect by 条件2 where 条件3order by level desc ; start with 子句:遍历起始条件,有个小技巧,如果要查父结点,这里可以用子结点的列,反之亦然。 connect 阅读全文
posted @ 2017-10-28 09:42 酸奶加绿茶 阅读(211) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/sekon/archive/2011/12/29/2306665.html 阅读全文
posted @ 2017-10-24 15:35 酸奶加绿茶 阅读(528) 评论(0) 推荐(0) 编辑
摘要:select * from (select * from tablename order by createdate desc) aaa -- 按创建时间倒排序 where rownum <= 1000; 阅读全文
posted @ 2017-10-24 10:36 酸奶加绿茶 阅读(671) 评论(0) 推荐(0) 编辑
摘要:1) 统计当前文件夹下文件的个数ls -l |grep "^-"|wc -l2) 统计当前文件夹下目录的个数ls -l |grep "^d"|wc -l 3) 统计当前文件夹下文件的个数,包括子文件夹里的ls -lR|grep "^-"|wc -l 4) 统计文件夹下目录的个数,包括子文件夹里的ls 阅读全文
posted @ 2017-10-23 15:10 酸奶加绿茶 阅读(537) 评论(0) 推荐(0) 编辑
摘要:sqlplus /@ORACLE_SID as sysdba; 其中ORACLE_SID为具体的实例名称,比如连接到orcl实例就执行命令:sqlplus /@orcl as sysdba;select name from v$database;可以看到当前确实连接到了实例orcl. 阅读全文
posted @ 2017-10-23 15:05 酸奶加绿茶 阅读(3196) 评论(0) 推荐(0) 编辑
摘要:1.下载nmon https://zh.osdn.net/projects/sfnet_nmon/downloads/nmon_x86_64_rhel6/ 2../nmon_x86_64_rhel6 执行 3.后台运行 为了配合性能测试,我们往往需要将一个时间段内系统资源消耗情况记录下来,这时可以使 阅读全文
posted @ 2017-10-23 11:37 酸奶加绿茶 阅读(272) 评论(0) 推荐(0) 编辑
摘要:1. 阅读全文
posted @ 2017-10-20 15:52 酸奶加绿茶 阅读(273) 评论(0) 推荐(0) 编辑
摘要:exec 是find命令的一个重要参数 -exec command:command 为其他指令,-exec后面可再接额外的指令来处理搜寻到的结果。 { }代表的是「由 find 找到的内容」,如上图所示,找到的结果会被放置到 { } 位置中; 注意{ }前后有空格。-exec一直到 ; 是关键字,代 阅读全文
posted @ 2017-10-20 15:11 酸奶加绿茶 阅读(408) 评论(0) 推荐(0) 编辑
摘要:SELECT segment_name AS TABLENAME,round(BYTES/1024/1024,2) FROM user_segments WHERE segment_name='表名'。 查出来的是M为单位; select tt1.table_name, tt1.length1, t 阅读全文
posted @ 2017-10-19 11:29 酸奶加绿茶 阅读(4309) 评论(0) 推荐(0) 编辑

喜欢请打赏

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示