SlideShare a Scribd company logo
1 of 4
Invisible Indexes
Bu yazimda 11g ile gelen yeni ozellik “"invisible index" ler uzerinde dayanacagam. Eger biz
Index I invisibleye chekdiyimzde optimizer o index yoxmush kimi davranacaqdir. Diger
terefden gelen insertlerde index update olmaya devam edecekdir. Yeni indexsi yeniden
visible etdiyimizde indexsi rebuild etmeye gerek qalmayacaqdir.
Bunu istifade ede bilmemiz uchun COMPATIBLE parametresi en az 11.0.0.0.0 olmalidir.
Bele olmasa o zmana ashagdaki xetani alacaqsiniz.
ORA-00406: COMPATIBLE parametresi 11.0.0.0.0 ve ya daha boyuk olmalıdır
Oracle 11g Databaselerde optimizer_use_invisible_indexes parametresi default olarak FALSE
gelir.Bu parameteni TRUE etdiyimizde optimizer invisible indexleri istifade edmeyecekdir.
SQL> show parameter optimizer_use_invisible_indexes
NAME TYPE VALUE
------------------------------------ ----------optimizer_use_invisible_indexes boolean FALSE

Misal uchun bir table ve index yaradaraq invisible index testi heyata kechirek.
SQL> create table deneme as select * from dba_objects;
Table created.

SQL> CREATE INDEX indx_deneme_owner ON DENEME(OWNER);
Index created.
SQL> set autotrace traceonly
SQL> select * from deneme where owner='ANAR';
Execution Plan
--------------------------------------------------------| Id | Operation | Name |
--------------------------------------------------------| 0 | SELECT STATEMENT | |
| 1 | TABLE ACCESS BY INDEX ROWID| DENEME |
|* 2 | INDEX RANGE SCAN | INDX_DENEME_OWNER |
--------------------------------------------------------SQL> set autotrace off;
Bu sorguda optimizer index istifade olundu.
Indi indexsimizi invisibla chekerek tekrar execution plani inceleyek.
Optimizer indexi gormezden gelerek table access full scan getmesini gozleyirik.
SQL> alter index indx_deneme_owner invisible;
Index altered.
SQL> set autotrace traceonly
SQL> select * from deneme where owner='ANAR';
Execution Plan
-----------------------------------| Id | Operation | Name |
-----------------------------------| 0 | SELECT STATEMENT | |
|* 1 | TABLE ACCESS FULL| DENEME |
-----------------------------------SQL> set autotrace off
Gorduyumuz kimi optimizer indexi gormedi ve DENEME tablesine full access getdi.
Bu zaman bele bir sual ortaya chixir. Bir index invisible-dirsa update olunurmu? Gozel sual
 Test uchun analiz tarixi ve setir sayisini inceleyek.
SQL> select num_rows,last_analyzed from dba_indexes where index_name
='INDX_DENEME_OWNER';
NUM_ROWS LAST_ANAL
---------- --------79051 12.03.2012 10:39:27
Analiz tarixi indexsin yaradilma tarihi
BU deqiqe indexsimiz invisibledir. Tablenin statistikasini alsqa bu zaman indexsimizin
statistikasida toplanacaqdir.
SQL> exec
dbms_stats.gather_table_stats(ownname=>'SYS',tabname=>'DENEME',cascade=
>true);
PL/SQL procedure successfully completed.
SQL> select num_rows,last_analyzed from dba_indexes where index_name
='INDX_DENEME_OWNER';
NUM_ROWS LAST_ANAL
---------- --------79051 12.03.2012 10:41:03
Yeniden analiz tarixine baxiriq ve bu anin tarixi oldugunu goruruk.
Demeli index invisible olsada update olur.
Birde tabeleye insert edek tekrar baxaq.
SQL> insert into deneme select * from dba_objects;
79052 rows created.
SQL> commit;
Commit complete.
SQL> exec dbms_stats.gather_index_stats('SYS','INDX_DENEME_OWNER');
PL/SQL procedure successfully completed.
SQL> select num_rows,last_analyzed from dba_indexes where
index_name ='INDX_DENEME_OWNER';
NUM_ROWS LAST_ANAL
---------- --------158103 12.03.2012 10:43:15
Burdan goruruk ki num_rows columumuzda artdi.
Indi tekrar visableye chekek.
SQL> alter index indx_deneme_owner visible;
Index altered.
Indi Indesimiz istifade edile bilir ve herhansi bir index rebuild ishlemine ehtiyac yoxdur.
SQL> set autotrace traceonly
SQL> select * from deneme where owner='ANAR';
Execution Plan
--------------------------------------------------------| Id | Operation | Name |
--------------------------------------------------------| 0 | SELECT STATEMENT | |
| 1 | TABLE ACCESS BY INDEX ROWID| DENEME |
|* 2 | INDEX RANGE SCAN | INDX_DENEME_OWNER |
--------------------------------------------------------SQL> set autotrace off

