Skip to Main Content

MySQL Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

List of all tables in Oracle DB

User_BC3L1Mar 11 2022

Where can I find a list of all tables? I need to write a query of all employees with all the benefits they have selected.

Comments

Nikolay Savvinov
Hi,

1) unless index is in an invalid or unusable state, it is very unlikely that it would ever need a rebuild
http://richardfoote.files.wordpress.com/2007/12/index-internals-rebuilding-the-truth.pdf

2) ANALYZE is obsolete, don't use it anymore
3) DBMS_STATS is the way to go (you don't necessarily have to call GATHER_INDEX_STATS explicitly, you can also use CASCADE=>true option in GATHER_TABLE_STATS)

Best regards,
Nikolay
user4295847
Thank for your reply.

Please explain me Index Rebuild ONLINE
and what is the functionality for the DBMS_STATS.GATHER_INDEX and when we need to use ?
unknown-698157
Why are you asking to rephrase what is already explained in the online documentation?

-----------
Sybrand Bakker
Senior Oracle DBA
saratpvv
Please explain me Index Rebuild ONLINE
Jonathan sir have written good article on this have a look.
http://jonathanlewis.wordpress.com/2009/06/05/online-rebuild/
Nikolay Savvinov
Hi
user4295847 wrote:
Thank for your reply.
Please explain me Index Rebuild ONLINE
and what is the functionality for the DBMS_STATS.GATHER_INDEX and when we need to use ?
Why don't we go another way: you spend a few days working through the links and online documentation, and then if you have any questions left, you ask them here.


Best regards,
Nikolay
user4295847
Yes Understand the index rebuild oniline from your link..

Please explain more about DBMS_STATS.GATHER_INDEX_STATS and when we can use ?
Fran
check:
http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_stats.htm#i1036276
user4295847
Hi ,

I am able to understand the DBMS_STATS from this link.

Could you please give me 2 lines answers for what are the advantages if we use DBMS_STATS
Fran
Answer
In order to make good use of the cost based optimizer, you need to create statistics for the data in the database.
Marked as Answer by user4295847 · Sep 27 2020
user4295847
Thanks Fran..
1 - 10

Post Details

Added on Mar 11 2022
2 comments
63 views