Tuesday, December 6, 2022
How to Kill Long Running Concurrent Job in R12
Monday, October 17, 2022
Enable Diagnostics in Oracle Apps
Enable
Diagnostics in Oracle Apps
The below steps can be
followed for enabling diagnostics at user level.
1. Navigate
to System Administrator responsibility> Profile> System>
2. Enter profile
name: Utilities:Diagnostics .
Enter
Application User for whom you want to enable Diagnostics.
Enter value Yes at User
level and Save the Changes . You can set yes at site level for all application
users.
3. Navigate to System
Administrator responsibility> Profile> System>
Enter profile name: Hide
Diagnostics menu entry.
Enter Application User for whom
you do not want to hide Diagnostics menu entry .
Enter value No at User level
and Save the Changes .
4. Logout from Oracle
Application and login again.Diagnostic would be enabled.
Monday, June 20, 2022
Current Running SQLs
How to find SQL,SQL_ID history on Oracle
Session related Queries
Last/Latest Running SQL
-----------------------
set pages 50000 lines 32767
col "Last SQL" for 100
SELECT t.inst_id,s.username, s.sid, s.serial#,t.sql_id,t.sql_text "Last SQL"
FROM gv$session s, gv$sqlarea t
WHERE s.sql_address =t.address AND
s.sql_hash_value =t.hash_value
/
Current Running SQLs
--------------------
set pages 50000 lines 32767
col HOST_NAME for a20
col EVENT for a40
col MACHINE for a30
col SQL_TEXT for a50
col USERNAME for a15
select sid,serial#,a.sql_id,a.SQL_TEXT,S.USERNAME,i.host_name,machine,S.event,S.seconds_in_wait sec_wait,
to_char(logon_time,'DD-MON-RR HH24:MI') login
from gv$session S,gV$SQLAREA A,gv$instance i
where S.username is not null
-- and S.status='ACTIVE'
AND S.sql_address=A.address
and s.inst_id=a.inst_id and i.inst_id = a.inst_id
and sql_text not like 'select S.USERNAME,S.seconds_in_wait%'
/
Wednesday, June 15, 2022
Query to find the Concurrent Request Trace File Path
Query to find the Concurrent Request Trace File Path
Tuesday, May 17, 2022
long running concurrent request
@RR to check the long run concurrent:
col program for a80;
select a.request_id ,decode(a.phase_code,'R','
to_char(a.actual_start_date,'
Start_time , substr(b.user_concurrent_
from apps.fnd_concurrent_requests a, apps.fnd_concurrent_programs_
where a.concurrent_program_id = b.concurrent_program_id and
a.status_code = 'R'
order by Start_time;
set pages 300;
col program for a50;
SELECT a.request_id, substr(e.user_concurrent_
FROM apps.fnd_concurrent_requests a,
apps.fnd_concurrent_processes b,
v$process c,v$session d,
apps.fnd_concurrent_programs_
WHERE a.controlling_manager = b.concurrent_process_id
AND a.concurrent_program_id=e.
AND c.pid = b.oracle_process_id
AND b.session_id=d.audsid
AND a.phase_code = 'R'
--and d.sql_id='fnpyvpk41nd5s'
order by 7 desc;
set pages 1000;
col program for a40;
col user_name for a20;
select a.request_id ,decode(a.phase_code,'R','
to_char(a.actual_start_date,'
Start_time , substr(b.user_concurrent_
from apps.fnd_concurrent_requests a, apps.fnd_concurrent_programs_
where a.concurrent_program_id = b.concurrent_program_id
and a.status_code = 'R'
and a.requested_by=c.user_id
order by Start_time;
set pages 1000;
col user_name for a20;
col argument_text for a60;
SELECT a.request_id, To_Char(a.actual_start_date,'
To_Char(a.actual_completion_
a.phase_code P,a.status_code S, a.argument_text,d.user_name
FROM apps.fnd_concurrent_requests a,
apps.fnd_concurrent_programs b ,
apps.FND_CONCURRENT_PROGRAMS_
apps.fnd_user d
WHERE a.concurrent_program_id= b.concurrent_program_id AND
b.concurrent_program_id=c.
a.requested_by =d.user_id AND
trunc(a.actual_completion_
c.USER_CONCURRENT_PROGRAM_NAME like '%&Concurrent_program_name%'
order by start_date desc;
from
v$locked_object a ,
v$session b,
dba_objects c
where
b.sid = a.session_id
and
a.object_id = c.object_id;
blocking_session "BLOCKING_SESSION",
sid "BLOCKED_SESSION",
serial# "BLOCKED_SERIAL#",
seconds_in_wait/60 "WAIT_TIME(MINUTES)"
FROM v$session
WHERE blocking_session is not NULL
ORDER BY blocking_session;
from gv$sqlarea sqlarea, gv$session a
where a.sql_hash_value= sqlarea.hash_value(+)
and a.sql_address= sqlarea.address(+)
and a.username is not null
---and a.status = 'ACTIVE'
--and a.module like '%SQL De%'
and a.sid in ('1050','')
--and a.client_identifier='JDESAI'
--and sql_text='begin FND_CP_OPP_REQ.postprocess (:reqid, :groupid, :flag, :errmsg); end;'
--and a.module ='e:MSC:cp:po/POXRSR'
and a.type='USER'
order by 8 desc;
Tuesday, April 12, 2022
Request xxxxxx can no longer be canceled
Problem:
when we try to cancel a concurrent request using the frontend “Cancel Request” button from the Administer > Concurrent > Manager form.
We are getting the following message:
“Request xxxxxx can no longer be canceled. The Concurrent Manager Process that was running this request has exited abnormally. The ICM will mark this request as completed with the error”
Solution.
connect to APPS,
1. Backup of FND_CONCURRENT_REQUESTS.
create table fnd_concurrent_requests_backup_12_Apr_22 as select * from fnd_concurrent_requests;
2. UPDATE.
UPDATE fnd_concurrent_requests
SET phase_code = ‘C’, status_code = ‘D’
WHERE Request_id=&request_id
3. Commit.
Monday, April 4, 2022
DB level collecting an traces.
Collect SID and Serial and enable the trace.
SQL> EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=>3258, serial#=>10207, sql_trace=>TRUE)
PL/SQL procedure successfully completed.
SQL> SELECT p.tracefile FROM v$session s JOIN v$process p ON s.paddr = p.addr WHERE s.sid = 3258;
TRACEFILE
--------------------------------------------------------------------------------
/u02/app/oracle/diag/rdbms/ebsts1/EBSTS11/trace/EBSTS11_ora_233861.trc
1. Create Tigger for particular user.
2. enable the trace and collect the trace
3. Disable the traces.
CREATE OR REPLACE
TRIGGER ON_MY_SCHEMA_LOGIN
AFTER LOGON ON
DATABASE
WHEN ( USER =
'XXBPC_INTF' )
BEGIN execute immediate 'ALTER SESSION SET TRACEFILE_IDENTIFIER
= "XXBPC_INTF_TRACE"';
execute immediate
'alter session set events ''10046 trace name context forever, level 12''';
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
alter trigger
ON_MY_SCHEMA_LOGIN enable;
alter trigger ON_MY_SCHEMA_LOGIN disable;
Table import and export.
Create Data Pump Directory. The first step in Oracle Data Pump is to create an OS level directory which will be used by Oracle for perform...
-
CLOUD EBS INSTALLTION login as: opc Authenticating with public key "rsa-key-20201105" from agent Last login: Thu Nov 19 08...
-
1) Login to application server. 2) Go to the directory $AU_TOP/forms/US 3) Place “.fmb” file in binary mode or search for existing --> ...
-
ORA-01157 is raised when Database Writer (DBWR) is unable to find and lock a Datafile. This may be due to various reasons like - Datafile ...