Home » RDBMS Server » Server Administration » Can dictionary tables get corrupt ?
Can dictionary tables get corrupt ? [message #49621] Thu, 31 January 2002 04:32 Go to next message
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
The Subject says it all, can dictionary tables get corrupted ?

I have a query which looks into all_indexes and all_ind_columns. The same query runs with a snap in prod, while takes A LOT of time in development. Both database are 81620 on the same server, with the same parameters except for the optimzer_mode which is 'choose' for prod and 'all_rows' for dev ?
Re: Can dictionary tables get corrupt ? [message #49622 is a reply to message #49621] Thu, 31 January 2002 05:36 Go to previous messageGo to next message
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
I got the solution. Went to Metalink and did some research.

Dictionary tables ALWAYS run best on rule_based optimization. So when my dev db was put into optimization_mode=all_rows, all queries involving dictionary tables took a LONG time. Same query in prod (in choose mode) was running in seconds.

Solution:
Chnaged the query and added hint

/*+ choose */

and all went well, results back in seconds.

That's it. Thought I would share it with other DBA's.

Conclusion:
The dictionary was NOT corrupt, my initial guess. What if it really get's corrupt ? Geez ...

Avoid using cost_based optimizated queries for dictionary tables. Always use rule_based optimization for dictionary tables.

NOTE: Metalink mentioned analyzing tables, but not recommended for sys tables (dictionary tables).
Re: Can dictionary tables get corrupt ? [message #49655 is a reply to message #49621] Fri, 01 February 2002 14:39 Go to previous messageGo to next message
Kassim Kasmani
Messages: 25
Registered: January 2002
Junior Member
Thank you for the information Sanjay, useful as always. BTW, what is META LINK and how do I become a member?
Re: Can dictionary tables get corrupt ? [message #49680 is a reply to message #49655] Mon, 04 February 2002 03:24 Go to previous messageGo to next message
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
Metalink is the Web site of Oracle where they have all tech support docs. I became a member with the CSI number my company has. I do not know how else you get in there.

In fact, Oracle tech support encourages you to do everything in Metalink, including creating TARs. Most of the times, you are better off searchig the Metalink site and getting answers/posts, than to actually open a TAR and get help from them. When you open a TAR, they respond to it and you can go and check them as needed. Then you can also put feedbacks there.

Good Luck.
Re: Can dictionary tables get corrupt ? -> URL [message #49681 is a reply to message #49655] Mon, 04 February 2002 03:27 Go to previous message
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
BTW,

http://metalink.oracle.com
Previous Topic: Re: Database Link problems
Next Topic: Re: I NEED HELP IN INSTALING ORACLE 8.1.6 CLIENT IN LINUX REDHAT VERSION 7.1 .WE TRIED SO MANY TIMES
Goto Forum:
  


Current Time: Tue Dec 24 10:13:27 CST 2024