Birde optimizer_use_invisible_indexes parametresini test edek.
Ilk once indexsi visibleye chekek ardindan parametreni true edek.
SQL> alter index indx_deneme_owner invisible;
Index altered.
SQL> set autotrace traceonly
SQL> select * from deneme where owner='ANAR';
-----------------------------------| Id | Operation | Name |
-----------------------------------| 0 | SELECT STATEMENT | |
|* 1 | TABLE ACCESS FULL| DENEME |
-----------------------------------Parametreni TRUEya chekdiyimizde artiq optimizer Invisible indexleri istifade etmeyecek.
SQL> alter session set optimizer_use_invisible_indexes=TRUE;
Session altered.
SQL> select * from deneme where owner='ANAR';
Execution Plan
--------------------------------------------------------| Id | Operation | Name |
--------------------------------------------------------| 0 | SELECT STATEMENT | |
| 1 | TABLE ACCESS BY INDEX ROWID| DENEME |
|* 2 | INDEX RANGE SCAN | INDX_DENEME_OWNER |
-------------------------

More Related Content

What's hot (19)

Procedures/functions of rdbms
Procedures/functions of rdbmsProcedures/functions of rdbms
Procedures/functions of rdbms
 
Introduction to triggers
Introduction to triggersIntroduction to triggers
Introduction to triggers
 
PL/SQL TRIGGERS
PL/SQL TRIGGERSPL/SQL TRIGGERS
PL/SQL TRIGGERS
 
Sql triggers
Sql triggersSql triggers
Sql triggers
 
Performance tuning
Performance tuningPerformance tuning
Performance tuning
 
Using triggers in my sql database
Using triggers in my sql databaseUsing triggers in my sql database
Using triggers in my sql database
 
Oracle Database Trigger
Oracle Database TriggerOracle Database Trigger
Oracle Database Trigger
 
MySql Triggers Tutorial - The Webs Academy
MySql Triggers Tutorial - The Webs AcademyMySql Triggers Tutorial - The Webs Academy
MySql Triggers Tutorial - The Webs Academy
 
Stored procedure
Stored procedureStored procedure
Stored procedure
 
PHP with MySQL
PHP with MySQLPHP with MySQL
PHP with MySQL
 
Database development coding standards
Database development coding standardsDatabase development coding standards
Database development coding standards
 
Web app development_my_sql_09
Web app development_my_sql_09Web app development_my_sql_09
Web app development_my_sql_09
 
Trigger
TriggerTrigger
Trigger
 
Sql Functions And Procedures
Sql Functions And ProceduresSql Functions And Procedures
Sql Functions And Procedures
 
Diva10
Diva10Diva10
Diva10
 
TSQL Coding Guidelines
TSQL Coding GuidelinesTSQL Coding Guidelines
TSQL Coding Guidelines
 
Sql having clause
Sql having clauseSql having clause
Sql having clause
 
Sub query_SQL
Sub query_SQLSub query_SQL
Sub query_SQL
 
Meet the CBO in Version 11g
Meet the CBO in Version 11gMeet the CBO in Version 11g
Meet the CBO in Version 11g
 

