Check out this valuable book by Jon Emmons on
Linux for the Oracle DBA for more tips and tricks.
Suppose there exists a need to find a UNIX script that searches
every file on the UNIX server for a file that queries the
Assume the name and location of the file have been completely
forgotten, and we need a script to quickly locate our SQL statement.
- The first step is to write a command that will display all
file names on the server. This is quite simple in UNIX, and it
returns a list of every file on the server:
- We now have a complete list of all of the
UNIX files. Because we know that the grep commands accepts file
names as an argument, we can use xargs to search each file for
our Oracle table name:
. -print|xargs grep -i dba_2pc_pending
find / -print
This ability to take a basic UNIX command and chain it with
other commands is a fundamental principal in UNIX shell programming
Get the Complete Details on
Linux System Management for Oracle DBAs
The landmark book
"Linux for the Oracle DBA: The
provides comprehensive yet specific
knowledge on administering Oracle on Linux. A
must-have reference for every DBA running or planning to run
Oracle on a Linux platform.
for 30% off directly from the publisher.
Burleson is the American Team
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
and include the URL for the page.
Copyright © 1996 - 2016
All rights reserved by
is the registered trademark of Oracle Corporation.