optimzer dynmic smpling [message #669004] |
Wed, 28 March 2018 08:59 |
|
elixir86
Messages: 12 Registered: March 2018 Location: Madison, Wisconsin
|
Junior Member |
|
|
Hi Team,
GATHR_TbL_STS is taking a long time.
I researched online and found optimzer dynmic smpling has impact on performance.
How to find the current value of it, and change it thru sql plus, toad, or navigtr?
|
|
|
Re: optimzer dynmic smpling [message #669005 is a reply to message #669004] |
Wed, 28 March 2018 09:07 |
John Watson
Messages: 8961 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
There is no relationship between the setting for OPTIMIZER_DYNAMIC_SAMPLING and the time required to execute DBMS_STATS.GATHER_TABLE_STATS. What is the reference you found that said that there is?
And, by the way, when you post please try to use as clear language as you can, without any SMS-type abbreviations. Properly written posts are easier to read and more likely to gain responses.
|
|
|
|
|
|
|
Re: optimzer dynmic smpling [message #669010 is a reply to message #669006] |
Wed, 28 March 2018 11:45 |
John Watson
Messages: 8961 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
elixir86 wrote on Wed, 28 March 2018 16:22I am trying to figure out the exhaustively long run times. Long run times of what? If it is executions of dbms_stats.gather_%_stats, the time is largely dependent on the options you specified and the size of the objects. However, why it would be a problem? Is it interfering with anything?
|
|
|
|
Re: optimzer dynmic smpling [message #669017 is a reply to message #669010] |
Thu, 29 March 2018 02:25 |
Roachcoach
Messages: 1576 Registered: May 2010 Location: UK
|
Senior Member |
|
|
John Watson wrote on Wed, 28 March 2018 17:45elixir86 wrote on Wed, 28 March 2018 16:22I am trying to figure out the exhaustively long run times. Long run times of what? If it is executions of dbms_stats.gather_%_stats, the time is largely dependent on the options you specified and the size of the objects. However, why it would be a problem? Is it interfering with anything?
This.
I gathered stats on a ~30Tb database the other week in a little over 8 hours. I'll be surprised if it takes "a long time" on a reasonable size of data and with reasonable gather options.
|
|
|
Re: optimzer dynmic smpling [message #669019 is a reply to message #669017] |
Thu, 29 March 2018 02:34 |
John Watson
Messages: 8961 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Unless you give some basic information, no-one can help. Such as:
The command you are running.
How long it takes.
How long you want it to take.
The description of the table.
What problem this "long run time" is causing you.
--update Sorry, RC, I confused you with OP.
[Updated on: Thu, 29 March 2018 02:36] Report message to a moderator
|
|
|