How to find the users of teamviewer using oracle database?

Friends,
DB: 9iR2
OS: RHEL AS 3
Client pc: win xp
We have 3 branches. One of our user accessed our application from the other branch using teamviewer.
is it possible to find the user from the database side?
i mean from the v$session or from any other table.
thanks

Hello,
you can use folloiwng script to see the OS user, database user and the programme they are using to connect to database.
SET TRIMSPOOL ON TRIMOUT ON ECHO OFF VERIFY OFF HEAD OFF FEEDBACK ON LIN 150 PAGES 10000
set linesize 150
CLEAR BREAKS COMPUTES
COL type_grp NOPRINT
COL logon_time NOPRINT
COL logontime FOR A14
COL osuser FOR A21
COL username FOR A28
COL lastcall FOR A14
COL program FOR A50
--COL program   FOR A&plen
BREAK ON type_grp SKIP 1
--PROMPT
PROMPT **************************************************************** SESSIONS INFORMATION ****************************************************************
PROMPT
PROMPT |------- O/S -------|--------- ORACLE ----------| Logon | Last Call | |
PROMPT |Username | Pid |Username | Pid | 'SID,Ser#'| DateTime | DateTime | TYPE | PROGRAM
PROMPT |_________|_________|_________|_____|___________|______________|______________|__________|____________________________________________________________
SELECT ' '||rpad(nvl(osuser,p.username), 9) ||lpad(nvl(s.process,p.spid), 10) osuser,
rpad(nvl(s.username,' '),9) ||lpad(decode(s.sid,'','',p.spid), 6) ||lpad(decode(s.sid,'','',''''||s.sid||','||s.serial#||''''),12) username,
to_char(logon_time,'mm/dd hh24:mi:ss') logontime,
to_char(sysdate - (s.LAST_CALL_ET / 86400),'mm/dd hh24:mi:ss') lastcall,
s.type,
nvl(s.program, p.program) program,
s.type type_grp,
logon_time
FROM v$session s, v$process p
WHERE spid is not null
AND s.paddr (+) = p.addr and s.username not in('SYS','SYSTEM','SYSMAN','DBSNMP')
ORDER BY s.type, logon_time, s.sid;
set head on;
Regards,
Anil Malkai

Similar Messages

  • How to find the user exits and BADIS from SPRO

    Hi all,
    please let us know how to find the User exits or BADIS for an application from SPRO.
    Regards,
    Madhavi

    Hi Varisetty,
    Finding user exits and BAdis from SPRO can be cumbsersome. In most instances you know the standard SAP program and want to check (find) an exit called in the flow of the transaction. You can do this as follows:
    For User Exit:
    Put "/h" in the command box (to start debugging)
    Execute your transaction
    When you enter debugging - put a breakpoint at statement
    CALL CUSTOMER-FUNCTION
    the control will stop at all calls to User Exits
    For BAdi (it's simpler)
    Go to class CL_EXITHANDLER in SE24
    Enter method GET_INSTANCE
    Put a breakpoint in this method
    Run your standard transaction - control will stop at all BAdis called within the flow since this method is used to check BAdi implementations before invoking them
    Also, if you want to find enhancements by package - go to SE80, enter the package and check function groups starting with X - those contain function exits (conventional user exits). For BAdis in a package, there is normally a separate tree node (under the package) for Enhancements hence clearly identifiable.
    Cheers,
    Adi

  • How to find the user exit for infotype 2013 ?

    Hi All,
    How to find the user exit in infotype 2013? i want to change the drop down list default value in infotype 2013.
    Thanks,
    Srikanth P

    reward points if useful
    User exit name is PBAS0001.
    code should be written in ZXPADU01 for PBO
    ZXPADU02 for PAI.

  • How to find the user who deleted the contents of DSO.

    Dear friends,
    Can u please tell me ,how to find the user who deleted the contents of the DSO.
    The user has deleted the complete contents of the DSO. We need to find the user ,date and time.
    regards,
    Vijai

    Hi,
    If the user has used the manage option to delete the contents of the DSO then the changed by field will be updated by the users name. In case a program is used for the deletion then it wont be the case.
    Regards
    Govind.

  • How to find the users who r assigned to profile sap_all through su01

    how to find the users who r assigned to profile sap_all through su01

    you can get into SUIM-->where used lists, check for users with profile SAP_ALL you can get a list of users who have
    it. and you can get into SUIM through SU01 from user information system link.
    you can execute RSUSR002 from SA38/SE38.
    RSUSR002  is the report which gets you the whereused list for profiles within roles, users.
    you can get it from transaction SECR ofcourse you are executing the same report.
    you can get from UST04 table and obviously USR04 also because sometimes you  miss some details from UST04 because of sync problems.

  • How to find the user menu of a user

    Hi,
        I have a request to change the description of a custom transaction in the user menu of a user. Im not sure
    How to find the user's user menu...
    Can we add any small documentation or comments to each object in user menu...
    Thanks in advance
    search before posting , it is a warning to you
    Edited by: Vijay Babu Dudla on Dec 31, 2008 5:00 AM
    Edited by: Vijay Babu Dudla on Dec 31, 2008 5:05 AM

    Welcome to SCN.
    Just refer: [Area Menu Maintenance |http://help.sap.com/saphelp_nw2004s/helpdata/en/00/783b377bfdcf61e10000009b38f936/frameset.htm]

  • How to  find the user exit for a screen..

    Hi,
    plz help me how to find the user exit for a screen..?
    Regards
    Anbu

    Hi,
    check this program this will give you the list of user-exit and BADI for the perticular Tcode.
    REPORT  zuserexit_badi.
    TABLES : tstc,
    tadir,
    modsapt,
    modact,
    trdir,
    tfdir,
    enlfdir,
    sxs_attrt ,
    tstct.
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    PARAMETERS : p_tcode LIKE tstc-tcode,
    p_pgmna LIKE tstc-pgmna .
    DATA wa_tadir TYPE tadir.
    START-OF-SELECTION.
      IF NOT p_tcode IS INITIAL.
        SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
      ELSEIF NOT p_pgmna IS INITIAL.
        tstc-pgmna = p_pgmna.
      ENDIF.
      IF sy-subrc EQ 0.
        SELECT SINGLE * FROM tadir
        WHERE pgmid = 'R3TR'
        AND object = 'PROG'
        AND obj_name = tstc-pgmna.
        MOVE : tadir-devclass TO v_devclass.
        IF sy-subrc NE 0.
          SELECT SINGLE * FROM trdir
          WHERE name = tstc-pgmna.
          IF trdir-subc EQ 'F'.
            SELECT SINGLE * FROM tfdir
            WHERE pname = tstc-pgmna.
            SELECT SINGLE * FROM enlfdir
            WHERE funcname = tfdir-funcname.
            SELECT SINGLE * FROM tadir
            WHERE pgmid = 'R3TR'
            AND object = 'FUGR'
            AND obj_name EQ enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
        SELECT * FROM tadir INTO TABLE jtab
        WHERE pgmid = 'R3TR'
        AND object IN ('SMOD', 'SXSD')
        AND devclass = v_devclass.
        SELECT SINGLE * FROM tstct
        WHERE sprsl EQ sy-langu
        AND tcode EQ p_tcode.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
        20(20) p_tcode,
        45(50) tstct-ttext.
        SKIP.
        IF NOT jtab[] IS INITIAL.
          WRITE:/(105) sy-uline.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
          SORT jtab BY object.
          DATA : wf_txt(60) TYPE c,
          wf_smod TYPE i ,
          wf_badi TYPE i ,
          wf_object2(30) TYPE c.
          CLEAR : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
          LOOP AT jtab INTO wa_tadir.
            AT FIRST.
              FORMAT COLOR COL_HEADING INTENSIFIED ON.
              WRITE:/1 sy-vline,
              2 'Enhancement/ Business Add-in',
              41 sy-vline ,
              42 'Description',
              105 sy-vline.
              WRITE:/(105) sy-uline.
            ENDAT.
            CLEAR wf_txt.
            AT NEW object.
              IF wa_tadir-object = 'SMOD'.
                wf_object2 = 'Enhancement' .
              ELSEIF wa_tadir-object = 'SXSD'.
                wf_object2 = ' Business Add-in'.
              ENDIF.
              FORMAT COLOR COL_GROUP INTENSIFIED ON.
              WRITE:/1 sy-vline,
              2 wf_object2,
              105 sy-vline.
            ENDAT.
            CASE wa_tadir-object.
              WHEN 'SMOD'.
                wf_smod = wf_smod + 1.
                SELECT SINGLE modtext INTO wf_txt
                FROM modsapt
                WHERE sprsl = sy-langu
                AND name = wa_tadir-obj_name.
                FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
              WHEN 'SXSD'.
    For BADis
                wf_badi = wf_badi + 1 .
                SELECT SINGLE text INTO wf_txt
                FROM sxs_attrt
                WHERE sprsl = sy-langu
                AND exit_name = wa_tadir-obj_name.
                FORMAT COLOR COL_NORMAL INTENSIFIED ON.
            ENDCASE.
            WRITE:/1 sy-vline,
            2 wa_tadir-obj_name HOTSPOT ON,
            41 sy-vline ,
            42 wf_txt,
            105 sy-vline.
            AT END OF object.
              WRITE : /(105) sy-uline.
            ENDAT.
          ENDLOOP.
          WRITE:/(105) sy-uline.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No.of Exits:' , wf_smod.
          WRITE:/ 'No.of BADis:' , wf_badi.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(105) 'No userexits or BADis exist'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(105) 'Transaction does not exist'.
      ENDIF.
    AT LINE-SELECTION.
      DATA : wf_object TYPE tadir-object.
      CLEAR wf_object.
      GET CURSOR FIELD field1.
      CHECK field1(8) EQ 'WA_TADIR'.
      READ TABLE jtab WITH KEY obj_name = sy-lisel+1(20).
      MOVE jtab-object TO wf_object.
      CASE wf_object.
        WHEN 'SMOD'.
          SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
          CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
        WHEN 'SXSD'.
          SET PARAMETER ID 'EXN' FIELD sy-lisel+1(20).
          CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
      ENDCASE.
    Reagards,
    Bharat.

  • How to find the columns and tables used in a stored procedure?

    Hi,
    Can someone suggest how to find the columns and tables used within a stored procedure?
    Thanks
    VBK

    For example:
    SQL> create or replace
      2    procedure p1
      3      is
      4          cnt number;
      5      begin
      6          select count(*) into cnt from emp;
      7  end;
      8  /
    Procedure created.
    SQL> select  referenced_owner,
      2          referenced_name
      3    from  dba_dependencies
      4    where owner = 'SCOTT'
      5      and name = 'P1'
      6      and referenced_type = 'TABLE'
      7  /
    REFERENCED_OWNER               REFERENCED_NAME
    SCOTT                          EMP
    SQL> SY.

  • How to find the user exits called at the time of posting the IDOC?

    Hi,
        Could anyone please how to find the user exits while posting a idoc?

    Hi,
    One way to ahive this is by, be ready with IDOC postiong,
    then go to ST05 transaction and activate the trace after checking Table Buffer Trace.
    Now post the IDOC then deactivate the trace.
    Now come back to ST05 and display trace and search for calls starts with EXIT_.
    Regards,
    Manoj Kumar P

  • How to find the invalid form session in oracle Apps

    Oracle Apps R12
    Hai All
    How to find the invalid form session in oracle Apps R12 and How to Kill the that.
    Thanks & Regards
    Srikkanth.M

    Hi,
    Please refer to these docs (for 11i and R12).
    How to Kill Inactive Sessions Based on the Information in the Monitor User Form [ID 103516.1]
    Script: How To Identify The apps User Using The O/S PID For Forms Users In 11i [ID 185762.1]
    Thanks,
    Hussein

  • Urgent    How to find the password of dblink in oracle

    How to find the password of dblink in oracle
    Iam currently working
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    I don't have dba rights
    please help me

    John Spencer wrote:
    You are correct, it is not populated in 11g, but is in 10G.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> create database link test_link connect to scott identified by tiger using 'sol10';
    Database link created.
    SQL> select db_link,password from user_db_links where db_link like 'TEST%';
    DB_LINK                                       PASSWORD
    TEST_LINK.REGRESS.RDBMS.DEV.US.ORACLE.COM
    SQL> select name,password from sys.link$ where name like 'TEST%';
    NAME                                          PASSWORD
    TEST_LINK.REGRESS.RDBMS.DEV.US.ORACLE.COM
    SQL> select name,passwordx from sys.link$ where name like 'TEST%';
    NAME                                          PASSWORDX
    TEST_LINK.REGRESS.RDBMS.DEV.US.ORACLE.COM     05C9AF8C3A16DBE5F47715B67FD0652BE4
    SQL> SY.

  • How to Find the Current Instance Id in Oracle 10g

    Hi,
    how to find the current instance id in oracle 10g studio,
    I have the below code :
    if (InstanceScreenFlow.processInstance.id.id.indexOf(text : ins.id) < 0) {
    /// do something
    it is saying that "'processInstance' is not a function"
    Thanks,
    Brijesh Kumar Singh.

    Why not just pass in the "id" predefined variable into your screenflow? Once you do that you'll be able to refer to it as "id.id" anywhere inside your screenflow.
    Dan

  • How to find the Standard DFF Name  In oracle apps

    hi,
    How to find the Standard DFF Name In oracle apps
    thanks

    1. Open the form
    2. Choose Tools--> Diagnostics
    3. In the block field choose $DESCRIPTIVE_FLEXFIELD$
    4. Field will show the list of all the DFF's enabled for that form.
    5. Choosing one will display the name of the DFF in the value field.
    Thanks
    Nagamohan

  • How to update the millions of records in oracle database?

    How to update the millions of records in oracle database?
    table have contraints & index.how to do this mass update.normal update taking several hours.

    LostWorld wrote:
    How to update the millions of records in oracle database?
    table have contraints & index.how to do this mass update.normal update taking several hours.Please, refer to Tom Kyte's answer on your question
    [How to Update millions or records in a table|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6407993912330]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How to find whether user exits are  used in the query or not??

    Hi ,
    I have to make the list of queris in which user exits are used.
    Please any body help me how to find the queries in which user exits are used.
    Thanks
    Maruthi

    Hi Maruthi,
    Using table RSZGLOBV you can find out the queries that have customer exit variables.
    Set filter VRPROCTP (processing type) = 3 means customer exit.
    and the field COMPID will give you the Query name.
    Best Wishes,
    Mayank

Maybe you are looking for

  • My ipod touch isn't recognized by my computer or my dock

    My ipod touch 4th generation won't connect to my computer or my memorex dock! I tried connecting my ipod with 2 different usb cables to both my computer and my mothers and it wasn't recongized at all by both. I also tried connecting it through an ext

  • What is the noise my iMac does while using boot camp?

    Hello. I installed Windows 7 (Ultimate) on my iMac (27, late 2013, 32GB RAM) using Boot Camp and when I start using it, every couple of seconds I hear a noise that only happens with Windows. It's a very soft noise and it keeps repeating. I already se

  • How do I delete Kaspersky Security for Mac

    I have tried to delete Kaspersky Security for Mac many times but the icon still comes up to tell me to renew. How do I delete the icon and the program?

  • How to create a Payroll function

    Hi all, I have just begun HR programming. can anyone tell me how to create a payroll function step by step? I have read a few threads on payroll in SDN but i had trouble understanding what they were talking about. any help will be appreciated. regard

  • Query to calculate value and produce new rows

    QUARTER CUSTOMER PRODUCT RETAIL_SALES_AMT     WHOLESALE_AMT 01/01/2006     ABC VACCUM CLEANER 454234.00 65633456.00 04/01/2006     ABC VACCUM CLEANER 324562.00 45333234.00 07/01/2006     ABC VACCUM CLEANER NULL 67845423.00 10/01/2006     ABC VACCUM C