|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Handy UNIX Tips and Tricks for OracleWhile there are hundreds of UNIX commands for managing Oracle, there are a few UNIX tricks that are especially useful for the Oracle professional. For a complete listing of UNIX commands for Oracle, see the Oracle Press book “Oracle9i UNIX administration Handbook” by Donald K. Burleson. Locate a file anywhere on the UNIX server - You can use the UNIX find command to locate a particular file. Please note that in chapter 8 we extend this command to search for all files that contain specific strings: root> pwd
Locate Oracle files that contain certain strings - This is one of the most common shell command for finding all files that contain a specified string. For example, assume that you are trying to locate a script that queries the v$process table. You can issue the following command, and UNIX will search all subdirectories, looking in all files for the v$process table. root> find . -print|xargs grep v\$process
Locate recently created UNIX files - The following command is useful for finding UNIX files that have been recently added to your server. Part of the job of the Oracle DBA is monitoring the background_dump_dest and the user_dump_dest for trace files, and purging trace files that are no longer required. The following command lists all files that were created in the past two weeks: root>
find . -mtime -14 -print
root> find . -size +1024 –print
Get
list of Oracle products installed in the current $ORACLE_HOME – This
command is useful for locating all installed products within your Oracle
environment. http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 1996 - 2009 by
Burleson Enterprises, Inc. All rights reserved.
Oracle® is the registered trademark
of Oracle Corporation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||