Familar Unix Files for DBA

As a Oracle DBA what are all the UNIX file you should be familar with?

Questions by shanthiavari

Showing Answers 1 - 3 of 3 Answers

kalyan_ck

  • Mar 30th, 2009
 

To check the process use
ps -ef |grep pmon
ps -ef

To check the alert log file
tail -f alert.log

To check the cpu usage
top
vmstat 2 5

  Was this answer useful?  Yes

fnlin

  • Oct 31st, 2010
 

The question refers to a "file", not a process. As far as file, DBA should check the file system capacity and usage via "df -hk ." command (or "df -hk /db?", if the database is using /db? directories for datafile, etc.) on Unix.  Of course, you may ask SA what kind of file system /db? reside. Monitor a file "tail -f filename" may need sometimes. Copy a file ("cp original_filename new_filename") or move a file ("mv original_filename new_filename") (note: mv will keep the original timestamp and cp will use current timestamp) is frequently used, too. To create a new empty file, "touch filename" or "> filename"will be needed once awhile. To see the contents of a file, "vi filename" or "cat filename" is a common way. To delete (remove) a file, "rm filename". To delete all archive log files in a directory (and subdirectories) which are older than 7-days, "find . -type f -name "*.trc" -meantime +7 -exec rm {};" To change a permission of a file "chmod nnn filename" (Type "man chmod" for the nnn details).

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions