How to get the information like IP address,Host name of connected clients v

Hi Every one,
I want to get the information like (IP Address,Hostname,Active sessions , Database Server….etc) of the connected clients
via V$Views(ORACLE).
And then I like to load these infromation into a table “Client_Table”.
Could some one give me suggestion that which V$ views/method I use in order to get the above information and then
how to load these information into a table “Client_table”?
Your suggestions will be highly appreciated.
With Regards
BILAL

You could use a LOGON TRIGGER so every session insert its own environment into your client_info table.
You could use the following view and choose whatever attribute you need:
create or replace view my_userenv (
AUDITED_CURSORID ,
AUTHENTICATION_DATA ,
AUTHENTICATION_TYPE ,
BG_JOB_ID ,
CLIENT_IDENTIFIER ,
CLIENT_INFO ,
CURRENT_SCHEMA ,
CURRENT_SCHEMAID ,
CURRENT_SQL ,
CURRENT_USER ,
CURRENT_USERID ,
DB_DOMAIN ,
DB_NAME ,
ENTRYID ,
EXTERNAL_NAME ,
FG_JOB_ID ,
GLOBAL_CONTEXT_MEMORY ,
HOST ,
INSTANCE ,
IP_ADDRESS ,
ISDBA ,
LANG ,
LANGUAGE ,
NETWORK_PROTOCOL ,
NLS_CALENDAR ,
NLS_CURRENCY ,
NLS_DATE_FORMAT ,
NLS_DATE_LANGUAGE ,
NLS_SORT ,
NLS_TERRITORY ,
OS_USER ,
PROXY_USER ,
PROXY_USERID ,
SESSION_USER ,
SESSION_USERID ,
SESSIONID ,
TERMINAL
) AS SELECT
SYS_CONTEXT ('USERENV', 'AUDITED_CURSORID') ,
SYS_CONTEXT ('USERENV', 'AUTHENTICATION_DATA') ,
SYS_CONTEXT ('USERENV', 'AUTHENTICATION_TYPE') ,
SYS_CONTEXT ('USERENV', 'BG_JOB_ID') ,
SYS_CONTEXT ('USERENV', 'CLIENT_IDENTIFIER') ,
SYS_CONTEXT ('USERENV', 'CLIENT_INFO') ,
SYS_CONTEXT ('USERENV', 'CURRENT_SCHEMA') ,
SYS_CONTEXT ('USERENV', 'CURRENT_SCHEMAID') ,
SYS_CONTEXT ('USERENV', 'CURRENT_SQL') ,
SYS_CONTEXT ('USERENV', 'CURRENT_USER') ,
SYS_CONTEXT ('USERENV', 'CURRENT_USERID') ,
SYS_CONTEXT ('USERENV', 'DB_DOMAIN') ,
SYS_CONTEXT ('USERENV', 'DB_NAME') ,
SYS_CONTEXT ('USERENV', 'ENTRYID') ,
SYS_CONTEXT ('USERENV', 'EXTERNAL_NAME') ,
SYS_CONTEXT ('USERENV', 'FG_JOB_ID') ,
SYS_CONTEXT ('USERENV', 'GLOBAL_CONTEXT_MEMORY') ,
SYS_CONTEXT ('USERENV', 'HOST') ,
SYS_CONTEXT ('USERENV', 'INSTANCE') ,
SYS_CONTEXT ('USERENV', 'IP_ADDRESS') ,
SYS_CONTEXT ('USERENV', 'ISDBA') ,
SYS_CONTEXT ('USERENV', 'LANG') ,
SYS_CONTEXT ('USERENV', 'LANGUAGE') ,
SYS_CONTEXT ('USERENV', 'NETWORK_PROTOCOL') ,
SYS_CONTEXT ('USERENV', 'NLS_CALENDAR') ,
SYS_CONTEXT ('USERENV', 'NLS_CURRENCY') ,
SYS_CONTEXT ('USERENV', 'NLS_DATE_FORMAT') ,
SYS_CONTEXT ('USERENV', 'NLS_DATE_LANGUAGE') ,
SYS_CONTEXT ('USERENV', 'NLS_SORT') ,
SYS_CONTEXT ('USERENV', 'NLS_TERRITORY') ,
SYS_CONTEXT ('USERENV', 'OS_USER') ,
SYS_CONTEXT ('USERENV', 'PROXY_USER') ,
SYS_CONTEXT ('USERENV', 'PROXY_USERID') ,
SYS_CONTEXT ('USERENV', 'SESSION_USER') ,
SYS_CONTEXT ('USERENV', 'SESSION_USERID') ,
SYS_CONTEXT ('USERENV', 'SESSIONID') ,
SYS_CONTEXT ('USERENV', 'TERMINAL')
from dual;

