ablog

不器用で落着きのない技術者のメモ

2010-01-25から1日間の記事一覧

Perl ワンライナー(-nまたは-pオプションつき)に引数を渡す方法

テストのため、hoge.log を作成する。 $ perl -le 'for(1..10){print}' > hoge.log $ cat hoge.log 1 2 3 4 5 6 7 8 9 10 以下の例では、引数のうち「hoge.log」をファイルとしてオープンして一行ずつ処理し、「1」と「2」はワンライナーの中で引数として受…

パーティション表の統計情報がいつ収集されたか確認する SQL

スキーマ単位でパーティション表の統計情報が最後に収集された日時を表示する SQL。 set pagesize 50000 set linesize 200 col table_owner for a10 col table_name for a20 col index_owner for a10 col index_name for a20 col partition_name for a20 col…