GET IP and machine name of user....

hi friends,
i want to get IP address and machine name of the user who have access a form in web environment.
be4 when i was working in client/server invorement i was using the following
command
SELECT SYS_CONTEXT('USERENV','IP_ADDRESS'),
SYS_CONTEXT('USERENV','HOST'),
SYS_CONTEXT('USERENV','OS_USER') from dual;
when i try to implement this command for my web form... it gets the information
(IP and machine name) of the server where applicaiton server resides and my application reside.
how the get the information of user's mahcine and IP in web environment?
please help!!!
regards, imran baig

hi again,
thanks for the help, but i am still in problem. i am using forms6i and 9iAS for deployment.
i tried to use d2kwutility and the code i used is:
DECLARE
OS_USER_NAME VARCHAR2(60);
MACH_NAME          VARCHAR2(100);
BEGIN
OS_USER_NAME := win_api_environment.get_windows_username(toBoolean('Y'));
MACH_NAME := WIN_API_ENVIRONMENT.Get_Computer_Name(toBoolean(MACH_NAME));
INSERT INTO COMMON.COM_USER_INFO VALUES(:GLOBAL.G_EMPLOYEE_ID,:GLOBAL.G_MODULE_ID,SYSDATE,
'SETUP > COMPANIES', 'F', :GLOBAL.G_USER_IP, MACH_NAME, OS_USER_NAME);
COMMIT;
CALL_FORM('COMPANIES_FRM',NO_HIDE,NO_REPLACE);
END;
:( BUT NO RESULTS..
library is attached but it doest work...
what to do now..
Please help its very urgent..
thanks, Imran Baig

Similar Messages

  • To know windows user name and machine name

    Is it possible to automatically populating windows user name and machine name in form field?
    If so what should I do?

    Hi,
    You can, but it is considered a security risk by Adobe. Therefore you need to execute the script in a "trusted function". This is script in a JavaScript file that is stored in a set folder on the user's computer. This can make it difficult to maintain, as all users will need this .js file.
    Also if you Reader Enable the form through Accrobat, then the script will fail.
    See a thread here with examples: http://forums.adobe.com/message/2189021#2189021.
    Good luck,
    Niall

  • Find out from the machine name, what user is logged in

    thank you. Is there a way to find out from the machine name, what user is logged in or who the machine belongs to?
    I can actually find out from the username what machine they have because there is a field called the wWWHomePage that gets populated with the computer name
    how do I do that? 
    Also I have a list of email addresses. How do I find the username from the list of email addresses ?
    thanks

    I have no good way to test this, so you'll probably have to adjust this on your end:
    Get-Content .\users.txt | ForEach {
    $emailAddr = $_
    $props = @{
    EmailAddress = $emailAddr
    Username = ''
    ComputerName = ''
    ComputerPath = ''
    try {
    $userDetails = Get-ADUser -Filter "EmailAddress -eq '$emailAddr'" -Properties wWWHomePage -ErrorAction Stop
    $pcDetails = Get-ADComputer -Identity $userDetails.wWWHomePage -Properties CanonicalName -ErrorAction Stop
    $props.Username = $userDetails.SamAccountName
    $props.ComputerName = $userDetails.wWWHomePage
    $props.ComputerPath = $pcDetails.CanonicalName
    } catch {
    $props.Username = 'ERROR'
    $props.ComputerName = 'ERROR'
    $props.ComputerPath = 'ERROR'
    New-Object PsObject -Property $props
    } | Select EmailAddress,Username,ComputerName,ComputerPath
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Want to get the Client Machine name from Oracle Forms

    Hi,
    I want to get the Client machine name from the Oracle Forms.
    I have attached web_util.pll.
    I use user_name := webutil_clientinfo.get_host_name;
    but i am getting following error - WebUtil Error:WUC-015: Your form must contain the following Bean for this function to be available: oracle.forms.webutil.clientinfo.GetClientInfo.
    Can any one help me in this!
    Thanks & Regards,
    Avinash Bhamare.
    Pune.

    Hi,
    I have written the code on when-button-pressed trigger of a push button -
    DECLARE
         user_name VARCHAR2(50);
    BEGIN
    user_name := client_win_api_environment.get_computer_name;
    message('user_name is :'||user_name);
    message('user_name is :'||user_name);
    END;
    And on clicking on this button i am getting error -
    frm-40734:Internal Error:PL/SQL error occurred
    Can any one help in this asap please!
    Thanks & Regards,
    Avinash.

  • How can I get IP and hots names of all the machines.....

    I need to get the IP addresses and host names of all the machines in my netowrk and need to select only is a HP / Compaq x86 machines finaly.
    If you know atleast a part of this please help me.
    [email protected]

    You coulduse the broadcast address (x.x.x.255) in an ICMP sweep to determine which hosts are alive (and accepting ICMP).
    But no, there's not a single (and definitive / sure) way to retrieve all IP addresses.

  • Get the root folder name once user will upload any files to subfolder with in this root folder using sharepoint designer WF??

    Hi,
    How to get the root folder name using sharepoint designer WF? i have a document library with root folders and subfolders. so i am trying to get the root specific root folder name attaching with email once user will
    upload any files to subfolders within that root folder.
    Thanks in advanced!

    Hi,
    According to your description, you might want to get the root folder name in SharePoint Designer Workflow when there is file uploading.
    The “Path” field of the current item holds the relative path of a file, as a workaround, you can retrieve the value of the “Path” as string, then split the string
    value with a delimiter character of “/” to meet your requirement.
    In SharePoint Designer 2010, there is no OOTB action to split the string. You can use the custom workflow actions below to achieve it.
    Here is a link about the related actions I use in this scenario:
    https://spdwfstringactions.codeplex.com/
    Settings of workflow as below:
    It works well in my environment:
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to get table and column names thats being used in SQL , that's generating all my reports on SSRS.

    Good day,
    I searched through the forum and cant find anything.
    I have around 300 published reports on SSRS and we are busy migrating to a new system.
    They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
    We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
    Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
    Your assistance is greatly appreciated.
    I thank you.
    Andre.

    There's no straightforward method for that I guess. There are couple of things you can use to get these details
    1. query the ReportServer.dbo.Catalog table
    for getting details
    you may use script below for that
    http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
    2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
    But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Get path and file name from Bfile

    Hi,
    I'm using Bfile to store images in a database. Is there a way to get the path and file name of the image from Bfile, because I need to pass that information into an image processing function.
    Many thanks.
    Sheldon

    Can you use FILEISOPEN in the DBMS_LOB package?
    See http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96591/adl03prg.htm#281893
    -- CJ

  • How to get DocID and Document name

    Hi All,
    I am working on BO XR R3.1 version.i am looking to get DocID by BO SDK.i am able to see there is one fuction to for CUID (getCUID()) in BO sdk) same way can i get DocId like(986752) with single docid and documnet name.
    or is there any fuction in BO SDK to show DocID & Documnet name of single report?

    Hi  Nitin,
    See if this helps.
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    Regards,
    Shweta

  • Get filename and directory name during runtime

    Hi guys,
    I am developing a file to file interface without content conversion, just a simple file transfer from one ftp server to another. I have to read the same filename (invent.txt) from multiple folders (mstransfer/M01/IN1, mstransfer/M02/IN1, mstransfer/M03/IN1....) that represent different stores and transfer it as it is with the same name to exactly the same directory name in the target ftp location.
    My problem is found inside a dummy mapping that I have created in order to specify the target directory and the name of the file. I am doing the following:
    A) A Java UDF to specify the filename
    trace = container.getTrace();
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String filename = conf.get(key);
    trace.addWarning("filename = "+filename);
    conf.put(key, filename);
    return "";
    //return filename;
    B) A Java UDF to specify the directory name
       //write your code here
    trace = container.getTrace();
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String directory  = conf.get(key);
    trace.addWarning("directory before = "+directory);
    directory = "/usr/sap/trans"+directory;
    trace.addWarning("directory after = "+directory);
    conf.put(key, directory);
    return "";
    //return "/usr/sap/trans"+directory;
    In receiver file adapter I do not specify neither a filename nor a target directory.
    When I am testing it, I always get a mapping runtime error.
    Any ideas?
    --Evaggelos

    Guys,
    First of all, I am doing an end to end testing, i.e. I let the FTP adapter pick the file up and another FTP adapter delivers the file to target folder. I am definitely not testing the mapping in mapping editor.
    I get the error in Request message mapping (pipeline step, which I can see in SXMB_MONI transaction) which is a dummy mapping between two message types that I have created and are based on two data types with two fields each.
    The UDF's that I have created go in-between the source and target fileds of the message types/data types.
    The error that I see in the trace section of the XML message in SXMB_MONI is the following:
    "<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_G_SRS_FileTransfer_MNS_</Trace>
      <Trace level="1" type="T">java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at"
    I have included some trace.addWarning() lines in Java code to help me debug my code, but I cannot see them anywhere inside the trace to be getting executed.
    I will try Bhavesh's idea and I will write the code in the Java Section of my message mapping ( either Intialization or Destrcution ) section.

  • Get Recordcount and Column names

    Hi,
    Can any one help me out a way to get the recordcount for an sql query executed and the number of columns and there names that are returned by the query.
    The same way we do in ASP/VB.
    like rs.fields.name
    Hope so somebody will help me out.
    Thanks,
    Raji

    Hi,
    Below is the sample code that i am using this code works fine.
    I want to find the recordcount and the columnnames.
    I have jdbc driver 1.0 how can i update to 2.0?
    Can any body help me out as how to get the recordcount and column names?
    I would appreciate if you can add the code to the following code below.
    I am calling a beanDBConnect(input sql query;output recordset).
    Help urgently needed as early as possible.
    Thanks,
    Reji
    <HTML>
    <HEAD>
    <TITLE>
    JSP/BEAN/JDBC Test
    </TITLE>
    </HEAD>
    <BODY>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.util.*" %>
    <%
    ResultSet rs;
    String sSql = "SELECT * from employee";
    jspproject.DBConnect oConnectDB = new jspproject.DBConnect();
    oConnectDB.setsSql(sSql);
    oConnectDB.setaResultSet();
    rs = oConnectDB.getaResultSet();
    while (rs.next())
    out.println(rs.getObject("usertypeid").toString()+"<br>");
    out.println(rs.getObject("description").toString()+"<br>");
    rs.close();
    %>
    </BODY>
    </HTML>

  • IP and machine name in browser gets HTTP Status 401 Unauthorized

    Hi experts,
    I am getting HTTP 401 Error when I try to access /Osoft application within server with IP like http://192.168.1.50/Osoft or http://machinename/Osoft, but when I try to open http://localhost/Osoft I do not get this error on server.
    Any ideas?
    Server Error in '/OSoft' Application.
    The request failed with HTTP status 401: Unauthorized.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace:
    [WebException: The request failed with HTTP status 401: Unauthorized.]
       Microsoft.VisualBasic.CompilerServices.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags) +202
       Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +275
       OSoft.Consumers.ZFP.WebBase.Utility.SetWSCredential(String strServiceName, String strMethod, String strParameter, String strContext, String strSecurity) +9306
       OSoft.Consumers.ZFP.WebBase.Utility.GetLastUserApp(CPMUser& mUser, String strAppServerURL, String strSecurity, String strContext, Boolean bServerPathReset) +1419
       OSoft.Consumers.ZFP.WebBase.PageBase.Page_Init(Object sender, EventArgs e) +1906
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Control.OnInit(EventArgs e) +99
       System.Web.UI.Page.OnInit(EventArgs e) +12
       OSoft.Consumers.ZFP.WebBase.PageBase.OnInit(EventArgs e) +12
       System.Web.UI.Control.InitRecursive(Control namingContainer) +333
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378

    I have found solution, PC_MS folder was copied from another instance and web.config file was problematic.
         <appSettings>
              <!-- base locations of servers -->
              <add key="AppServer_URL" value="http://XXX/osoft/app"/>
              <add key="AppServer_AUTH" value="1"/><add key="UserID" value="***"/><add key="UserPassword" value="***"/></appSettings>
         <!--system.codedom-->
         <system.codedom>
    Regards,
    Ergin Ozturk

  • How to find the killed session and machine name

    Hi,
    At the time of batch job running .somebody killed that session .let me know how to find out the particular user name db level or oslevel .from which machine they killed how to find out at OS level . but when i have set the audit_trail=os only SYSDBA user activities are audited not the other user activities.
    The server is AIX and db version 11i .provide the query for finding or os level .
    thanks,
    DBC.
    Edited by: dbc001 on Mar 26, 2013 9:48 PM

    Are you sure that somebosy had killed the session? Did you get any error regarding kill session? Is there any other errors you can see in logs?its suspect only....
    >
    How that job was scheduled?...actually we have lot of source systems, from those source system we are getting the data into BI machine, by using BI apps team process data and trigger load jobs @db
    Apps team is having database unix logins aswell as db logins to process their requests.
    Your OS admin can check the history upto some extent? Check if he has auditing enabled at OS level?we are in the process of checking with OS sysadmin.
    upto now we didnt got any clue....apps team successfully re-ran failed job.

  • Getting links and its names from a html file

    Hi everyone
    My problem about the a getting links with name from a html file. For example
    &#304;n a web page in this site ?SUN? when use click SUN the browser open http://java.sun.com
    &#304; want both of them, so the links and name. I can succeeded the get link but i don t know how to get the link name.
    For example :
    <B>setRightComponent(Component)</B>
    &#304;n this code segment i want to get B tag. But how i don t know. To get A tag i used this code
    List result = new ArrayList();
    try {
    // Create a reader on the HTML content
    URL url = new URI(uriStr).toURL();
    URLConnection conn = url.openConnection();
    Reader rd = new InputStreamReader(conn.getInputStream());
    // Parse the HTML
    EditorKit kit = new HTMLEditorKit();
    HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
    kit.read(rd, doc, 0);
    // Find all the A elements in the HTML document
    HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
    while (it.isValid()) {
    SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
    String link = (String)s.getAttribute(HTML.Attribute.HREF);
    if (link != null) {
    result.add(link);
    it.next();
    &#304; can use B tag but i don t know hot to get its value because it has no prefix such as HREF....
    i am sorry if i use a bad explanation style or incorrect word.

    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    class GetLinks
        public static void main(String[] args)
            throws Exception
            // Create a reader on the HTML content
            Reader reader = getReader( args[0] );
            // Parse the HTML
            EditorKit kit = new HTMLEditorKit();
            HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
            doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
            kit.read(reader, doc, 0);
            // Find all the A elements in the HTML document
            HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
            while (it.isValid())
                SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
                String href = (String)s.getAttribute(HTML.Attribute.HREF);
                int start = it.getStartOffset();
                int end = it.getEndOffset();
                String text = doc.getText(start, end - start);
                System.out.println( href + " : " + text );
                it.next();
        // If 'uri' begins with "http:" treat as a URL,
        // otherwise, treat as a local file.
        static Reader getReader(String uri)
            throws IOException
            // Retrieve from Internet.
            if (uri.startsWith("http:"))
                URLConnection conn = new URL(uri).openConnection();
                return new InputStreamReader(conn.getInputStream());
            // Retrieve from file.
            else
                return new FileReader(uri);
    }

  • MacBook Pro 13-inch (2009) memory gets full and machine slows down?

    Today I got the message that I cannot run Time Machine backup because memeory is full. The machine is almost non-esponsive, and I cannot open new programs. Have shut down many programs, but still no action. Restart is the only solution.
    This happens a lot, so is there a memory handsling problem with these machines? Have other older and newer MecBook Pros, and they do not have this memory full/system slow issue?
    The machine has 5Gb RAM, and all the latest software and firmware updates.
    PLease help, because this is making the machine unusable in a production environment.

    Thanks foir the answer, but already familiar with all those possible obstacles. I work quite technically with computers and development.
    My harddisk is 1/3 full, and the backup disk is triple the size of my disk. Anyway, that does not expl<in that the RAM gets eaten up, and not cleared. M;y MacBook acts like an application without garbage collection, with just fills the RAM, and then collapses. I didn't think that kind of trouble would exist on a new Mac in 2010?!?
    Could this be caused by software? It doesn't seem likely to me, bacause then I would be able to observe a process eating the capasity. To me it looks like the operating system...
    Any advice?

Maybe you are looking for