Viewers also liked

Pagnilayan aralin 1 KATANGIANG PISIKAL NG ASYA
Pagnilayan aralin 1 KATANGIANG PISIKAL NG ASYAPagnilayan aralin 1 KATANGIANG PISIKAL NG ASYA
Pagnilayan aralin 1 KATANGIANG PISIKAL NG ASYAOlhen Rence Duque
 
Seminar PPT - ICT Training - V.Balafas
Seminar PPT - ICT Training - V.BalafasSeminar PPT - ICT Training - V.Balafas
Seminar PPT - ICT Training - V.BalafasVasileios Balafas
 
UD. SCG. T4. Sistemas de coste completo
UD. SCG. T4. Sistemas de coste completoUD. SCG. T4. Sistemas de coste completo
UD. SCG. T4. Sistemas de coste completoAlex Rayón Jerez
 
UD. SCG. T7. Sistema de coste completo corregido o normalizado
UD. SCG. T7. Sistema de coste completo corregido o normalizadoUD. SCG. T7. Sistema de coste completo corregido o normalizado
UD. SCG. T7. Sistema de coste completo corregido o normalizadoAlex Rayón Jerez
 
Divine nine alpha phi alpha
Divine nine alpha phi alphaDivine nine alpha phi alpha
Divine nine alpha phi alphaNAACPConnect
 
"Certeza", Miguel Torga
"Certeza", Miguel Torga"Certeza", Miguel Torga
"Certeza", Miguel Torgaelcedin
 
Projeto Monavie Prelancamento
Projeto Monavie PrelancamentoProjeto Monavie Prelancamento
Projeto Monavie PrelancamentoLester Izaac
 
Personal Branding & Public Speaking: come comunicare chi sei e quanto vali?
Personal Branding & Public Speaking: come comunicare chi sei e quanto vali?Personal Branding & Public Speaking: come comunicare chi sei e quanto vali?
Personal Branding & Public Speaking: come comunicare chi sei e quanto vali?Ninja Academy
 
Tunisian factory tablet
Tunisian factory tabletTunisian factory tablet
Tunisian factory tabletJihed Salhi
 
Projeto ForestWatchers (por Álvaro Fazenda)
Projeto ForestWatchers (por Álvaro Fazenda)Projeto ForestWatchers (por Álvaro Fazenda)
Projeto ForestWatchers (por Álvaro Fazenda)Felipe Fonseca
 
iOS-01-Основы Objective-C
iOS-01-Основы Objective-CiOS-01-Основы Objective-C
iOS-01-Основы Objective-CNoveo
 
Guiacomerciossi Sv5%5b1%5d.18
Guiacomerciossi Sv5%5b1%5d.18Guiacomerciossi Sv5%5b1%5d.18
Guiacomerciossi Sv5%5b1%5d.18guest790c2
 
Cheats to get likes on keek
Cheats to get likes on keekCheats to get likes on keek
Cheats to get likes on keekhogh895
 
Programação etapa Regional Leste-Norte da JESC (15-17 anos)
Programação etapa Regional Leste-Norte da JESC (15-17 anos)Programação etapa Regional Leste-Norte da JESC (15-17 anos)
Programação etapa Regional Leste-Norte da JESC (15-17 anos)esportealtovale
 
Proyecto final de infromativca tiban ma. de los an geles y yolanda pinto
Proyecto final de infromativca tiban ma. de los an geles y yolanda pintoProyecto final de infromativca tiban ma. de los an geles y yolanda pinto
Proyecto final de infromativca tiban ma. de los an geles y yolanda pintoÁngeles Tibán Freire
 

Viewers also liked (20)

Pagnilayan aralin 1 KATANGIANG PISIKAL NG ASYA
Pagnilayan aralin 1 KATANGIANG PISIKAL NG ASYAPagnilayan aralin 1 KATANGIANG PISIKAL NG ASYA
Pagnilayan aralin 1 KATANGIANG PISIKAL NG ASYA
 
