sql text from username

SELECT

 s.sid                       sid

 , s.serial#                   serial

,sa.sql_fulltext

 , to_char(s.logon_time,'dd/mm/yyyy hh24:mi:ss')   slogon_time

 , lpad(s.status,9)            session_status

 , lpad(s.username,14)         oracle_username

  , lpad(s.osuser,12)           os_username

  , lpad(p.spid,7)              os_pid

    , s.program                   session_program

  --, SUBSTR(sa.sql_text, 1, 600) current_sql

  FROM

   v$process p

    , v$session s

   , v$sqlarea sa

 WHERE

        p.addr (+)       =  s.paddr

    AND s.sql_address    =  sa.address(+)

    AND s.sql_hash_value =  sa.hash_value(+)

    AND s.username='XXTAB'


or

SELECT a.sql_text
FROM   v$sqltext a,
       v$session b
WHERE  a.address = b.sql_address
AND    a.hash_value = b.sql_hash_value
AND    b.username = 'XXTAB'
ORDER BY a.piece;

Screenshot
-------------




appsdbahelp

17+ years of experience in Oracle Database, Oracle Cloud Infrastructure(OCI), Oracle EBS on Cloud, Oracle E-Business Suite, DevOps tools, Oracle WebLogic, Oracle Application Server, Oracle Access Manager and various Operating System flavors including Redhat Linux, UNIX (Solaris, HP-UX) and Windows. Expert in Oracle9i/10g/11g/12c/19c database administration, upgrade, configuration and tuning. Experience in Oracle E-Business Suite technological stack, including architecture, installation, configuration, maintenance, tuning, cloning and patching procedures. Expert in Oracle Cloud Infrastructure(OCI), Oracle EBS On Cloud and Oracle EBS Cloud Manager Experience with Oracle Cloud Solution and Expert of Oracle ERP/Oracle HCM Cloud deployment Experience in Terraform, JSON and chef cloud infrastructure automation framework Knowledge of ASM, Data Guard, Real Application Cluster, Exadata and Exalogic Knowledge of Oracle Enterprise Manager(OEM) Grid Control, Oracle WebLogic, Oracle Internet Directory, Oracle Access Manager and Apache Ability to analyze problem, develops solutions and bring program/project execution to completion.

Post a Comment

Previous Post Next Post