You are html tracking Visitor

Friday, August 8, 2008

Get the user’s status in the ICX_SESSIONS table

Get the user’s status in the ICX_SESSIONS table:-
---------------------------------------------------------

If we want to know the details about the Application User information from the database like Session ID, Start Time, how many hits a user has made etc (User will have the limited hits for one session). Then connect to Applications and by using apps user and run the following SQL Query.

SELECT (SELECT user_function_name
FROM fnd_form_functions_vl fffv
WHERE (fffv.function_id = a.function_id)) "Current Function",
TO_CHAR (first_connect, 'MM/DD/YYYY HH:MI:SS') start_time,
TO_CHAR (last_connect,
'MM/DD/YYYY HH:MI:SS'
) "Date and time of last hit",
TO_CHAR (SYSDATE, 'HH:MI:SS') current_time, user_name, session_id,
(SYSDATE - last_connect) * 24 * 60 mins_idle,
fnd_profile.value_specific ('ICX_SESSION_TIMEOUT',
a.user_id,
a.responsibility_id,
a.responsibility_application_id,
a.org_id,
NULL
) TIMEOUT,
counter "How many hits a User has made",
a.limit_connects "Num of hits allowed in session"
FROM icx_sessions a, fnd_user b
WHERE a.user_id = b.user_id AND last_connect > SYSDATE - 1 / 24;

1 comment:

Unknown said...

Hi,

I am trying to get the trace for the session id that are being populated in ICX_SESSIONS table. Any pointer how can we enable trace for these sessions.

Thanks,
Jainu.