In the paper SQL Profiles (page 22) I described the data dictionary tables where the hints belonging to SQL profiles are stored. For example, with the following…
View More SQL Profiles in the Data DictionaryTag: oracle
Useful Gather Statistics Commands In Oracle
This article contains all the useful gather statistics related commands. 1. Gather dictionary stats: — It gathers statistics for dictionary schemas ‘SYS’, ‘SYSTEM’ and other…
View More Useful Gather Statistics Commands In OracleCURSOR_SHARING=SIMILAR AND FORCE – SOME EXAMPLES
The CURSOR_SHARING parameter basically influences the extent to which SQL statements (or cursors) can be shared. The possible values are EXACT which is the default…
View More CURSOR_SHARING=SIMILAR AND FORCE – SOME EXAMPLES12c: Optimizer_Dynamic_Sampling = 11
With default sampling level of 2 (from 10g onwards) , dynamic sampling is performed only for the objects for which statistics do not exist. If…
View More 12c: Optimizer_Dynamic_Sampling = 11Viewing the Library Cache Statistics
Add Space to shared pool The library cache miss ratio tells the DBA whether or not to add space to the shared pool, and it represents the…
View More Viewing the Library Cache StatisticsOracle/ SQL Wait Events
1. What are wait events? Wait events are characteristic parts of the Oracle kernel source code that can contain Oracle sessions during execution. Oracle provides statistical information…
View More Oracle/ SQL Wait EventsStreams Pool
Sometimes conventional wisdom isn’t so conventional, or common. As a case-in-point DBAs may believe that the STREAMS pool is reserved strictly for streams processes. That…
View More Streams PoolWhat is SQL PROFILE in oracle?
You might have heard of SQL profile and SQL baselines in performance tuning chapters. Lets today go through details about sql profile. What is SQL…
View More What is SQL PROFILE in oracle?Partition Pruning and NLS Settings
NLS (National Language Support) parameters are very useful for multilingual applications in an Oracle database. But it is important to understand their impact on query…
View More Partition Pruning and NLS SettingsHow to Lock, Unlock, Transfer Statistics in oracle
Locking Stats To prevent statistics being overwritten, you can lock the stats at schema, table or partition level. EXEC DBMS_STATS.lock_schema_stats(‘SCOTT’); EXEC DBMS_STATS.lock_table_stats(‘SCOTT’, ‘EMP’); EXEC DBMS_STATS.lock_partition_stats(‘SCOTT’,…
View More How to Lock, Unlock, Transfer Statistics in oracle