How am i able to find out which schema a table belongs to ?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: How am i able to find out which schema a table belongs to ?

  1. #1
    Join Date
    Jan 2007
    Posts
    22

    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.

  2. #2
    Join Date
    Jun 2007
    Posts
    23
    You can query the all_tables view - there is an owner field in that view.

  3. #3
    Join Date
    Feb 2007
    Location
    UNDER MOON
    Posts
    44
    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.

  4. #4
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    Quote 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 06: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
  •  


Click Here to Expand Forum to Full Width