SET_CLIENT_INFO
är relaterad till en session, inte till en enda SQL-sats.
GÖR DETTA
Steg 1:SYS SCHEMA
ALTER SYSTEM FLUSH SHARED_POOL;
ALTER SYSTEM FLUSH BUFFER_CACHE;
Steg 2:HR SCHEMA
EXEC DBMS_APPLICATION_INFO.SET_CLIENT_INFO(UTL_INADDR.GET_HOST_NAME );
EXEC DBMS_APPLICATION_INFO.SET_MODULE( 'CHECK','select' );
Steg 3:SYS SCHEMA
SELECT
a.SQL_ID
,a.CLIENT_INFO
,a.MODULE
,a.ACTION
,a.SCHEMANAME
,a.USERNAME
FROM
V$SESSION a
WHERE
a.MODULE = 'CHECK';