Seminar PPT - ICT Training - V.Balafas
Seminar PPT - ICT Training - V.BalafasSeminar PPT - ICT Training - V.Balafas
Seminar PPT - ICT Training - V.Balafas
 
UD. SCG. T4. Sistemas de coste completo
UD. SCG. T4. Sistemas de coste completoUD. SCG. T4. Sistemas de coste completo
UD. SCG. T4. Sistemas de coste completo
 
UD. SCG. T7. Sistema de coste completo corregido o normalizado
UD. SCG. T7. Sistema de coste completo corregido o normalizadoUD. SCG. T7. Sistema de coste completo corregido o normalizado
UD. SCG. T7. Sistema de coste completo corregido o normalizado
 
Acte bibliot. 1r trim
Acte bibliot. 1r trimActe bibliot. 1r trim
Acte bibliot. 1r trim
 
Divine nine alpha phi alpha
Divine nine alpha phi alphaDivine nine alpha phi alpha
Divine nine alpha phi alpha
 
Cambio ClimáTico
Cambio ClimáTicoCambio ClimáTico
Cambio ClimáTico
 
"Certeza", Miguel Torga
"Certeza", Miguel Torga"Certeza", Miguel Torga
"Certeza", Miguel Torga
 
Projeto Monavie Prelancamento
Projeto Monavie PrelancamentoProjeto Monavie Prelancamento
Projeto Monavie Prelancamento
 
Personal Branding & Public Speaking: come comunicare chi sei e quanto vali?
Personal Branding & Public Speaking: come comunicare chi sei e quanto vali?Personal Branding & Public Speaking: come comunicare chi sei e quanto vali?
Personal Branding & Public Speaking: come comunicare chi sei e quanto vali?
 
Tunisian factory tablet
Tunisian factory tabletTunisian factory tablet
Tunisian factory tablet
 
Semana Santa(M 7)
Semana Santa(M 7)Semana Santa(M 7)
Semana Santa(M 7)
 
Projeto ForestWatchers (por Álvaro Fazenda)
Projeto ForestWatchers (por Álvaro Fazenda)Projeto ForestWatchers (por Álvaro Fazenda)
Projeto ForestWatchers (por Álvaro Fazenda)
 
iOS-01-Основы Objective-C
iOS-01-Основы Objective-CiOS-01-Основы Objective-C
iOS-01-Основы Objective-C
 
Guiacomerciossi Sv5%5b1%5d.18
Guiacomerciossi Sv5%5b1%5d.18Guiacomerciossi Sv5%5b1%5d.18
Guiacomerciossi Sv5%5b1%5d.18
 
Cheats to get likes on keek
Cheats to get likes on keekCheats to get likes on keek
Cheats to get likes on keek
 
Bhutanese
BhutaneseBhutanese
Bhutanese
 
Programação etapa Regional Leste-Norte da JESC (15-17 anos)
Programação etapa Regional Leste-Norte da JESC (15-17 anos)Programação etapa Regional Leste-Norte da JESC (15-17 anos)
Programação etapa Regional Leste-Norte da JESC (15-17 anos)
 
Proyecto final de infromativca tiban ma. de los an geles y yolanda pinto
Proyecto final de infromativca tiban ma. de los an geles y yolanda pintoProyecto final de infromativca tiban ma. de los an geles y yolanda pinto
Proyecto final de infromativca tiban ma. de los an geles y yolanda pinto
 
Guarantee scheme experience at aBi Finance Limited in Uganda
Guarantee scheme experience at aBi Finance Limited in Uganda Guarantee scheme experience at aBi Finance Limited in Uganda
Guarantee scheme experience at aBi Finance Limited in Uganda
 

Similar to Oracle 11g Invisible Indexes

12c SQL Plan Directives
12c SQL Plan Directives12c SQL Plan Directives
12c SQL Plan DirectivesFranck Pachot
 
Twp Upgrading 10g To 11g What To Expect From Optimizer
Twp Upgrading 10g To 11g What To Expect From OptimizerTwp Upgrading 10g To 11g What To Expect From Optimizer
Twp Upgrading 10g To 11g What To Expect From Optimizerqiw
 
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Alex Zaballa
 
