Stop / Drop Scheduled / Running jobs in Oracle

You can use the DBMS_SCHEDULER package itself to stop or drop the job. There are two separate procedure(stop_job and drop_job) exists in the package.In some cases you will have to use the force option to stop the job.


Example
SQL> SELECT job_name, state FROM DBA_SCHEDULER_JOBS where job_name like '%AT_OS_OPT%';

RMAN-08591: WARNING: invalid archived log deletion policy

Warning Description:
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;

old RMAN configuration parameters:
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
new RMAN configuration parameters:
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete

Insert to Oracle View failed with ORA-01779: cannot modify a column which maps to a non key-preserved table

Error description:
ORA-01779 error is coming while inserting into view

Solution Description:
Views are two types in terms of update to the view-Updateable and non-updateable. When you try to insert to the non-updateable views you will get the error ORA-01779: cannot modify a column which maps to a non key-preserved table

Where/How to Check Alert Log File in Oracle 12c?

Prior versions as a DBA we used 
to check the alert logs in background_dump_dest directory. But in 11g onwards the alert log file location is changed to different location mentioned below. The second option is adrci which is the easiest way to access the alert log files for the databases which are running on the box.
 

Stop/Enable/Disable Oracle Auto Task Jobs Using SQL – Space advisor, Optimiser stats collection, SQL tuning advisor

Oracle 11g onwards there are three different automatic maintenance tasks:
1.   Automatic Optimizer Stats Collection - Gathers the statistics for all schema objects and the respective database task is called ‘auto optimizer stats collection’
2.   Automatic Segment Advisor – This identifies the segments that could be the candidates for the reorganization to save the space and respective database task is called ‘Space advisor’

Oracle 12c Data Pump: EXPDP IMPDP VIEWS_AS_TABLES Option

Oracle 12c release 1 onwards we can export the view(s) into export dumps and while importing it can be imported as table with the structure of the view with base table data.
Syntax: VIEWS_AS_TABLES=[schema_name.] view_name [:table_name],
Example

How to Check/Verify the ADDM is enabled in Oracle Database?

The Automatic Database Diagnostic Monitoring is enabled by default in Oracle database and it is determined by the initialization parameter called STATISTICS_LEVEL. There are 3 values allowed for this parameter – BASIC, ALL and TYPICAL. If the value for the parameter is set as TYPICAL or ALL then the ADDM is enabled for your database. If you set the value to BASIC many of the oracle features will get disabled including ADDM and it is strongly discouraged.

 

dba topics. Copyright 2011-15 All Rights Reserved | Site Map | Contact | Disclaimer | Google