Handling Basic Oracle Database Issues
Handling Basic Oracle Database Issues
Handling Basic Oracle Database Issues
VERSION
STATUS
11.2.0.3.0
Production
11.2.0.3.0
64bit Productio
n
PL/SQL
11.2.0.3.0
11.2.0.3.0
Production
Production
2227864 bytes
109052264 bytes
Database Buffers
188743680 bytes
Redo Buffers
4784128 bytes
Database mounted.
Database opened
Metrics Average Users Waiting Counts is at XX.XXX for event class <Class Name>
The wait_class are generally Concurrency, Network, Other, Configuration, Application. Following
command can be used to check the current status of the metrics Avg. Users Waiting counts:
select count(*) from v$session_wait where wait_class='Concurrency';
select count(*) from v$session_wait where wait_class='Network';
Metrics Database Time Spent Waiting (%) is at 80.882 for event class <Class Name>
VALUE
59.2883618
40.7116382
After checking the MRP Process, check the difference between the Last Sequence Received & Last
Sequence Applied. The value should be zero or minimal in ideal situation:
KADDR
SID TY
ID1
ID2
LMODE
CTIME
BLOCK
8658
2323 TX
10092563
997536
OBJECT_TYPE
TYPE
VALUE
string
/u01/app/oracle/diag/rdbms/opr143/opr1431/trace
$ df -h /u01/app/oracle/diag/rdbms/opr143/opr1431/trace
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VGExaDb-LVDbOra1 99G 72G 22G 77% /u01
$adrci
ADRCI>show home
ADRCI>set home <path>
ADRCI>show home
ADRCI>show incident
ADRCI>ips pack incident 160348 in /tmp
Getting imageinfo for the Database:
[root@dm01db01 ~]# imageinfo
Kernel version: 2.6.18-274.18.1.0.1.el5 #1 SMP Thu Feb 9 19:07:16 EST 2012 x86_64
Image version: 11.2.3.1.1.120607
Image activated: 2012-12-15 07:39:48 +0100
Image status: success
System partition on device: /dev/mapper/VGExaDb-LVDbSys1
Getting OPatch details:
[grid@dm01db01 OPatch]$ pwd
/u01/app/11.2.0.3/grid/OPatch
[grid@dm01db01 OPatch]$ ./opatch lsinventory -detail > /tmp/Opatch.txt
x$ksppi a,
x$ksppcv b,
x$ksppsv c
WHERE a.indx = b.indx
AND
a.indx = c.indx
AND
where process like 'MRP%' or process like 'RFS%' and status != 'IDLE'
order by inst_id,process,thread# ;
INST_ID PROCESS MRP_STAT THREAD# SEQUENCE# BLOCK#
---------- --------- ------------ ---------- ---------- ---------1 MRP0 APPLYING_LOG 4 115056 207
Check for the difference between the Last Sequence Received & Last Sequence Applied
Difference. Monitor the difference closely, if it does not decreases over the time, the MRP
process needs to be restarted.
SQL> SELECT null dummy, ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received",
APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
FROM
( SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME )
IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#))
ARCH,
( SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME )
IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#))
APPL
WHERE ARCH.THREAD#=APPL.THREAD#
ORDER BY 2;
D Thread Last Sequence Received Last Sequence Applied Difference
- ---------- ---------------------- --------------------- ---------1 115057 115056 1
2 120630 120628 2
2 rows selected.