Data Redaction - OTN TOUR LA 2015
Data Redaction - OTN TOUR LA 2015 Data Redaction - OTN TOUR LA 2015
Data Redaction - OTN TOUR LA 2015 Alex Zaballa
 
Useful PL/SQL Supplied Packages
Useful PL/SQL Supplied PackagesUseful PL/SQL Supplied Packages
Useful PL/SQL Supplied PackagesMaria Colgan
 
Oracle Data Redaction
Oracle Data RedactionOracle Data Redaction
Oracle Data RedactionAlex Zaballa
 
Subqueries views stored procedures_triggers_transactions
Subqueries views stored procedures_triggers_transactionsSubqueries views stored procedures_triggers_transactions
Subqueries views stored procedures_triggers_transactionsmaxpane
 
Sydney Oracle Meetup - indexes
Sydney Oracle Meetup - indexesSydney Oracle Meetup - indexes
Sydney Oracle Meetup - indexespaulguerin
 
SQL/MX 3.6 Select for update feature
SQL/MX 3.6 Select for update featureSQL/MX 3.6 Select for update feature
SQL/MX 3.6 Select for update featureFrans Jongma
 
Five_Things_You_Might_Not_Know_About_Oracle_Database_v2.pptx
Five_Things_You_Might_Not_Know_About_Oracle_Database_v2.pptxFive_Things_You_Might_Not_Know_About_Oracle_Database_v2.pptx
Five_Things_You_Might_Not_Know_About_Oracle_Database_v2.pptxMaria Colgan
 
Checking clustering factor to detect row migration
Checking clustering factor to detect row migrationChecking clustering factor to detect row migration
Checking clustering factor to detect row migrationHeribertus Bramundito
 
Oracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdf
Oracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdfOracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdf
Oracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdfDetchDuvanGaelaCamar
 
Oracle vs. SQL Server- War of the Indices
Oracle vs. SQL Server- War of the IndicesOracle vs. SQL Server- War of the Indices
Oracle vs. SQL Server- War of the IndicesKellyn Pot'Vin-Gorman
 
SQL Macros - Game Changing Feature for SQL Developers?
SQL Macros - Game Changing Feature for SQL Developers?SQL Macros - Game Changing Feature for SQL Developers?
SQL Macros - Game Changing Feature for SQL Developers?Andrej Pashchenko
 

Similar to Oracle 11g Invisible Indexes (20)

12c SQL Plan Directives
12c SQL Plan Directives12c SQL Plan Directives
12c SQL Plan Directives
 
Twp Upgrading 10g To 11g What To Expect From Optimizer
Twp Upgrading 10g To 11g What To Expect From OptimizerTwp Upgrading 10g To 11g What To Expect From Optimizer
Twp Upgrading 10g To 11g What To Expect From Optimizer
 
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
 
Oracle SQL Tuning
Oracle SQL TuningOracle SQL Tuning
Oracle SQL Tuning
 
Data Redaction - OTN TOUR LA 2015
Data Redaction - OTN TOUR LA 2015 Data Redaction - OTN TOUR LA 2015
Data Redaction - OTN TOUR LA 2015
 
Useful PL/SQL Supplied Packages
Useful PL/SQL Supplied PackagesUseful PL/SQL Supplied Packages
Useful PL/SQL Supplied Packages
 
Oracle Data Redaction
Oracle Data RedactionOracle Data Redaction
Oracle Data Redaction
 
Correlated update vs merge
Correlated update vs mergeCorrelated update vs merge
Correlated update vs merge
 
Subqueries views stored procedures_triggers_transactions
Subqueries views stored procedures_triggers_transactionsSubqueries views stored procedures_triggers_transactions
Subqueries views stored procedures_triggers_transactions
 
Sydney Oracle Meetup - indexes
Sydney Oracle Meetup - indexesSydney Oracle Meetup - indexes
Sydney Oracle Meetup - indexes
 
