SELECT
(
SELECT Sysdate
FROM dual
),
(
SELECT 'USER sessions : '|| COUNT( DISTINCT session_id)
From Icx_Sessions Icx
Where Disabled_Flag != 'Y'
AND PSEUDO_FLAG = 'N'
AND
( Last_Connect + Decode(Fnd_Profile.Value('icx_Session_Timeout'), Null,
Limit_Time, 0,Limit_Time,Fnd_Profile.Value('icx_Session_Timeout')/60)/24
) > sysdate
And Counter < Limit_Connects
) How_many_user_sessions
FROM dual
No comments:
Post a Comment