Is it possible to get the host name of the server by the client computer.

Hello

I have client and server on two different machines connected to the server by the client.

Is it possible that I can get the hostname of the server (Oracle to which it is connected) the customer means machine using some Reg entry or a request or a someother. ?

Thank you for your ideas!

This question has an answer depending on the version. Unfortunately you couldn't be bothered to post your version.
In Oracle 10 g and more
Just use
Select sys_context ('userenv', 'host_name') of double;

(From memory. Sys_context is documented in the SQL reference manual)

--------------
Sybrand Bakker
Senior Oracle DBA

Experts: those who don't read the documentation.

Tags: Database

Similar Questions

  • How to get the client computer name database?

    Hiya

    As part of the authentication of the user of our application, the requirement is that if a user is connected from a machine, the same connection of can not the user to different machines at the same time.

    In Forms6i, we had accomplished this by using the following query:

    Select the Terminal
    Session $ v
    Where username = v_username
    And v_terminal terminal <>;

    Where
    v_username = USER-> Oracle Forms reserve Word
    v_terminal = Client_Win_API_Environment.Get_Windows_Username

    In Forms 6i, the column Terminal of V$ Session used to return the name of the local client computer.

    However, in the form of 10g, it returns the name of the computer on which Oracle Application Server is installed, which seems correct to me.

    So my question is how do we get the client computer name of the database in the context of Oracle's 10g? Is there another package of database or view/table that returns the client computer name?

    Your suggestions/comments will be much appreciated.

    See you soon

    Mayur

    We have implemented the same exact requirement to retrieve the IP address of the client (WebUtil provides a function for this) and write it in the field v$ session.action (this can be done using the dbms_application_info package DB). We are so in shape 10g v assessment $session.action instead of v$ session.terminal.

  • How to get the Client computer NAME IPAddress?

    Hi all

    We have forms g 11 64-bit with Server 2008 64 bit.

    We want to limit our form to be run on a particular computer only, so we need the details of the particular Client Machine.

    To do this, we tried with function SYS_CONTEXT (with options like ip_address, host, terminal etc.) in
    When New_Form_instance relaxation, but it still gives me the details of the Server instead of the Client computer.

    Please guide me.

    Kind regards
    Dass.

    In order to use the JavaBean, must be added the clientinfo.jar (and the full path) to the CLASSPATH = parameter in the default.env and also to add the clientinfo.jar to the archive = setting in the formsweb.cfg. This change should be made on the Application Server and if you want to run your form from the forms generator, then you must make the change of your local files as well.

    As François mentioned, you ignorant error FRM-13008 design if you want because it doesn't affect the generator of forms and not the runtime. If you would rather the error, you can add the clientinfo.jar and the full path in the Windows registry in the FORMS_BUILDER_CLASSPATH string.

    Craig...

  • Download the client computer name using java or javascript

    Hi guru,.

    ... JDev 11.1.2.4.0...

    I don't have any application in the ADF and I want to get the client computer name using java or javascript. I searched on this, but I have found that this javascript method

    function getWorkstationID() {var ax = new ActiveXObject ("WScript.Network"); alert (ax.ComputerName); }

    but that use ActiveX that only work in IE with some security configurations, and I want to get the computer name of any browser client.

    Can you please help me to get the client computer name?

    Try one of these 2 ways:

          HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
          String computerName = request.getRemoteHost();
    

    or

          HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
          InetAddress i = InetAddress.getByName(request.getRemoteAddr());
          String computerName =  i.getHostName();
    
  • Is it possible to get the name of the tool selected from a script?

    Hello

    Is it possible to get the name of the tool currently selected from a script?

    I found this:

    https://forums.adobe.com/thread/579195

    https://forums.adobe.com/thread/2161923

    But these works in Photoshop... So, it is possible to get the name of the tool currently selected in InDesign? Is there a universal method that will work in other applications?

    I think that there is a toolBoxTools, app.toolBoxTools...

    P.

  • Is it possible to get the layer, layerset and layer with status layerset...!

    Hello world!

    Is it possible to get the layer, layerset and layer with the status layerset. Because I met a big problem out of it.

    I have a single PS document which is contain the collection of layer, layer with layer games collection. I need apply the function for each layer and layers and each layer games with of layerset.

    I also tried a code, but its error getting. Please help me out of this code...

    -yajiv

    #target photoshop

    app.bringToFront ();

    level of $= 2;

    var app.activeDocument = docRef;

    Journal of the var ="";

    var x = 0;

    var n = number (docRef.layers.length) - 1;

    for (i = 0; i < n; i ++) {}

    var tm = String (docRef.layers [i]);

    var isLayer = tm.lastIndexOf ("ArtLayer");

    var isLayerSet = tm.lastIndexOf ("LayerSet");

    {if(isLayer!=-1)}

    Check_LayerStructure (DocRef.Layers [i], 'Layer');

    }

    {if(isLayerSet!=-1)}

    Check_LayerStructure (DocRef.layerSets, "LayerSets");

    x = x + 1;

    }

    }

    function Check_LayerStructure (objLayer, objflag, x) {------}

    {if(objflag=="Layer")}

    LayetStructure (objLayer, objLayer.name, BlendMode.NORMAL, 100, 100, 0, true, 'Layer');

    }

    else {if(objflag=="LayerSets")

    LayetStructure (objLayer [x] objLayer [x] .name, BlendMode.PASSTHROUGH, 100, 100, 1, true, 'together');

    m = Number (objLayer [x] .layers. Length)

    for (j = 0; j < m; j ++) {}

    var tm = String (objLayer [x] .layers [j]);

    var isLayer = tm.lastIndexOf ("ArtLayer");

    var isLayerSet = tm.lastIndexOf ("LayerSet");

    {if(isLayer!=-1)}

    Check_LayerStructure (objLayer [x]. Layers [j], 'Layer');

    }

    {if(isLayerSet!=-1)}

    Check_LayerStructure (objLayer [x] .layerSets, "LayerSets", x);

    }

    } / / Loop Layerset

    } / / I loop For

    } //Function loop

    function LayetStructure(layerRef,L,bMode,Opt,fillOpt,S,layVisible,Lref) {}

    {if(layerRef.BlendMode!=bMode)}

    If (confirm (L + Lref + "belend mode was bad...!)) \n"+"do you want to change...? »)) {

    layerRef.blendMode = bMode;

    Journal = Journal + "-" + L + Lref + "belend mode has been changed...! \n\n ";

    e = 1;

    }

    }

    {if(layerRef.Opacity!=opt)}

    If (confirm (L + Lref + ' opacity has been "+ Math.round (layerRef.opacity) +"%...! ")) \n"+"do you want to change...? »)) {

    layerRef.opacity = Opt;

    Journal = Journal + "-" + L + Lref + ' opacity was changed to 100...! \n\n ";

    e = 1;

    }

    }

    If (layerRef.fillOpacity! = fillOpt & & S == 0) {}

    If (confirm (L + Lref + ' Fill has been "+ Math.round (layerRef.fillOpacity) +"%...! ")) \n"+"do you want to change...? »)) {

    layerRef.fillOpacity = fillOpt;

    Journal = Journal + "-" + L + Lref + ' fill has been changed to 100...! \n\n ";

    e = 1;

    }

    }

    {if(layerRef.visible!=layVisible)}

    If (L + Lref + ' left eye...! ") \n"+"do you want to change...? ») {

    layerRef.visible = layVisible;

    Journal = Journal + "-" + L + Lref + ' eye was turn on...! \n\n ";

    e = 1;

    }

    }

    }

    Code of responsible for the action would naturally faster, but if you should be more comfortable with the DOM code, it could be useful to you.

    #target photoshop

    var theLayers = collectLayers (app.activeDocument, []);

    Alert (theLayers.join ("\n"));

    function to collect all the layers.

    function collectLayers (theParent, allLayers) {}

    If (! allLayers) {var allLayers = new Array}

    else {};

    the number of var theParent.layers.length = - 1;

    for (var m = number; m > = 0; m-) {}

    var theLayer = theParent.layers [m];

    apply the function of games of layers;

    If (theLayer.typename == "ArtLayer") {}

    allLayers.push ([theLayer, theLayer.blendMode, theLayer.opacity, theLayer.fillOpacity])

    }

    else {}

    allLayers = (collectLayers (theLayer, allLayers))

    This line includes layer groups;

    allLayers.push ([theLayer, theLayer.blendMode, theLayer.opacity, theLayer.fillOpacity]);

    }

    };

    return allLayers

    };

  • is it possible to get the EPS encoding (IE.. BINARY, ASCII, ASCII85)

    Hello world

    is it possible to get the ASCII85 encoding BINARY, ASCII, EPS, JPEG (low)...

    Thanks in advance.

    1.jpg

    -yajiv

    The format of Photoshop EPS files is partially documented here:

    http://www.Adobe.com/devnet-apps/Photoshop/fileformatashtml/#50577413_pgfId-1035096

    Photoshop includes a comment in the EPS so that it is able to read, it writes files insert it again. Third-party programs that write files EPS pixel-based can include this comment in EPS files, so that Photoshop can read their files.

    The comment must follow immediately after the % block of comments at the beginning of the file. The comment is:

    %ImageData: ""

    : Width of the image in pixels.

    : Height of the image in pixels.

    : Number of bits per channel. Must be 1 or 8.

    : Picture mode. Image bitmap/levels of gray = 1; Lab = 2; RGB = 3; CMYK = 4.

    : Number of another string in the file store. Ignored when reading. Photoshop uses this to include a grayscale image that is printed on PostScript printers without colors.

    : Number of bytes per line per channel. Will be 1 or formula (see below):

    1 = data are interleaved.

    (columns * depth + 7) / 8 = data are stored in line-interlaced format, or there is only a single channel.

    :

    1 = data in binary format.

    2 = data in hexadecimal ascii format.

    : PostScript the line immediately preceding the image data. This entire line should not occur elsewhere in the PostScript header code, but it can happen to part of a line.

    In addition, some information about other values of can be found here:

    http://Python.6.X6.Nabble.com/correctly-determine-image-size-of-a-Photoshop-EPS-td2096786. HTML

    1 - binary

    2 - ascii

    3 - jpeg low quality

    4 - jpeg medium quality

    5 - jpeg quality

    6 - jpeg maximum quality

    7 - ascii85

    This is a test script using this information:

    function main ()
    {
        function isPhotoshopEPSFile (f)
        {
            return (f.type === 'EPSF') || f.name.match (/\.eps$/i);
        }
        var epsFilter =
            (File.fs === "Macintosh") ?
                function (f) { return (f instanceof Folder) || isPhotoshopEPSFile (f) } :
                "Photoshop EPS Files:*.eps,All Files:*.*";
        var epsFile = File.openDialog ("Open Photoshop EPS file:", epsFilter);
        if (epsFile)
        {
            if (epsFile.open ("r"))
            {
                while (!epsFile.eof)
                {
                    var line = epsFile.readln ();
                    var found = line.match (/^%ImageData:\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/);
                    if (found)
                    {
                        var dataFormatIndex = found[7];
                        var dataFormats =
                        [
                            "Binary",
                            "ASCII",
                            "JPEG (low quality)",
                            "JPEG (medium quality)",
                            "JPEG (high quality)",
                            "JPEG (maximum quality)",
                            "ASCII85"
                        ];
                        alert (dataFormats[dataFormatIndex - 1]);
                        break;
                    }
                }
                epsFile.close ();
            }
        }
    }
    main ();
    

    HTH,

    Domestic-

  • How to get the name of the client computer and the name of the customer osuser

    Hello everyone,
    the trigger below works fine. But I want to get the name of the client computer and the name of osuser customer in the output of the same trigger shown below, how do I do this in the same trigger? any help is highly appreciated.
    Thank you and best regards.

    triggering factor:
    ------------
    CREATE TABLE logonaudit
    (
    user_id VARCHAR2 (30),
    sess_id NUMBER (10),
    LOGON_TIME DATE,
    host VARCHAR2 (20));

    Table created.

    CREATE OR REPLACE
    Logon_audit RELAXATION
    AFTER LOGON
    WE DATABASE
    DECLARE
    V_program varchar2 (120);
    BEGIN
    SELECT UPPER (program)
    IN v_program
    SESSION $ v
    WHERE audsid = sys_context ('USERENV', 'SESSIONID');
    If (upper (v_program) as 'TOAD %' or upper (v_program) like '% SQLPLUS %')
    then
    INSERT
    IN logonaudit
    VALUES)
    user,
    sys_context ('userenv', 'sessionid'),
    SYSDATE,
    sys_context ('userenv', 'host')
    );
    end if;
    END;

    the output showing sessionid, date, db user name, as a local server machine name.but I want osuser of customer names and the name of the client computer as you know connection of clients to the database of their machines.how can I achieve? any help much appreciated.

    Published by: 938946 on December 25, 2012 12:15 AM

    According to AskTom - do not use audsid, dangerous - can be 'zero '.

  • Is it possible to get the total value of column and set to another area

    Hello

    Is it possible to get the total value of a particular column, and assign this value to another discipline?

    How to do this?

    Thanks in advance,
    SAN

    Hi SAM,

    If your controller class throw this message it means that it works very well. Follow these steps, I hope this will solve your problem.

    1 check the following

    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    OAViewObject ratvo = (OAViewObject) am.findViewObject("*CompetenceElementsVO*"); It should be the name of the instance instead of the name Physics vo vo.
    OAViewObject valuevo = (OAViewObject) am.findViewObject("*PerRatingLevelsVO*");

    2. extend this controller class that is associated with this region.

    I hope it will work now.

    Haroon.

  • Get the name of the client computer

    I would like to know if it is possible to get the name of the client computer in Flex and if

    possible how to do it.

    Kind regards

    I think I remember something similar to this a little backwards for SBI

    Here is the link

    http://forums.Adobe.com/thread/630962?TSTART=2

  • STOR. E TV can play some formats - is it possible to get the firmware update?

    Is it possible to get the update of firmware for STOR. E TV, because this product cannot read many formats.
    I woud would better update of firmware for video - AVI (Xvid, AVC, MPEG1/2/4), MPG/MPEG, VOB, MKV (h.264, x.264, AVC, MPEG1/2/4, VC - 1), TS/TP/M2T (MPEG1/2/4, AVC, VC-1), MP4/MOV (MPEG4, h.264), M2TS, WMV9.

    Can someone REPAIR THIS TOSHIBA in the FUTURE?

    Hello

    It would be always great if a device would be supports all possible formats
    Allows how such as firmware updates or similar would be released
    Who knows what guys are going to do in the future, we'll see.

  • Qosmio G30-163: is it possible to get the HDMI by component

    Hello

    It seems that I'll be stuck with my Qosmio back to its own screen whenever I turn off my LCD TV. So what to do?
    I have a box of multiple component entry from another manufacturer. Is it possible to get the HDMI / component?

    While I listen to my signal through that?
    The only other option is for me to leave my TV in all of time...

    Hello

    Hmm, to my knowledge the HDMI / component is not possible.
    The HDMI-DVI adapter is known to me. Also the "cable DVI-component.

    In any case, I don't think that it is a large and serious issue. You can use the FN + F5 combination to toggle the display if the image switches to the internal display of the laptop!

    Best regards

    Goodbye ;)

  • Is it possible to get the RAID on model T?

    Is it possible to get the RAID on model T? For example if I have a RAID between the mSata SSD and HARD drive?

    T series does not support hardware RAID.

  • Is it possible to get the details of the file (for example the subject and comments) off the screen and to an Excel file or a text file without having to retype this information

    Is it possible to get the details of the file (for example the subject and comments) off the screen and to an Excel file or a text file without having to retype this information

    * original title - file details *.

    Hello

    Could you explain what is exactly? What do you mean by off the screen?

    According to my way of thinking, you want to export the file details of all your files on your HARD drive to an excel file or a txt file. If I'm right in this case, it is not possible to export the details of each & every file in the excel sheet.

  • My laptop has been out of service for Windows 10 preview and free offer, but now work. Is it possible to get the upgrade for Windows 10 free?

    My laptop has been out of service for Windows 10 preview and free offer, but now work. Is it possible to get the upgrade for Windows 10 free?

    Hello

    You buy Windows 10, as there is no free upgrade to Vista 10.

    https://www.Yahoo.com/tech/s/Microsoft-just-confirmed-Windows-10-pricing-everything-know-114542550.html

    Microsoft on Monday said CNET Windows 10 will cost just as much as its predecessor. This means price for Windows 10 will run anywhere from $110 for Windows 10 Home package at $199 for Windows 10 Pro edition. In addition a Pack Pro 10 will allow users upgrade Home Pro for $99.

    http://www.CNET.com/news/Microsoft-prices-single-Windows-10-licenses-at-119-for-home-199-for-Pro/

    How to buy Windows 10:

    http://www.microsoftstore.com/store/msusa/en_US/cat/Windows/CategoryID.70036700

    But first make sure that you have the correct configuration and your computer manufacturer provides the right drivers for 10.

    https://www.Microsoft.com/en-us/Windows/Windows-10-specifications#sysreqs

    " System requirements Windows 10"

    https://www.Thurrott.com/Windows/Windows-10/3884/Windows-10-system-requirements

    Microsoft deploys Windows 10 available as free upgrade to Windows 7 features, Windows and Windows Phone 8.1 8.1 qualified. It will be available from July 29, 2015

    "FAQ Windows 10.

    http://www.Microsoft.com/en-us/Windows/Windows-10-FAQ

    See you soon.

  • Is it still possible to get the 64-bit Windows Vista support?

    Hello!

    Well, I have a copy to authentic detail, under license of Windows Vista Edition Home Premium. He put 32 bit media. But at the time when Vista comes out, I could order the 64-bit Vista Home Premium support which I use today with the same license key that came on the parcel.
    About a year ago I bought the Windows Vista Express upgrade, which is valid for a Home Premium to Ultimate upgrade. But the disk is 32-bit only! So, I was wondering if it is still possible to get the 64-bit separately, support only this time, for the edition of Vista Ultimate? I ask this question because I would like to upgrade to Vista Ultimate, but still run on 64-bit, since I can't spend 64-bit Home Premium to Ultimate 32 - bit.
    I know that it may be too late now, given the fact that Windows 7 is already out and Windows 8 is in its phase of consumer preview now. But I am not really interested in upgrading to one of them at this stage. All I really want is just to upgrade to Vista Ultimate, but I need the 64-bit support, since I already have the license key.
    Maybe that Microsoft may allow me to download an ISO image of the Vista Ultimate 64-bit? That would be good enough for me, I don't care for the physical disc, it is not really necessary. I could get some pirate site or something like that, since I already own not one but two licenses, but I don't want that.
    Thanks in advance!

    The disks are probably non-destinee resale and this may explain the color.

    The Express Upgrade product key is specific to an upgrade from Home Premium to Ultimate.  The product key with the expedition is probably a full license key.

    > By 'Matrix Vista upgrade', you mean upgrading one bit-version to the other, like 64-bit to 32-bit or 32-64, right?

    N ° upgrade matrix tells you if an upgrade installation is allowed or a custom installation is required when moving from one edition of Windows to another.

    > Also, if I use a key Vista Home Premium that I have today to install Home Premium and then upgrade to Vista Ultimate, what happenes to my old key? The old key become invalid/replaced by the new key that I got the update? I mean where I want to go back to the old edition, I've had to go back to Vista Home Premium, I reuse this old key?

    You can use the old key to return to the old edition.  However, you can not use the key to install the old edition on a different computer.  The old key is bound to the key to upgrade.

    > "" If a user is running a 32-bit version of Windows, a user can only be upgraded to another 32-bit version: upgrade from 32 bit to 64 bit requires a clean installation. ""

    Now you are confusing a "install update" with an 'upgrade license '.  A retail upgrade license is valid to move from a 32-bit edition to a 64-bit edition, but an upgrade installation is not allowed and a custom installation is required (due to the change in the number of bits of the installation).

     
    > And now Microsoft will probably speed up the versions of Windows, with new versions coming out every two years or more, or has done.
     
    Not true.  Microsoft has been on a cycle of three years for a long time.  There is no speed upward.  Vista has been delayed for two years, when Microsoft declared a moratorium until security problems in Windows have been fixed (XP SP2 was the result).
     
    > I don't know about Windows 7. I don't know if I'll get it or wait for Windows 8. I hear a lot of misfortunes for Windows 7
     
    I don't know where you got this info.  Windows 7 is much better than Vista or XP.  Vista is the one that is panned by critics as a real dog.  Try Windows 7 and you will never look back.
     

