13

Possible Duplicate:
Oracle: get list of all tables?
How do I list all tables in a schema in Oracle SQL?

I want to list all table in another schema.

connect hr/hr; 
select table_name from user_tables;

but I want to skip the "connect" command. I want to run query from another schema. Is that possible to do?

Community
  • 1
  • 1
Flashidkz
  • 313
  • 4
  • 5
  • 13
  • [This looks like a dup](http://stackoverflow.com/questions/2247310/how-do-i-list-all-tables-in-a-schema-in-oracle-sql) – EvilTeach Dec 10 '11 at 14:16

1 Answers1

21
SELECT TABLE_NAME 
FROM ALL_TABLES 
WHERE OWNER='OTHER-SCHEMA'
EvilTeach
  • 28,120
  • 21
  • 85
  • 141