Checking the command history file in AIX

Hello,

The system has been rebooted and I need to see the commands executed in the system prior to restart by the oracle user.The history command is not showing me the commands executed prior to reboot.

Please advise.

Best regards,
Vishal

Oracle Alert logs have some information. They are sometimes (by DBA scripts) renamed during oracle instance shutdown and restart but almost always kept kept. If you want interactive oracle commands look in your shell history. Depending on your shell and how the oracle user configures some settings - the shell history file usually is in $HOME, and can be seen with

ls -a | grep '^\.'

It normally does not get overwritten (erased) during a reboot or a logout.

This file is the history of commands entered from the command line. Use vi to view it.

1 Like