SQL/MX 3.6 Select for update feature
SQL/MX 3.6 Select for update featureSQL/MX 3.6 Select for update feature
SQL/MX 3.6 Select for update feature
 
Five_Things_You_Might_Not_Know_About_Oracle_Database_v2.pptx
Five_Things_You_Might_Not_Know_About_Oracle_Database_v2.pptxFive_Things_You_Might_Not_Know_About_Oracle_Database_v2.pptx
Five_Things_You_Might_Not_Know_About_Oracle_Database_v2.pptx
 
Checking clustering factor to detect row migration
Checking clustering factor to detect row migrationChecking clustering factor to detect row migration
Checking clustering factor to detect row migration
 
Oracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdf
Oracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdfOracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdf
Oracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdf
 
It6312 dbms lab-ex2
It6312 dbms lab-ex2It6312 dbms lab-ex2
It6312 dbms lab-ex2
 
Cbo100053
Cbo100053Cbo100053
Cbo100053
 
Assignment#05
Assignment#05Assignment#05
Assignment#05
 
PHP tips by a MYSQL DBA
PHP tips by a MYSQL DBAPHP tips by a MYSQL DBA
PHP tips by a MYSQL DBA
 
Oracle vs. SQL Server- War of the Indices
Oracle vs. SQL Server- War of the IndicesOracle vs. SQL Server- War of the Indices
Oracle vs. SQL Server- War of the Indices
 
SQL Macros - Game Changing Feature for SQL Developers?
SQL Macros - Game Changing Feature for SQL Developers?SQL Macros - Game Changing Feature for SQL Developers?
SQL Macros - Game Changing Feature for SQL Developers?
 

More from Anar Godjaev

Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from Anar Godjaev
 
How to protect your sensitive data using oracle database vault / Creating and...
How to protect your sensitive data using oracle database vault / Creating and...How to protect your sensitive data using oracle database vault / Creating and...
How to protect your sensitive data using oracle database vault / Creating and...Anar Godjaev
 
how to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaulthow to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaultAnar Godjaev
 
Database Vault / Verinin Güvenliği
Database Vault /  Verinin GüvenliğiDatabase Vault /  Verinin Güvenliği
Database Vault / Verinin GüvenliğiAnar Godjaev
 
Oracle Golden Gate
Oracle Golden GateOracle Golden Gate
Oracle Golden GateAnar Godjaev
 
Oracle 10g Database Server Kurulum
Oracle 10g Database Server KurulumOracle 10g Database Server Kurulum
Oracle 10g Database Server KurulumAnar Godjaev
 
DataPump ile Single Parititon Export
DataPump ile Single Parititon ExportDataPump ile Single Parititon Export
DataPump ile Single Parititon ExportAnar Godjaev
 
Redologlar ve Yöneti̇mi̇
Redologlar ve Yöneti̇mi̇Redologlar ve Yöneti̇mi̇
Redologlar ve Yöneti̇mi̇Anar Godjaev
 
Veri̇tabani ve Kullanici Yöneti̇mi̇
Veri̇tabani ve Kullanici Yöneti̇mi̇Veri̇tabani ve Kullanici Yöneti̇mi̇
Veri̇tabani ve Kullanici Yöneti̇mi̇Anar Godjaev
 
Instance ve Media Bozukluklarını Inceleme
Instance ve Media Bozukluklarını IncelemeInstance ve Media Bozukluklarını Inceleme
Instance ve Media Bozukluklarını IncelemeAnar Godjaev
 
Conditional Control
Conditional ControlConditional Control
Conditional ControlAnar Godjaev
 
Audit Mekani̇zmasi
Audit Mekani̇zmasiAudit Mekani̇zmasi
Audit Mekani̇zmasiAnar Godjaev
 

More from Anar Godjaev (20)

Oracle GoldenGate
Oracle GoldenGateOracle GoldenGate
Oracle GoldenGate
 
Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from
 
How to protect your sensitive data using oracle database vault / Creating and...
How to protect your sensitive data using oracle database vault / Creating and...How to protect your sensitive data using oracle database vault / Creating and...
How to protect your sensitive data using oracle database vault / Creating and...
 