Maybe you are looking for

  • Lktiw bookmark to HOME button icon disappeared.

    on the navigation bar, there is a button to activate the Menu favorites. It was next to the HOME button. He disappeared and I can't get it back. "HOME" button is still there, but there is now no space to the right for the bookmark button. In the cust

  • Toshiba Stor.E Canvio HARD drive does not appear

    Hello I got a Toshiba Stor.E Canvio for about 2 years without problems By using the external drive recently and the USB cable is removed accidentally. After attempting to connect the USB on my Mac again once the external HARD drive does not appear in

  • How to get analog tacho signal in card PCI-6250 OR

    Dear all, IAM using Labview 8.6.1 and map NI PCI-6250. In my application, I need to get the power spectrum of the order for a given speed and signal of the accelerometer. So iam using labview example program command power spectrum(Analog_Tacho).VI. I

  • 1606 error received when you try to reinstall windows XP

    When I tried a clean install of XP using the WINNT32.exe file, I get, 'Error 1606 could not access network location ". I used the "fixit" proposed thus Microsoft tool to do a repair of my registry. None has solved the problem. I'm not completely comp

  • Broken blackBerry Passport Passport security

    Hello I bought my BB from shopblackberry UK Passport and the Passport I have the screen is loose as if glue has stopped working. How can I get a contact with BB to get my phone fixed? Thank you.