-
How am i able to find out which schema a table belongs to ?
select * from tabs where table_name = ' xxxxx' ;
did not tell you which schema it belongs to, how to find out ? Thx.
-
You can query the all_tables view - there is an owner field in that view.
-
From user end...
select object_name,owner
from all_objects
where object_name='XXXXX';
or
select table_name,owner
from all_tables
where table_name='XXXXX';
From dba end....
quary dba_tables,dba_segments,dba_objects.
-
Originally Posted by liakat
quary dba_tables,dba_segments,dba_objects.
Thread was already solved by paulb and you suggest poster to "quary" dba_segments to find out the owner of a table?
I'm wondering why you didn't suggest to "quary" dba_tab_columns too
Last edited by davey23uk; 07-24-2007 at 05:19 PM.
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|