カワゴエ・ラボ技術者指南書

サイタマの住宅街に存在するあるラボの研究資料

2016-07-01から1ヶ月間の記事一覧

grepで先頭1文字目を判定する

以下のようなテキストを hoage@hogehoge[hoge]$ cat hogehoge.dat a b c d e f g h i 先頭1文字目がaとgのものだけを抽出できたりする hoge@hogehoge[hoge]$ cat hogehoge.dat | grep -E '^a|^g' a b c g h i

DBスペースの使用量を確認する

set lines 120 set pages 100 set term off tti off clear col col TABLESPACE_NAME format a15 col "SIZE(KB)" format a19 col "USED(KB)" format a19 col "FREE(KB)" format a19 col "USED(%)" format 990.99 select tablespace_name, to_char(nvl(total_b…

minusでSQL結果が一致するか確認する

SELECT 1, 2 FROM DUAL UNION SELECT 2, 3 FROM DUAL MINUS SELECT 1, 2 FROM DUAL; ※参考 http://www.shift-the-oracle.com/sql/minus-operator.html