Home » SQL & PL/SQL » SQL & PL/SQL » user sys to query the name of tables created by other user
user sys to query the name of tables created by other user [message #23358] Wed, 04 December 2002 02:40 Go to next message
Armando
Messages: 6
Registered: December 2002
Junior Member
being a user sys(dba) how can i query the names of all tables created by a certain user.

i tried this query command but it gave me an error output.
select * from scott.tab;

thanks in advance,
armando
Re: user sys to query the name of tables created by other user [message #23380 is a reply to message #23358] Wed, 04 December 2002 12:06 Go to previous messageGo to next message
ann
Messages: 24
Registered: August 2000
Junior Member
try select * from dba_tables...who is the owner of the table? Sys, apps, applsys....etc.
Re: user sys to query the name of tables created by other user [message #23383 is a reply to message #23358] Wed, 04 December 2002 19:36 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9094
Registered: November 2002
Location: California, USA
Senior Member
Query to select the names of all tables created by user SCOTT:

SELECT table_name
FROM all_tables
WHERE owner = 'SCOTT';
Re: user sys to query the name of tables created by other user [message #23394 is a reply to message #23358] Thu, 05 December 2002 02:16 Go to previous message
Armando
Messages: 6
Registered: December 2002
Junior Member
thank you very much for your answer.

regards,
armando
Previous Topic: Informix -> Oracle migration
Next Topic: Create a Database link
Goto Forum:
  


Current Time: Wed May 15 00:42:48 CDT 2024