how to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaulthow to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vault
 
Database Vault / Verinin Güvenliği
Database Vault /  Verinin GüvenliğiDatabase Vault /  Verinin Güvenliği
Database Vault / Verinin Güvenliği
 
Oracle Golden Gate
Oracle Golden GateOracle Golden Gate
Oracle Golden Gate
 
Oracle 10g Database Server Kurulum
Oracle 10g Database Server KurulumOracle 10g Database Server Kurulum
Oracle 10g Database Server Kurulum
 
DataPump ile Single Parititon Export
DataPump ile Single Parititon ExportDataPump ile Single Parititon Export
DataPump ile Single Parititon Export
 
Redologlar ve Yöneti̇mi̇
Redologlar ve Yöneti̇mi̇Redologlar ve Yöneti̇mi̇
Redologlar ve Yöneti̇mi̇
 
Contraints
ContraintsContraints
Contraints
 
Oracle SQL
Oracle SQLOracle SQL
Oracle SQL
 
Veri̇tabani ve Kullanici Yöneti̇mi̇
Veri̇tabani ve Kullanici Yöneti̇mi̇Veri̇tabani ve Kullanici Yöneti̇mi̇
Veri̇tabani ve Kullanici Yöneti̇mi̇
 
Instance ve Media Bozukluklarını Inceleme
Instance ve Media Bozukluklarını IncelemeInstance ve Media Bozukluklarını Inceleme
Instance ve Media Bozukluklarını Inceleme
 
Conditional Control
Conditional ControlConditional Control
Conditional Control
 
PL/SQL Blocks
PL/SQL BlocksPL/SQL Blocks
PL/SQL Blocks
 
Wait Interface
Wait InterfaceWait Interface
Wait Interface
 
Audit Mekani̇zmasi
Audit Mekani̇zmasiAudit Mekani̇zmasi
Audit Mekani̇zmasi
 
Tuning SGA
Tuning SGATuning SGA
Tuning SGA
 
Parallel Server
Parallel ServerParallel Server
Parallel Server
 
Table Partitions
Table PartitionsTable Partitions
Table Partitions
 

Recently uploaded

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 

Recently uploaded (20)

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 

