Disclaimer

Sunday, 19 December 2021

Indexes in Oracle

 






Level of Blocks means Height of Index

i.e. Level of Block = Height of Index

Height = Root block to Leaf blocks

 



 

To view the height you will have to validate the structure



 






 SQL> select * from hr.empl_demo where employee_id=200;




 










SQL> select employee_id from hr.empl_demo order by employee_id;








SQL> select count(EMPLOYEE_ID) from hr.empl_demo;




SQL> select dep_id,sum(salary) from hr.empl_demo group by dept_id;



























No comments:

Post a Comment

How to recovery PDB when PDB database is dropped in Oracle

  How to recovery PDB when PDB database is dropped :) [oracle@rac01 ~]$ sqlplus '/as sysdba' SQL*Plus: Release 21.0.0.0.0 - Product...