Home » Oracle » Oracle Database » Page 13

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

How to transfer statistics between databases in Oracle

We can transfer statistics between servers allowing consistent execution plans between servers with varying amounts of data. This is possible using the DBMS_STATS package Here are the steps to do for a table Step 1. Create the stat table EXEC DBMS_STATS.CREATE_STAT_TABLE(‘SCOTT,’STATTAB’, ‘TOOLS’); Step 2 Export table statistics to statistics table. EXEC DBMS_STATS.EXPORT_TABLE_STATS(OWNNAME=>’SCOTT’,TABNAME=>’EMP’, STATTAB=>’STATTAB’,STATID=>’EXP_1′,STATOWN=>’SCOTT); Step 3 …

How to transfer statistics between databases in Oracle Read More »

How do I drop the histogram on a column and prevent to generate in future

Sometimes you want to drop the histogram of a particular table and dont want to generate a histogram for a particular column in the table. let’s see how we can achieve it 11G and the above solution First of all, you can delete the existing histograms using the below command BEGIN dbms_stats.delete_column_stats( ownname=>’SCOTT’, tabname=>’TEST’, colname=>’UNIQ_ID’, …

How do I drop the histogram on a column and prevent to generate in future Read More »

How to delete Optimizer preference

Suppose you want to remove the optimizer preference you set on the schema, table, or database, then the below procedure can be used to do that How to delete table level Optimizer preference The DBMS_STATS.DELETE_TABLE_PREFS procedure is used to delete the statistics preferences of the specified table in the specified schema. Example exec DBMS_STATS.DELETE_TABLE_PREFS ( …

How to delete Optimizer preference Read More »

Scroll to Top