GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Database  >  Database Admin
Go To First  |  Previous Question  |  Next Question 
 Database Admin  |  Question 13 of 73    Print  
How can you find all the tables created by an user?

  
Total Answers and Comments: 14 Last Update: June 29, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
July 05, 2005 05:27:09   
Rakesh Gautam        

RE: How can you find all the tables created by an user?
query dba_tables where owner ' '

group by owner

login as owner
select tname from tab;


 
Is this answer useful? Yes | No
September 22, 2005 05:46:38   
zakariya        

RE: How can you find all the tables created by an user...

hi

user_tables will list all the tables owned by the currently connected user. Or query the dba_tables for the required user.

Rgds

Zakariya


 
Is this answer useful? Yes | No
November 09, 2005 11:35:48   
Chiranjeevi Manne        

RE: How can you find all the tables created by an user...

Even it is possible by querying the dbd_objects view and using the where conditions based on owner <user_name> and object_type TABLE


 
Is this answer useful? Yes | No
November 14, 2005 06:07:46   
ASIM JAMAL        

RE: How can you find all the tables created by an user...

this could be found through

1. select table_name from sys.dba_tables where owner 'specified user'

2. select * from cat;

3.select * from sys.dba_objects where owner 'specified owner'


 
Is this answer useful? Yes | No
December 14, 2005 04:30:11   
poornima        

RE: How can you find all the tables created by an user...

hi

for the above question the answer is

select * from tab;

here * represents list of tables.


 
Is this answer useful? Yes | No
January 09, 2006 02:12:23   
Nagarjuna Reddy        

RE: How can you find all the tables created by an user...

Hi the solution for the above question is

either

SELECT COUNT(TABLE_NAME) FROM DBA_TABLES WHERE OWNER 'DBO';

If u have sys privilleges

or

SELECT COUNT(TABLE_NAME) FROM ALL_TABLES WHERE OWNER 'DBO';


 
Is this answer useful? Yes | No
February 17, 2006 04:18:01   
Ajay        

RE: How can you find all the tables created by an user...
select t_name from tab where user ' ' ;
 
Is this answer useful? Yes | No
March 24, 2006 05:54:57   
Star Nirav        

RE: How can you find all the tables created by an user...

Well but if i want to find out the size of the tables/indexes of particular users then which query i should fire... ?

Pls. let me know at the earliest.

Thanks in advance.

Star Nirav


 
Is this answer useful? Yes | No
May 27, 2006 02:47:02   
sumandb Member Since: May 2006   Contribution: 1    

RE: How can you find all the tables created by an user...

take it from DBA_TABLES or USER_TABLES...where u will select the Block.

1Block 8192 bytes

1 extent 1024 blocks


 
Is this answer useful? Yes | No
June 27, 2006 20:04:49   
Vimal Kumar        

RE: How can you find all the tables created by an user...

If you want to list out the tables of a different user name then DBA_TABLES would be the idle one.

Select table_name from DBA_TABLES where OWNER '---';

Note the owner name should be in capital letters only.

For listing out in your own account

select * from tab;

select t_name from tab;

options

select table_name from user_tables;


 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape