-
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
-
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.
-
Vijay,
All i'm trying to see is all the tables & sequences within the same query...
Regards,
divroro12
-
Originally Posted by divroro12
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|