Friday, September 16, 2011

du command

du -sh *
du -h --max-depth=1
du -k /u02 | sort -rn | less

screen command

$ screen
$ commands-here
(ctrl-a then ctrl-d) to detach
$ screen -r -ls (list screen session)
$ screen -r (to reattach to running screen session)

screen can be used to replace nohup

if you get error Cannot open your terminal '/dev/pts/1' - please check.
it is because you su to other user.

Try

sudo su - someuser
script /dev/null
screen

Thursday, September 8, 2011

AWR failed

when you can not run awr report because of awr is not initialized.
if you don't need old statistics.


run @?/rdbms/admin/catnoawr.sql
run @?/rdbms/admin/catawr.sql

shutdown immediate
startup