Save the following code to a script (such as "TabFinder.sql"), then run the script.
Section 1 -- Contents of "TabFinder.sql" script
Code:
accept tab prompt "Enter part (or all) of a table name to locate: "
SELECT owner, table_name
from all_tables
where table_name like upper('%&tab%')
order by 1,2
/
Section 2 -- Sample invocation of "TabFinder.sql":
Code:
SQL> @tabfinder
Enter part (or all) of a table name to locate: s_emp
OWNER TABLE_NAME
------------------------------ ----------
DHUNT S_EMP
SUMMIT S_EMP
TEST S_EMP
TEST S_EMP2
WAYYADA S_EMP
YADA S_EMP
YADA2 S_EMP
YADA4 S_EMP
8 rows selected.
@ 17:56 (20Jan05) UTC (aka "GMT" and "Zulu"),
@ 10:56 (20Jan05) Mountain Time
Click here to Donate to Tsunami Relief. 100% of your contributions here go to the victims...0% to administration.
They were "The First-Responder" to the disaster, with relief deliveries arriving before Red Cross and U.S. aid.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.