Latch Contention (top 5 latches)
set linesize 120col name format a30select * from(select name, gets,misses, sleepsfrom v$latchorder by sleeps desc)where rownum < 6;
View ArticleTop SQL (Buffer Gets)
set serverout on size 1000000declaretop5 number;text1 varchar2(4000);x number;len1 number;Cursor c1 isselect buffer_gets,substr(sql_text,1,4000)from v$sqlareaorder by buffer_gets...
View ArticleSegments with highest I/O activity
set pagesize 200setlinesize 120col segment_name format a20col owner format a10select segment_name,object_type,total_physical_readsfrom ( select owner||’.'||object_name as segment_name,object_type,value...
View ArticleLSNRCTL-Listener Control Utility
LSNRCTL> helpLSNRCTL> version [listener_name] -- get the version information of the listenerLSNRCTL> start [listener_name] -- starts the listenerLSNRCTL> stop [listener_name] --...
View ArticleArchive Log Generation - Daily & Hourly Basis
Archivelog generation on a daily basis:set pages 1000select trunc(COMPLETION_TIME,'DD') Day, thread#, round(sum(BLOCKS*BLOCK_SIZE)/1048576) MB,count(*) Archives_Generated from v$archived_loggroup by...
View ArticleQuery for Archive generation/hour for last one week
Query for Archive generation/hour for last one week:SELECT * FROM (SELECT * FROM (SELECT TO_CHAR(FIRST_TIME, 'DD/MM') AS "DAY", TO_NUMBER(SUM(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '00', 1, 0)), '999')...
View ArticleList all the registered concurrent programs by module using Sql Script
SELECT SUBSTR(a.application_name,1,60) Application_NAME, b.application_short_name SHORT_NAME, DECODE(SUBSTR(cp.user_concurrent_program_name,4,1),':' , 'Concurrent Manager Executable' , 'Subprogram or...
View ArticleQuery to find Concurrent Program Information
SELECT cpv.user_concurrent_program_name "Concurrent Program Name", cpv.concurrent_program_name "Program Short Name", efv.application_name "Application",...
View ArticleLocking statistics for a table
You can lock the statistics for the table if you don't want it be analyzed automatically by scheduled jobs.exec dbms_stats.lock_table_stats('&owner','&table name');exec...
View ArticleSuspend and Resume in Oracle Database
The ALTER SYSTEM SUSPEND statement stops all input and output (I/O) to datafiles (file header and file data) and control files. The suspended state lets us back up a database without...
View ArticleSolaris EM12c Agent Unreachable with Error “peer not authenticated”
./emctl status agentOracle Enterprise Manager Cloud Control 12c Release 2 Copyright (c) 1996, 2012 Oracle Corporation. All rights...
View ArticleBlock change tracking for faster Incremental RMAN backups
The details of changes in the blocks of the database after the last backup are written in the block change tracking file.RMAN uses this file for tracking the changed block and backup it instead all the...
View ArticleRenaming redolog members
To complete this requirement you have to shutdown the database, move the redo log files to the new destination, startup the database in mount mode, rename the log members and then open the database....
View ArticleRenaming constraints
SQL> show user; USER is "MAHE" SQL> select dbms_metadata.get_ddl('TABLE', 'T1') from dual; DBMS_METADATA.GET_DDL('TABLE','T1')...
View ArticleICM Log Files location can be found from SQL Query
SELECT logfile_name FROM (SELECT fcp.logfile_name,fcp.concurrent_process_id,fcp.last_update_date,fcp.creation_date,fcp.session_id,fcp.process_status_codeFROM fnd_concurrent_processes fcp,...
View ArticleBackup Fails Because of Control File Enqueue: ORA-00230
Error:=====RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571:...
View ArticleORA-609 : opiodr aborting process unknown ospid
Cause:=====The ORA-609 error is thrown when a client connection of any kind failed to complete or aborted the connectionprocess before the server process was completely spawned.Beginning with 10gR2, a...
View ArticleFNDCPASS was not able to decrypt password for user ‘ANONYMOUS’ during applsys...
Cause:===== While change Apps password, if we changed the password by using the FNDCPASS for special character in apps password we have to use ” ” else we will get this error.Solution:======FNDCPASS...
View ArticleAutoConfig could not successfully instantiate the following files adcrdb.sh...
DB autoconfig Error:===============[AutoConfig Error Report]The following report lists errors AutoConfig encountered during eachphase of its execution. Errors are grouped by directory and phase....
View ArticleORA-07445: exception encountered: core dump [qkxrPXformUnm()+46] [SIGSEGV]
While we run Supplier Payment History in Oracle EBS R12, we are getting this error.Error:==== ORA-07445: exception encountered: core dump [qkxrPXformUnm()+46] [SIGSEGV] Solution: ======To fix this in...
View Article