Saturday, December 28, 2013

How to kill the INACTIVE database Session

Find the inactive session:

To find the inactive session from the database to executing below query
 

SELECT s.inst_id, s.sid, s.serial#, p.spid, s.username, s.program FROM gv$session s JOIN gv$process p ON p.addr = s.paddr AND p.inst_id = s.inst_id WHERE s.type != 'BACKGROUND';

Kill the session:

To kill the session use the below script

 SQL> ALTER SYSTEM KILL SESSION 'sid,serial#';

Note:
Killing sessions can be very destructive if you kill the wrong session, so be very careful when identifying the session to be killed. If you kill a session belonging to a background process you will cause an instance crash.


References 
How to Check if Dead Connection Detection (DCD) is Enabled in 9i ,10g and 11g (Doc ID 395505.1
Dead Connection Detection (DCD) Explained (Doc ID 151972.1 

Why several Process remain KILLED in V$SESSION (Doc ID 107686.1

Error while Purg the concurrent request - ORA-0001 unique constraint %s.%s

Error:

while run the purg concurrent program
Error while Purg the concurrent request - ORA-0001 unique constraint %s.%s

Fix:

APPLIES TO:
Oracle Concurrent Processing - Version 12.1.3 and later
Information in this document applies to any platform.
 

SYMPTOMS
While running FNDCPPUR, it errors out the following:
APP-FND-01564: ORACLE error 1 in request
Cause: request failed due to ORA-00001: unique constraint (%s.%s) violated


CAUSE
Bug 13703211 - FNDCPPUR APP-FND-01564: ORA-00001 UNIQUE CONSTRAINT (%S.%S) VIOLATED
Issue happens when running FNDCPPUR with parameters MODE = COUNT and VALUE=1
 

SOLUTION
 
Base bug is from RDBMS and was still in progress when writing this note:
Bug 14013076 - LEN ATTRIBUTE OF VARCHAR STRUCTURE IS CORRUPTED IN BATCH FETCH OF ROWS
Workaround:
Two patches below are necessary for the workaround to work:


- Patch 10106197:R12.FND.B
- Patch 12747284:R12.FND.B
 

Then try to run with FNDCPPUR with same parameters, but with COUNT >= 2. Once completed, you should be able to run it as before with no issue. This is a workaround
because the issue may reappear later.

Friday, December 27, 2013

Error-95493-For the following transaction objects, the column EVENT_ID is missing or has the wrong data type

Issue:

Error-95493-For the following transaction objects, the column EVENT_ID is missing or has the wrong data type

  Error Log:

     95493            Please inform your system administrator or support representative   Error
                        that:

                        For the following transaction objects, the column EVENT_ID is
                        missing or has the wrong data type. This column is mandatory for
                        all transaction objects, and it must have the data type number.




Solution:

Make sure the custom table contain the EVENT_ID column in Header and line table if not 
Add the EVENT_ID column on both header and lines table.

Then click on the "Create and assign sources" now issue will be resolved.