TABLE COUNT
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: TABLE COUNT

  1. #1
    Join Date
    Jan 2001
    Posts
    91

    Post

    Can someone tell me if theres a sql command that I can run that will tell me exactly how many tables are in my database?

    Thanks

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    SELECT COUNT(*) FROM DBA_TABLES;
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  3. #3
    Join Date
    Jan 2001
    Posts
    91
    Thanks

    is there another sql command that can tell me if the table is emtpy or not??

    Thanks you guys are great I've learned a lot over the past month


    Tim


  4. #4
    Join Date
    Feb 2001
    Posts
    184
    Hi Please Issue this
    exec dbms_utility.analyze_schema('yourschemaname','compute');

    Then
    Select count(*) from dba_tables
    where row_num = 0;

    Thanks..


  5. #5
    Join Date
    Jan 2001
    Posts
    91
    Thanks Jmodic

  6. #6
    Join Date
    Oct 2000
    Posts
    123
    [QUOTE][i]Originally posted by Oracledba8 [/i]
    [B]Hi Please Issue this
    exec dbms_utility.analyze_schema('yourschemaname','compute');

    Then
    Select count(*) from dba_tables
    where row_num = 0;

    Thanks..

    [/B][/QUOTE]

    Opps, it should be num_rows.

    Take care

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