Escolar Documentos
Profissional Documentos
Cultura Documentos
http://www.orafaq.com/wiki/Data_Guard_FAQ
http://www.orafaq.com/wiki/Oracle_database_Backup_and_Recovery_FAQ
http://www.databasejournal.com/features/oracle/
To set to rule :
optimizer_mode=rule
to set to cost :
optimizer_mode=cost
and analyze the tables involved````There are actually four values for
OPTIMIZER_MODE: RULE and CHOOSE have already been explained.
The other two are specifically for the CBO: ``FIRST_ROWS will cause the optimizer
to favor an execution plan that will return the first row of information the
fastest, even if it means a longer overall execution time. This is a good choice
for situations such as forms that display one record at a time.``ALL_ROWS will
cause the optimizer to favor an execution plan that will complete in the shortest
amount of time, even if it takes longer to provide an initial response. Use this
setting if you are running something like summary reports.
````Also, note that you can override these settings at the session level with ALTER
SESSION commands and at the statement level with hints.
Question: I have large tables, What is the best Estimate Percentage when Analyzing
Statistics
Answer: In our tests and even in Oracle's documentation, 5% is considered to be
good.
In PL/SQL use
dbms_session.set_sql_Trace(TRUE);
To Enable Trace :
To Disable
Question: I have a sql statement that has a index on a char column that stores
numbers. Why is it not using the index when I use the following statement
So, the function disables the usage of index. Put the 5 in quotes ( '5' )
Question: I have specified a hint in my SQL statement. But the optimizer seems to
ignore it
Answer: If the hint is misspelled or not
specified correctly, the hint is ignored without an error. There is no
way of validating the hint usage without verifying the explain plan.
_TRACE_FILES_PUBLIC=TRUE
Question: I have just tkprof'ed a trace file and everything seems to be zero. Why?
Answer: You may have forgotten to set init.ora parameter
TIMED_STATISTICS=TRUE;
http://www.dbasupport.com/oracle/faq/Database_Administration/Performance_Tuning/SQL
_Tuning/
http://www.orafaq.com/wiki/Oracle_database_Backup_and_Recovery_FAQ
http://teachmeoracle.com/interview.html
http://www.orafaq.com/wiki/Real_Application_Clusters
http://www.orafaq.com/wiki/Data_Guard_FAQ
http://becomeappsdba.blogspot.com/2006/09/performance-tuning-overview-in-
oracle.html
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211.pdf