Similar Messages

  • How to get the information of the log related to t.code generated by basis.

    In the log generated by the basis personnel we found the details of user and corresponding t.code used details.  How to get the information reg. which document he went into using this t.code? For example me29 t.code used by 'x' user.  The log is showing time date t.code and user.  By using me29n which document he attended is the requirement. How to get this information. Let me know it pl.
    TS

    Thanks all for the help.
    Here is my solution. A mix from Julian and Thomas.
    In future I will encapsulate the code in a function module.
    DATA: BEGIN OF usr_tabl OCCURS 10.
            INCLUDE STRUCTURE uinfo.
    DATA: END OF usr_tabl.
    DATA: th_opcode(1) TYPE x.
    DATA: LV_TID LIKE  SY-INDEX.
    CONSTANTS: opcode_list LIKE th_opcode VALUE 2.
    CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode_list
      ID 'TAB' FIELD usr_tabl-sys.
    CALL FUNCTION 'TH_USER_INFO'
      EXPORTING
        CLIENT = sy-mandt
        USER   = sy-uname
      IMPORTING
        TID    = LV_TID.
    read table usr_tabl with key tid = lv_tid.
    IF sy-subrc = 0.
      CASE usr_tabl-type.
        WHEN 2.
          write :/ usr_tabl-type, 'SYSTEM'." (system)
        WHEN 4.
          write :/ usr_tabl-type, 'GUI'." (Gui)
        WHEN 32.
          write :/ usr_tabl-type, 'RFC'."(RFC)
        WHEN 202.
          write :/ usr_tabl-type, 'PLUG-IN'." (Plug-in &).
      endcase.
    ENDIF.

  • How to get the remote user IP address if behind the proxy or firewall

    Hi
    How do i get the remote user Ip address who is invoking the servlet behind from a firewall.
    When i use getRemoteHostAddr it gives the proxy ip address not the actuall user host address... Kindly let me know how to get the actual user ip address
    satish

    There is no reliable way to determine the original IP, and such information is not useful to you if the original IP is behind a firewall. What do you propose to use it for? There is probably an alternative way to do things that does not require the remote IP.

  • I am new to Mac Pro but am purchasing one online.  can anyone tell me how to get the information from my Toshiba onto the Mac.  there are no stores in the state I live in.  Do I need to find a location and will they do a transfer from my I Tunes etc?

    I am new to Mac Pro and am purchasing one online  tonight.  Can anyone tell me how to get my information - Itunes, photos, and videos transferred onto the Mac from my Toshiba.  the state I live in doesn't have an Apple store but I could take it to Minneapolis when I go.  Any ideas where to begin?

    You might profit from a visit to a Minneapolis Apple store. With a brand new Mac, I think they will be most helpful - not just with transferring files, but with other advice as well. And I strongly recommend you invest in a back up drive. The Apple folk can help with that as well.

  • How to get the information of various components in a webpage

    I am getting the Document object of the webpage using JRex.
    When I hit any site eg. www.yahoo.com then JRex returns the Document object of the corresponding document. Now I want to retrieve the information of various components of that webpage.
    Eg. button tag is there on the page. For different webpages it can be at different place in the pages. So how can I get the information of different different components on the page..
    Please guide me in this as I dont have any idea regarding this.

    I am getting the Document object of the webpage using JRex.
    When I hit any site eg. www.yahoo.com then JRex returns the Document object of the corresponding document. Now I want to retrieve the information of various components of that webpage.
    Eg. button tag is there on the page. For different webpages it can be at different place in the pages. So how can I get the information of different different components on the page..
    Please guide me in this as I dont have any idea regarding this.

  • How to get the information of the framerate and bitrate in receiving side

    Hi,
    I want to know if anyone here know how to get the frame rate and the bit rate statistic on the receiving side.
    I know that it will be displayed on the info panel with the control component, but actually where can I obtain the stats into my program instead of reading by my eye.
    Thanks for helping me.
    Best regards
    Ferdinand

    Hi Raju,
    It's basu here,
    I used TADIR and TRDIR Tables , But There is no modified Information.
    Means, Suppose if i modified any customized object , i want that information also in the Report.
    Please Help me on this.
    Thanks
    Basu
    Message was edited by:
            karibasavakm Kumbargiri Math

  • How to get the information of index?

    Hi all,
    I am a new InDesign developer. I want to know how can I get the information of the index places in the document, including all entries and styles. Or, how can I traverse the index tree on index panel.
    Thank you very much.

    Sorry, I forgot the point that I am using CS4.

  • How to get the List of IP Address, of Computers accessible from a Computer

    I just want to get the list og IP Address of systems in the network whic uses a server.
    OR How do I connect to a computer in a network using username and password.

    try asking this question on the networking forum:
    http://forum.java.sun.com/forum.jspa?forumID=536

  • How to get the shipping point details nothing but (name , address, etc)

    Hi, i am having the billing document number from that i am fetching the delivery doc number and shipping point.
    how i can get the shipping point details from the shipping point number.in which table i  need to pass this shipping point number(VSTEL)?

    Hi Praveen,
    TVST Shipping point
    KNVS Customer Master Shipping Data
    VTTK Shipment header
    VTTP Shipment item
    VTFA Flow shipping documents
    TVSTZ Organizational Unit: Shipping Points per Plant
    B024 Shipping point
    TVSRO Shipping points: Countries in Which Routes are Defined
    TVSWZ Shipping Points per Plant
    You can get the details from ADRC table. Please note that the TVST table has got a field ADRNR, pls use the same field in identifying the number and goto ADRC table enter the number under the ADDRNUMBER. It will fetch the address details for you.
    For ex from the standard SAP: I have taken std 0001 shipping pt. When I run TVST table for shipping points I get to see that ADRNR field has 297 as the number. I take the same number 297 and goto ADRC table and enter it under ADDRNUMBER and it will give me the address details entered for shipping pt 0001.
                                                              (or)
    All Standard Reports which are available are as under:
    SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
    Shipping point -> Deliveries / Returns
    Shipping point Analysis - MC(U
    Shipping point Analysis-Returns - MC-O
    Reward if helpful,
    Regards,
    Harini.S

  • How to get the information from the previous JSP

    Hi,
    I have two jsp files, first.jsp and second.jsp, I get a value of fileName from first.jsp, how can I get the value of fileName in second.jsp??
    <%
    String fileName = null;
    MultipartRequest multi = new MultipartRequest(request , saveDirectory , maxPostSize );
    Enumeration upLoadFiles = multi.getFileNames();
    while (upLoadFiles.hasMoreElements()) {
    String name = (String)upLoadFiles.nextElement();
    fileName = multi.getFilesystemName(name);
    String contentType = multi.getContentType(name);
    if (fileName != null) {
    out.println("<font color='red'></font><br><br>");
    out.println("Filename "+fileName+"<br>");
    out.println("content type "+contentType+"<br>");
    out.println("content "+fileDescription+"<br><br>");
    response.sendRedirect("second.jsp");
    %>
    Thanks,
    ED

    Put the parameter in the url itself like:
    String url = "second.jsp?filename="+fileName;
    and then
    response.sendRedirect(url);
    Hi,
    I have two jsp files, first.jsp and second.jsp, I get
    a value of fileName from first.jsp, how can I get the
    value of fileName in second.jsp??
    <%
    String fileName = null;
    MultipartRequest multi = new MultipartRequest(request
    , saveDirectory , maxPostSize );
    Enumeration upLoadFiles = multi.getFileNames();
    while (upLoadFiles.hasMoreElements()) {
    String name = (String)upLoadFiles.nextElement();
    fileName = multi.getFilesystemName(name);
    String contentType = multi.getContentType(name);
    if (fileName != null) {
    out.println("<font color='red'></font><br><br>");
    out.println("Filename "+fileName+"<br>");
    out.println("content type "+contentType+"<br>");
    out.println("content
    nt "+fileDescription+"<br><br>");
    response.sendRedirect("second.jsp");
    %>
    Thanks,
    ED

  • How to get the data like a tree in t-code /nEC01 ?

    Dear Friends,
    When using t-code EC01, you can click 'Structure' button, and then click 'Navigation'  button, finally the "SAP organizational objects" will be displayed as a tree - when you double click one item, it will be expaned.
    My problem is, is there any table or view to store these tree data? if not, how could I get them?
    Thanks a lot!

    Hi YIN,
    unable to understand ur question .... anyhow
    check the flow
    company codes ---> Controlling area
    controlling area  ---> Operating Concern
    SPRO Path-->
    SPRO--->Enterprise Structure ->Assignment->Controlling --->see both options.
    i think u know how to get table name from the view.

  • How to get the Personal Number from Address Number

    Hi,
    I have one requirement which is as follows.
    I have one Customer. I am fetching Address Number(ADRNR) of this customer number from table KNA1.
    I want to find the Personal number linked to this Address number and Customer.
    Is there is any table or FM from where i will get the Personal number of the Customer using Customer number and Address number?
    Kindly Help

    Hi Sachin,
    Check this FM BUP_PARTNER_PERSNUMBER_GET
    " Check KNB1 and the Field name is PERNR, Most of the times this is not maintianed.
    " This refers to the Employees who are assigned as Customers
    " In XD03 go to the Company Code Data there you can find this Value
    " For more info contact your Functional Consultant
    " This is to the Best of my knowledge
    Also Check KNB1 but000 Tables
    Cheerz
    Ram

  • Is there a link that demonstrates how to get the information from the forms into a database?

    I have set up a form for a client's web site and I don't want the client to have to deal with a vast quantity of emails each with the form entries. I want the information to go directly into my client's database and I didn't want to use Business Catalyst. Let me know which database program would be the best for them to use. Preferably Mac.

    Hi David,
    There is a similar thread live with us , you can follow the Database of Form Entries
    Hope that works
    Thanks
    Prabhakar Kumar

  • How to get the jar file without knowing its name and any class inside it?

    Hello, everybody!
    I would like to know if there's a way to get a reference programatically to the initial jar without knowing its name and any class contained in it. By "initial jar" I mean the jar that was called in the prompt, like this:
    java -jar jarfile.jaror in another way, in a graphical system. To be sincere what I really want is to get a reference to the jar's manifest, but I know if I can get a reference to the jar I can get a reference to its manifest file. Or if you know a way to get the manifest directly, it would also help. So, is there a way to do this?
    Thank you.
    Marcos

    jverd wrote:
    marcos_aps wrote:
    abillconsl wrote:
    Can you be more specific - IOW, can you cite a specific case?Absolutely. I want to access the jar in source code with the java.util.zip.JarFile class, for example.But why? You still haven't provided a use case or explained what you're trying to accomplish. As already pointed out, whatever you're trying to do, this is a brittle solution. If you explain what you're trying to accomplish with this, somebody may be able to suggest a better approach.jverd, I explained for baftos. Anyway, I will try to be more specific. I start my sytem like this, from, say, for example, jar1.jar:
    import br.product.System;
    public static void main(String[] args)
        System.start("NameOfTheSystem");
    }The System class is in util.jar, for example. This jar is used by all systems. I wouldn't like to pass in the name of the system, as above. I would like that the System class could read it from jar1.jar's manifest file. I just would like to have this:
    import br.product.System;
    public static void main(String[] args)
        System.start();
    }It is more elegant and I don't have the name of the system in two places: code and manifest file.
    Marcos

  • # How to get the system AD Domain user login name in portal?

    when a system user use AD Domain method login the system.
    and then the user open the portal web application page, but not use AD Domain name login in portal page, that time ,I want to catch the user system login name show in portal page?
    I hava try the sereval method with Java or Jsp, or User Cookies ActiveX pulg,I get only the name of the portal hostname.
    so Anyone will provider me a well method to get the user login name?

    Elobrate more on ur problem

Maybe you are looking for