DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Query showing tables/sequences

  1. #1
    Join Date
    Nov 2006
    Posts
    158

    Query showing tables/sequences

    Hi All,

    Can someone please help me with a query that can show all the tables & associated sequences within the same schema in an Oracle database?
    Regards,

    divroro12

  2. #2
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865
    Hi Divro -

    I believe we don't have any views available to query the tables and associated sequences.

    The way i look is if the sequences are created with common naming method like TABLENAME_SEQ with that we can identify for which table that particular sequence is created.



    Thanks,
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

  3. #3
    Join Date
    Nov 2006
    Posts
    158
    Vijay,

    All i'm trying to see is all the tables & sequences within the same query...
    Regards,

    divroro12

  4. #4
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote Originally Posted by divroro12 View Post
    Hi All,

    Can someone please help me with a query that can show all the tables & associated sequences within the same schema in an Oracle database?

    There is no association per-se in between tables and sequences so Oracle has no way to keep track of them

    This is the time when you should go to your design documentation and check the usage of each Sequence.
    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