Home » Oracle » Oracle Database » Page 14

Oracle Database

An Oracle database is a collection of data treated as a unit. The purpose of a database is to store and retrieve related information. A database server is the key to solving the problems of information management.Many companies has implemented their data in Oracle. Most of them are mission critical. So Oracle database concept need to be very clear to manage these mission critical things. At the same time Oracle database needs to deliver high performance also. A database server also prevents unauthorized access and provides efficient solutions for failure recovery.

Below section I have tried to present all the important features in Oracle Database management

Top Histograms queries in Oracle

Here are some frequently used queries for histograms in Oracle How to check the endpoint values for the histograms SELECT ENDPOINT_NUMBER, ENDPOINT_VALUE, COLUMN_NAME FROM DBA_HISTOGRAMS WHERE TABLE_NAME=’&table_name’ AND owner=’&owner’; How to check the type of histogram created select COLUMN_NAME,NUM_DISTINCT,NUM_BUCKETS,HISTOGRAM from DBA_TAB_COL_STATISTICS where table_name=’&table_name’ and owner=’&table_owner’ order by column_name; How to check details for the frequency …

Top Histograms queries in Oracle Read More »

How are the histograms generated in Oracle

Histograms are generated in Oracle by using the method_opt parameter in the dbms_stats procedure method_opt syntax FOR ALL [INDEXED | HIDDEN] COLUMNS [size_clause] FOR COLUMNS [column_clause] [size_clause] size_clause is defined as size_clause := SIZE {integer | REPEAT | AUTO | SKEWONLY} column_clause is defined as column_clause := column_name | extension name | extension – integer : …

How are the histograms generated in Oracle Read More »

Histograms in Oracle

In this post, we will see the important topic of histograms in Optimizer stats What is a histograms in Oracle A histogram is a special type of column statistic that provides more detailed information about the data distribution in a table column. By gathering histogram data, the CBO can make improved selectivity estimates in the …

Histograms in Oracle Read More »

How to set Schema level preference setting

Suppose you want to set up method_opt preference for the schema, then the below procedure can be done to set it up The  DBMS_STATS.SET_SCHEMA_PREFS procedure is used to set the statistics preferences of all the tables owned by the specified owner name. DBMS_STATS.SET_SCHEMA_PREFS (ownname IN VARCHAR2,pname IN VARCHAR2,pvalue IN VARCHAR2) Example exec DBMS_STATS.SET_SCHEMA_PREFS(‘SCOTT’, ‘method_opt’,’for all …

How to set Schema level preference setting Read More »

Scroll to Top