Useful Unix commands for DBAs
Here are some useful Unix/Linux commands which you will find handy in your day-to-day life as anOracle DBA. Most of these commands are just query commands and will not change / alter anything onthe operating system. Commands whch can change / alter anything at operating system level aredenoted with sign.
However please use due diligence in using these commands
. Please alsonote that the output may differ depending on the version and flavor of Unix that you are using.Do give your feedback, suggestions and contribution to improve this page.
Display total RAM (Memory) on the server
Tru64 Unix uerf –r 300 | grep –i memSolaris prtconf | grep –i memLinux freeHP-UX swapinfo –tmAIX lsdev –C | grep memlsattr –El <name from previous command>$ lsdev -C | grep memOutput on AIXmem0 Available 00-00 Memory$ lsattr -El mem0size 1536 Total amount of physical memory in Mbytes Falsegoodsize 1536 Amount of usable physical memory in Mbytes FalseGo top
Display paging utilization
(provides a snapshot of the current utilization of each of the paging spaces on a system)
Output on AIXPage Space Physical Volume Volume Group Size %Used Active Auto Type paging01 hdisk4 dbvg2 2560MB 9 yes yes lvhd6 hdisk0 rootvg 512MB 42 yes yes lvlsps -s
(provides a summary of the total active paging space and its current utilization)
Output on AIXTotal Paging Space Percent Used4096MB 1%Go top