Which three statements are true about the effect of this command?

Examine this command:
SQL > exec DBMS_STATS.SET_TABLE_PREFS (‘SH’, ‘CUSTOMERS’, ‘PUBLISH’, ‘false’);
Which three statements are true about the effect of this command?

Examine this command:
SQL > exec DBMS_STATS.SET_TABLE_PREFS (‘SH’, ‘CUSTOMERS’, ‘PUBLISH’, ‘false’);
Which three statements are true about the effect of this command?

A.
Statistics collection is not done for the CUSTOMERS table when schema stats are gathered.

B.
Statistics collection is not done for the CUSTOMERS table when database stats are gathered.

C.
Any existing statistics for the CUSTOMERS table are still available to the optimizer at parse
time.

D.
Statistics gathered on the CUSTOMERS table when schema stats are gathered are stored as
pending statistics.

E.
Statistics gathered on the CUSTOMERS table when database stats are gathered are stored as
pending statistics.

Explanation:
* SET_TABLE_PREFS Procedure
This procedure is used to set the statistics preferences of the specified table in the specified
schema.
* Example:
Using Pending Statistics
Assume many modifications have been made to the employees table since the last time statistics
were gathered. To ensure that the cost-based optimizer is still picking the best plan, statistics
should be gathered once again; however, the user is concerned that new statistics will cause the
optimizer to choose bad plans when the current ones are acceptable. The user can do the
following:
EXEC DBMS_STATS.SET_TABLE_PREFS(‘hr’, ’employees’, ‘PUBLISH’, ‘false’);
By setting the employees tables publish preference to FALSE, any statistics gather from now on

will not be automatically published. The newly gathered statistics will be marked as pending.



Leave a Reply 7

Your email address will not be published. Required fields are marked *


Sayed

Sayed

C,D,E

Max

Max

Sayed you are really great!

Luca

Luca

C D E.
https://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_stats.htm#i1049486
A and B can’t be, because they say that “Statistics collection is not done for the CUSTOMERS table”, whereas the right behavior is that the newly gathered statistics will be marked as pending.

If the pending statistics generate sound execution plans, they can be published:

EXEC DBMS_STATS.PUBLISH_PENDING_STATS(‘hr’, ’employees’);
EXEC DBMS_STATS.SET_TABLE_PREF(‘hr’, ’employees’, ‘PUBLISH’, ‘true’);

Jass

Jass

Hey Guys

Does anyone have latest dump of 1z0-062.Please send me on [email protected].

It will really hep me a lot. Thanks