Oracle 11g Invisible Indexes

  • 1. Invisible Indexes Bu yazimda 11g ile gelen yeni ozellik “"invisible index" ler uzerinde dayanacagam. Eger biz Index I invisibleye chekdiyimzde optimizer o index yoxmush kimi davranacaqdir. Diger terefden gelen insertlerde index update olmaya devam edecekdir. Yeni indexsi yeniden visible etdiyimizde indexsi rebuild etmeye gerek qalmayacaqdir. Bunu istifade ede bilmemiz uchun COMPATIBLE parametresi en az 11.0.0.0.0 olmalidir. Bele olmasa o zmana ashagdaki xetani alacaqsiniz. ORA-00406: COMPATIBLE parametresi 11.0.0.0.0 ve ya daha boyuk olmalıdır Oracle 11g Databaselerde optimizer_use_invisible_indexes parametresi default olarak FALSE gelir.Bu parameteni TRUE etdiyimizde optimizer invisible indexleri istifade edmeyecekdir. SQL> show parameter optimizer_use_invisible_indexes NAME TYPE VALUE ------------------------------------ ----------optimizer_use_invisible_indexes boolean FALSE Misal uchun bir table ve index yaradaraq invisible index testi heyata kechirek. SQL> create table deneme as select * from dba_objects; Table created. SQL> CREATE INDEX indx_deneme_owner ON DENEME(OWNER); Index created. SQL> set autotrace traceonly SQL> select * from deneme where owner='ANAR'; Execution Plan --------------------------------------------------------| Id | Operation | Name | --------------------------------------------------------| 0 | SELECT STATEMENT | | | 1 | TABLE ACCESS BY INDEX ROWID| DENEME | |* 2 | INDEX RANGE SCAN | INDX_DENEME_OWNER | --------------------------------------------------------SQL> set autotrace off; Bu sorguda optimizer index istifade olundu. Indi indexsimizi invisibla chekerek tekrar execution plani inceleyek.
  • 2. Optimizer indexi gormezden gelerek table access full scan getmesini gozleyirik. SQL> alter index indx_deneme_owner invisible; Index altered. SQL> set autotrace traceonly SQL> select * from deneme where owner='ANAR'; Execution Plan -----------------------------------| Id | Operation | Name | -----------------------------------| 0 | SELECT STATEMENT | | |* 1 | TABLE ACCESS FULL| DENEME | -----------------------------------SQL> set autotrace off Gorduyumuz kimi optimizer indexi gormedi ve DENEME tablesine full access getdi. Bu zaman bele bir sual ortaya chixir. Bir index invisible-dirsa update olunurmu? Gozel sual  Test uchun analiz tarixi ve setir sayisini inceleyek. SQL> select num_rows,last_analyzed from dba_indexes where index_name ='INDX_DENEME_OWNER'; NUM_ROWS LAST_ANAL ---------- --------79051 12.03.2012 10:39:27 Analiz tarixi indexsin yaradilma tarihi BU deqiqe indexsimiz invisibledir. Tablenin statistikasini alsqa bu zaman indexsimizin statistikasida toplanacaqdir. SQL> exec dbms_stats.gather_table_stats(ownname=>'SYS',tabname=>'DENEME',cascade= >true); PL/SQL procedure successfully completed. SQL> select num_rows,last_analyzed from dba_indexes where index_name ='INDX_DENEME_OWNER'; NUM_ROWS LAST_ANAL ---------- --------79051 12.03.2012 10:41:03
  • 3. Yeniden analiz tarixine baxiriq ve bu anin tarixi oldugunu goruruk. Demeli index invisible olsada update olur. Birde tabeleye insert edek tekrar baxaq. SQL> insert into deneme select * from dba_objects; 79052 rows created. SQL> commit; Commit complete. SQL> exec dbms_stats.gather_index_stats('SYS','INDX_DENEME_OWNER'); PL/SQL procedure successfully completed. SQL> select num_rows,last_analyzed from dba_indexes where index_name ='INDX_DENEME_OWNER'; NUM_ROWS LAST_ANAL ---------- --------158103 12.03.2012 10:43:15 Burdan goruruk ki num_rows columumuzda artdi. Indi tekrar visableye chekek. SQL> alter index indx_deneme_owner visible; Index altered. Indi Indesimiz istifade edile bilir ve herhansi bir index rebuild ishlemine ehtiyac yoxdur. SQL> set autotrace traceonly SQL> select * from deneme where owner='ANAR'; Execution Plan --------------------------------------------------------| Id | Operation | Name | --------------------------------------------------------| 0 | SELECT STATEMENT | | | 1 | TABLE ACCESS BY INDEX ROWID| DENEME | |* 2 | INDEX RANGE SCAN | INDX_DENEME_OWNER | --------------------------------------------------------SQL> set autotrace off Birde optimizer_use_invisible_indexes parametresini test edek. Ilk once indexsi visibleye chekek ardindan parametreni true edek.
  • 4. SQL> alter index indx_deneme_owner invisible; Index altered. SQL> set autotrace traceonly SQL> select * from deneme where owner='ANAR'; -----------------------------------| Id | Operation | Name | -----------------------------------| 0 | SELECT STATEMENT | | |* 1 | TABLE ACCESS FULL| DENEME | -----------------------------------Parametreni TRUEya chekdiyimizde artiq optimizer Invisible indexleri istifade etmeyecek. SQL> alter session set optimizer_use_invisible_indexes=TRUE; Session altered. SQL> select * from deneme where owner='ANAR'; Execution Plan --------------------------------------------------------| Id | Operation | Name | --------------------------------------------------------| 0 | SELECT STATEMENT | | | 1 | TABLE ACCESS BY INDEX ROWID| DENEME | |* 2 | INDEX RANGE SCAN | INDX_DENEME_OWNER | -------------------------