1)CURSOR_SHARING: •The optimizer generates the execution plan based on the presence of the bind variables but not the actual literal values. •Based on the settings of this parameter -CURSOR_SHARING it converts literal values in SQL statements to bind variables and affect the execution plan of SQL statements. •This parameter determines what kind of SQL statements [...]
Archive for January, 2011
Parameters that control the behavior of Query Optimizer
Posted in Performance Tunning on January 29, 2011 | Leave a Comment »
About PGA_AGGREGATE_TARGET parameter
Posted in Performance Tunning, tagged Database, Oracle, Oracle Database, Parameter, sql on January 29, 2011 | Leave a Comment »
In order to make you understand About PGA_AGGREGATE_TARGET parameter let’s have a look at parameter *_AREA_SIZE. SQL> SHOW PARAMETER _AREA_SIZE NAME TYPE VALUE ———————————— ———– —————————— bitmap_merge_area_size integer 1048576 create_bitmap_area_size integer 8388608 hash_area_size integer 131072 sort_area_size integer 65536 workarea_size_policy string AUTO Here we see the parameter workarea_size_policy is set to AUTO because we have set [...]
Overview of Oracle Clusterware and Oracle RAC
Posted in RAC, tagged Computer cluster, Database, High availability, Oracle, Oracle Clusterware, Oracle RAC, sql on January 24, 2011 | Leave a Comment »
Now we are going to learn RAC environment. In a database whenever you query from V$database to know the name of the database and want to know the name of the instance from v$thread they return similar result. Suppose, SQL> select name from v$database; NAME ——— DBASE SQL> select instance from v$thread; INSTANCE ——————————————————————————– dbase [...]
Table fragmentation & how to avoid same
Posted in Performance Tunning, tagged Commit (data management), Database, Fragmentation, Oracle Database, sql, table fragmentation on January 20, 2011 | 3 Comments »
When a lot of DML operations are applied on a table, the table will become fragmented because DML does not release free space from the table below the HWM. HWM is an indicator of USED BLOCKS in the database. Blocks below the high water mark (used blocks) have at least once contained data. This data [...]
How to avoide Tablespace fragmentation
Posted in Administration, Tablespace, tagged Database, Oracle, Oracle Database, sql, Tablespace on January 20, 2011 | Leave a Comment »
In previuos post we disscused how to find tablespace frgmantation.Here we will disscus how to avoide table fragmentation in oracle. Once we identify tablespace fragmentation , what do you do about it? Honeycomb fragmentation is easy to fix. All that needs to be done is to combine adjacent free segments into one by issuing a coalesce statement: [...]
Parameters that enable and control Query Optimizer Features
Posted in Index And CBO, Performance Tunning, tagged Database, Oracle, Oracle Database, Query optimizer, sql on January 19, 2011 | Leave a Comment »
You know that Query optimizer is responsible to determine the best execution/explain plan. In many cases you may be astonished that the data is same in both database and you have gather statistics but both database give different execution plan. The possible reason for it it the variation of initialization parameter between two database. Now [...]
