Return the UNIX machines IP Address

Can I grab the IP Address of the UNIX machine that my form is running on? I'd like to grab this in a When-New-Form-Instance trigger. Any help would be greatly appreciated.

You can use sys_context('userenv','ip_address') function.

Similar Messages

  • How do i see the current version of compiler installed in the unix machine

    how do i see the current version of compiler installed in the unix machine

    Hi
    For the compiler
    $ CC -V
    CC: Sun C++ 5.7 Patch 117830-02 2005/03/30
    or
    $ cc -C
    cc: Sun C 5.7 Patch 117836-03 2005/05/11
    For full details,
    $ version
    Machine hardware: sun4u
    OS version: 5.8
    Processor type: sparc
    Hardware: SUNW,Sun-Blade-1500
    The following components are installed on your system:
    Sun Studio 10
    Sun Studio 10 C Compiler
    Sun Studio 10 C++ Compiler
    Sun Studio 10 Tools.h++ 7.1
    Sun Studio 10 C++ Standard 64-bit Class Library
    Sun Studio 10 Garbage Collector
    Sun Studio 10 Fortran 95
    Sun Studio 10 Debugging Tools (including dbx)
    Sun Studio 10 Debugger GUI
    Sun Studio 10 Performance Analyzer (including collect, ...)
    Sun Studio 10 X-Designer
    Sun Studio 10 VIM editor
    Sun Studio 10 XEmacs editor
    Sun Studio 10 Native Connector Tool
    Sun Studio 10 LockLint
    Sun Studio 10 Building Software (including dmake)
    Sun Studio 10 Documentation Set
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.7 Patch 117836-03 2005/05/11
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.7 Patch 117830-02 2005/03/30
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran 95 8.1 Patch 117834-02 2005/03/30
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.4 117844-01 2005/03/05
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun Performance Analyzer 7.4 2005/01/07
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun Distributed Make 7.6 117838-01 2005/03/04
    Paul

  • Getting the IP Address/host ID of a unix machine

    Hi,
    In my java program I am using this code to get the IP Address of a windows machine.
    InetAddress inetAdd = InetAddress.getLocalHost();
    String host_Name_IP = inetAdd.toString();I want to know if the same thing works in the unix machine also. If no pls tell me how to obtain the same in unix.
    Thanks

    then y is it returning null when I execute it on a
    unix machineWorks on my Linux FC4!

  • Using shell scripts on Unix machine within Servlet or JSP

    Hi,
    I have to write a web application that lists all print jobs on a Unix machine and allows them to be deleted.
    There will be two shell scripts on the Unix machine: list_printjobs and delete_printjobs which recieve parameters and return exit values if suceeded or not.
    My question now is, how can I use those shell scripts on the Unix machine from within a Servlet or JSP?
    Thanks,
    Frank

    In order to run any shell command you need to look at the Runtime.exec() method.
    Check out [this article|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html]

  • CONNECT UNIX MACHINE FROM WINDOWS USING C#

    Hi all i have a requirement to connect unix machine from windows using c# code . I have the IP Address of the unix machine and the path too.I have to make a FTP using the c# code from unix to windows and vice versa . Can anybody help me out on this . It
    would be great if have a solution for this .

    Hi
    Balamurali_Mohan,
    Please refer to the similar thread
    How to connect to unix server using c#
    The marked answer said: Use a SSH (secure shell) client wrapper for .NET to connect to the remote UNIX machine and execute commands to run your script.
    Have a look at:
    http://www.codeproject.com/KB/IP/sharpssh.aspx
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Wrong output when executed in UNIX machine

    Hi All,
    We have created a java class which takes a file name as command line arguments and trying to test whether that file which has taken from command-line is accessible if it is already in use (like copying from/to other path). For this we are passing filename as argument to FileInputStream Class .
    This java class when executed in windows machine is giving expected output i.e. throwing Exception if the file is already in use. But the same code when ran from UNIX machine, there it is not giving expected result as mentioned above. Can anyone please help us in resolving this problem?
    Thanks in Advance

    Not sure if this has anything to do with it, but did ftp the text file up to the UNIX machine? If you did, were you using ascii mode?
    Windows:
    file in  use.becomes
    file in use.^Min unix when I transfer the file using the binary mode.
    -J

  • Setting Classpath for java in UNIX machine

    Hi
    I need to work in JAVA in UNIX machine. But, I don't know how to set the classpath in the unix machine. If anyone knows, please let me know.

    setenv CLASSPATH .:/homes/code:${CLASSPATH}
    http://www.cise.ufl.edu/class/cop3530fa04/WinHowTo.htm

  • How to get the IP address of the Client machine???

    Hi All,
    I am trying to get the IP address of the Client machine and using the code
    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') FROM DUAL;
    but this query only return server ip address but i want Client machine IP .
    How can I get that. Please help.

    SowmyRaj wrote:
    Hi All,
    I am trying to get the IP address of the Client machine and using the code
    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') FROM DUAL;
    but this query only return server ip address but i want Client machine IP .
    How can I get that. Please help.Which client's IP addess?
    SYS_CONTEXT('USERENV','IP_ADDRESS') should give you the IP address of the machine from which the client is connected. So you are running sqlplus from Server?
    To check other session's information, you can check V$SESSION view.

  • IP address of the client machine ???

    I want to know how to get the IP address of the user who has logged in from a client machine through Oracle forms. Does anyone how to get it from Oracle forms.
    In fact i tried Sys_context (function) which returned the IP address of the client machine through SQL plus.
    Select SYS_CONTEXT('USERENV','IP_ADDRESS') From Dual;
    For testing sake, created a custom server side function using sys_context. From Oracle forms called the sever side custom function. During run time (from client machine), i got the IP address of the server (application server/DB server/forms server all in one NT box),not the IP address of the client machine.
    Any ideas, welcome.
    Thanks in advance
    Sai
    [email protected]
    null

    SowmyRaj wrote:
    Hi All,
    I am trying to get the IP address of the Client machine and using the code
    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') FROM DUAL;
    but this query only return server ip address but i want Client machine IP .
    How can I get that. Please help.Which client's IP addess?
    SYS_CONTEXT('USERENV','IP_ADDRESS') should give you the IP address of the machine from which the client is connected. So you are running sqlplus from Server?
    To check other session's information, you can check V$SESSION view.

  • Do I need to return the old router from Verizon after I transferred to a new address?

    Hello,
    I was trying to return the old router that I had from my previous address. (They gave me a new one when I moved to the new house)
    But I didn't receive the return label. Where can I obtain it, and what address do I need to send it to?
    I tried calling the return department but I was on hold forever.
    I googled and see some people said that they won't want it back, but some people said they do.
    Please help..
    Thanks,
    Sylvia

    fat10000y wrote:
    Hello,
    I was trying to return the old router that I had from my previous address. (They gave me a new one when I moved to the new house)
    But I didn't receive the return label. Where can I obtain it, and what address do I need to send it to?
    I tried calling the return department but I was on hold forever.
    I googled and see some people said that they won't want it back, but some people said they do.
    Please help..
    Thanks,
    Sylvia
    As already said it depends on the model that you have. If you have an Actiontec they will proabably want it back, but if its an old Westell they won't.

  • How to capture the IP address of the client Machine.

    HI...
    I want to capture the ip address of the client machine and store it in a field.
    My client wants to capture the ip address so that he can easily trace out from
    which client system particular work is done.
    if there any pre defined function or syntax is there to get the IP address...
    with cheers
    sprity....

    Hi.....
    i have a attached the web_util.pll n web_util.olb and run the form...
    it is still staying web_util.clientinfo is not declared....
    i want to know where to attach the olb thru subclass...
    i tried in attaching the text item(ip_addr) property.After clicking the subclass it show the we_util.olb.
    but there is no value for in it for both object n property.
    i think if i get info on this then my work is done....
    anyone throw a light on my doubt...........
    with cheers
    sprity...

  • Help - InetAddress.getHostName() returns the ip address

    Hi,
    After updating two windows XP computers witht the latest windows updates the InetAddress.getHostName() stoped returning the remote computers name and instead returns the ip address. This is how it worked :
    rx = a custom DataPacket class
    public InetAddress from;
    System.out.println("From: "+ (rx.from.getHostName() + "/" + rx.from.getHostAddress()) + " " + receivedMessage + "\r\n");
    printed - From: AUTOTEST1/192.1.3.60 test message
    now it prints this - From: 192.1.3.223/192.1.3.223 test message
    Is there an alternate way of getting a computers host name or is there a work around i could implement?
    I need the computers host names as this is a fault logging program and without the computer name the users will not know who they are sending the mesage to as it displays ip addresses and not the computer name
    Thanks,
    sjs1985

    getCanonicalHostName() still returns the ip address instead of the host name, thanx 4 trying to help me.
    It seems like it is not possible to receive the host name on a fully updated Windows XP computer using the InetAddress class anymore.
    I will have to do it the long way and send a message containing the computer name on start up which would then be added to a list of computernames/ip addresses

  • COPY DATABASE ON THE SAME UNIX MACHINE

    제품 : ORACLE SERVER
    작성날짜 : 1997-10-10
    INTRODUCTION
    The following article deals with creating a copy of a database on the same
    unix machine. A database might need to be copied in order to duplicate the
    production system, for example for testing purposes. It is recommended that
    the reader refer also to the following documentation:
    -Oracle 7 Server Administrators Guide
    Performing full backups: Chapter 18 page 18-7
    OVERVIEW OF PROCEDURE
    Before copying the database to a new location, it is necessary to perform
    a full cold backup of the database, whilst the database is shutdown. This
    will ensure that no data will be lost if the copying of the database is
    unsuccessful.
    WARNING
    Creating a copy of a database involves usage of the CREATE CONTROLFILE command
    (explained below). If this command is not executed correctly it could corrupt
    the production database. If this happens, and if the files in question are
    important, this will mean that the original database will need to be restored
    from a backup.
    Note: If you are using Oracle 7.1.6 on Sun Solaris 2.X there is a serious
    bug with CREATE CONTROLFILE. Call Oracle Worldwide Support asking for
    details of <Bug:274054> before proceeding.
    1. OBTAIN DATABASE INFORMATION FROM CONTROLFILE
    In order to move the database, it is necessary to create a script containing
    information about the files of the database.
    This is done by executing the following commands.
    a. SQLDBA
    b. CONNECT INTERNAL, STARTUP MOUNT
    c. ALTER DATABASE BACKUP CONTROLFILE TO TRACE RESETLOGS;
    This will create a trace file in the trace file directory. The file
    will have the extension .trc, and is located either in the directory
    defined by the initialization parameter 'user_dump_dest', or, if
    this is not defined, in ORACLE_HOME/rdbms/log. The file should be
    copied to a name such as ccf<NEW_SID>.sql, where <NEW_SID> is to be
    the ORACLE_SID of the copied database.
    2. IDENTIFY FILES TO BACKUP/COPY
    a. Identify database and log files
    The CREATE CONTROLFILE command in the file ccf<NEW_SID>.sql can then be
    used to identify the various database files and redo log files that need
    to be backed up. The file names will be in single quotes and separated
    by commas after the words LOGFILE and DATAFILE, e.g:
    CREATE CONTROLFILE REUSE DATABASE "FRITZ" RESETLOGS ARCHIVELOG
    MAXLOGFILES 6
    MAXLOGMEMBERS 2
    MAXDATAFILES 10
    MAXINSTANCES 1
    MAXLOGHISTORY 100
    LOGFILE
    GROUP 1 (
    '/oracle/tberryha/fritz/log_disk1/fritzlog1v713.dbf',
    '/oracle/tberryha/fritz/log_disk2/fritzlog1v713.dbf'
    ) SIZE 50K,
    GROUP 2 (
    '/oracle/tberryha/fritz/log_disk1/fritzlog2v713.dbf',
    '/oracle/tberryha/fritz/log_disk2/fritzlog2v713.dbf'
    ) SIZE 50K
    DATAFILE
    '/oracle/tberryha/fritz/fritz_system/fritz_system01.dbf' SIZE 8M,
    '/oracle/tberryha/fritz/fritz_data/fritz_data01.dbf' SIZE 20M,
    '/oracle/tberryha/fritz/fritz_rollback/fritz_rollback01.dbf' SIZE 20M,
    '/oracle/tberryha/fritz/fritz_temp/fritz_temp01.dbf' SIZE 20M,
    '/oracle/tberryha/fritz/fritz_data/fritz_data02.dbf' SIZE 5M,
    '/oracle/d2/V7141/dbs/x' SIZE 1M
    It is also possible to obtain a listing of the files of the database
    by executing the following sql commands:
    SQLPLUS username/password
    Note: The user must have sufficient privileges to be able to see
    the dba views 'sys.dba_data_files', 'sys.v$logfile' and in addition
    the database must be open.
    SPOOL files.log
    SELECT file_name FROM sys.dba_data_files ORDER BY tablespace_name;
    SELECT member FROM sys.v$logfile
    SPOOL OFF
    Note: This will create a spool file called 'files.log' which
    will record the results of the previous commands.
    b. Identify controlfiles
    This can be done either by referring to the init<SID>.ora
    'control_files' parameter, or from 7.0.16 onwards, the table
    sys.v$controlfile can be used to identify the controlfiles of the
    database via the following statement:
    SPOOL control.log
    SELECT name FROM v$controlfile;
    SPOOL OFF
    This will create a file called control.log in the current directory
    which will contain the names of the controlfiles for the database.
    3. BACKUP EXISTING DATABASE
    Shutdown instance via SQLDBA, SHUTDOWN NORMAL, and then take full cold
    backup of:
    a. All the files identified in step 2 above.
    b. All parameter files.
    Note: the main parameter file will usually be called init<SID>.ora, in
    addition to which there may also be other parameter files. These will
    be identified by 'ifile' (included file) parameters in the init<SID>.ora.
    These additional parameter files are usually called config<SID>.ora.
    4. MAKE A COPY OF THE DATABASE
    Copy all parameter files, controlfiles, and all files noted in step 1 above
    to their new location taking care to preserve ownership and permissions.
    When the database has been copied, it will not be possible to use the same
    SID and therefore the ORACLE_SID environment variable must
    be changed to a new SID, and the copied init<SID>.ora must be
    renamed to init<NEW_SID>.ora, and any parameter files pointed to by an
    'ifile' parameter (e.g. parameter files such as config<SID>.ora) should be
    renamed to incorporate the NEW_SID (i.e. config<NEW_SID>.ora).
    5. SET UP PARAMETER FILES FOR THE COPIED DATABASE
    Edit the value of the control_files parameter in the init<NEW_SID>.ora to be
    the name and location that you want to use for the new control files.
    The controlfiles should be given a different name to distinguish them from
    the old database. In addition, change the DB_NAME parameter in the
    init<NEW_SID>.ora to be an appropriate name for the new database. Any
    'ifile' parameters of the parameter file will need to be edited to point to
    the new name of the include file in the new location.
    6. PREPARE THE 'CREATE CONTROLFILE COMMAND' FOR THE COPIED DATABASE
    In order to establish the new database in the new location, the CREATE
    CONTROLFILE command in the file ccf<NEW_SID>.sql should be executed. The
    following steps illustrate how CREATE CONTROLFILE command is prepared.
    a. The file ccf<NEW_SID>.sql must be edited before use. The CREATE
    CONTROLFILE command will be preceded by a series of comments and a
    STARTUP NOMOUNT command. These need to be stripped out of the file. In
    addition, after the create controlfile command, there will be a number
    of comments and the commands RECOVER DATABASE and ALTER DATABASE OPEN,
    which should also be stripped out, leaving just the create controlfile
    command itself.
    b. The CREATE CONTROLFILE command itself should also be edited. Change
    the CREATE CONTROLFILE command in 'ccf<NEW_SID>.sql' to have the new
    database name, and add the word 'SET', e.g:
    CREATE CONTROLFILE REUSE DATABASE "olddbname" RESETLOGS
    becomes
    CREATE CONTROLFILE REUSE set DATABASE "newdbname" RESETLOGS
    c. The CREATE CONTROLFILE command also specifies the files which make up
    the database, and these must also be changed to name the files of the
    new database in the new location, e.g:
    LOGFILE
    GROUP 1 (
    '/old_path/old_logfile_name1',
    '/old_path/old_logfile_name2'
    ) SIZE 50k
    would become:
    LOGFILE
    GROUP 1 (
    '/new_path/new_logfile_name1',
    '/new_path/new_logfile_name2'
    ) SIZE 50k
    and
    DATAFILE
    '/old_path/old_file_name1' SIZE 5M,
    '/old_path/old_file_name2' SIZE 10M
    would become:
    DATAFILE
    '/new_path/new_file_name1' SIZE 5M,
    '/new_path/new_file_name2' SIZE 10M
    7. EXECUTE THE 'CREATE CONTROLFILE' COMMAND FOR THE COPIED DATABASE
    Having prepared the create controlfile script, it is now necessary to run
    the script from within the new instance. This is done by executing the
    following:
    a. at the operating system prompt, change the value of the environment
    variable ORACLE_SID from OLD_SID to NEW_SID. This can be done by using
    the following unix command from within the C shell:
    %setenv ORACLE_SID NEW_SID
    b. SQLDBA
    c. CONNECT INTERNAL, STARTUP NOMOUNT PFILE=/<full path>/init<NEW_SID>.ora
    d. @ccf<NEW_SID>
    Note: if any files which should be specified in the CREATE CONTROLFILE
    command are omitted, these files cannot be added to the new database
    at a later date. In addition, if any of the files specified in the
    CREATE CONTROLFILE command are NOT changed from their original names,
    then the corresponding files of the original database will become part
    of the copied database, and it will not be possible to restore them to
    the original database. If this happens, and if the files in question
    are important, this will mean that the original database will need to
    be restored from a backup.
    e. ALTER DATABASE OPEN RESETLOGS
    8. MAKE A FULL COLD BACKUP OF THE COPIED DATABASE
    SHUTDOWN and take a full cold backup of the database in the new location.
    The full cold backup can be done as detailed in steps 2 and 3.

    Yes.
    vipul wrote:
    >
    Thanks Peter,
    But in such a case do we need to configure the WSL in the ubb file and set environment
    variables like WSNADDR, WSENVFILE etc .etc. for the WS client.
    Regards
    Vipul.
    Peter Holditch <[email protected]> wrote:
    vipul,
    Yes.
    In fact, you don't even need 2 installs. If you do a server installation
    of
    Tuxedo onto your UNIX machine, and build all the clients with the buildlcient
    -w
    option, then the clients will use /WS libraries, instead of the native
    ones, to
    contact Tuxedo.
    Regards,
    Peter.
    vipul wrote:
    Can I install Tuxedo/T server and Tuxedo/WS on the same UNIX machinein different
    directories
    and make the application behave like a client-server. In such a casecan we make
    the clients act
    like WS clients and not native clients.

  • Multiple Instances on the same machine: Several IP Addresses

              Hi all, I want to set up several instances of WL on the
              same server. These instances will be clustered. I am
              using Apache for the WebServer. Here the configuration
              I used: I first change the weblogic.conf file in Apache
              to set up the bridge.I restart apache using apachectl.
              Then, on the WebLogic site, I created a new ipadress
              using ifconfig hme0:1 ip adress ... I created a file
              hostname.hme0:1 in /etc I added this Ip address in /etc/hosts.
              I added this Ip address in the mycluster DNS. I wanted
              to start both WL manually using startWebLogic.sh file
              to see the log file. So, I first assign hostname to WL1.
              Then start WL. I opened an other terminal. Assign the
              hostname to WL2. Then start using startWebLogic.sh. The
              first instance started correctly.When the second started,
              there was an error: when listening to the port 7001,
              this port was already used. That was the same with the
              port 7002.
              Then , my question is How is it possible to configure
              several instances on the same machine using several ip
              addresses and one port. Thank you for your help. Erwan
              

              Please try -Dweblogic.system.bindAddr=<a.b.c.d> in your startWebLogic.sh.
              Brian
              "Merg" <[email protected]> wrote:
              >> Then , my question is How is it possible to configure
              >> several instances on the same machine using several
              >ip
              >> addresses and one port. Thank you for your help. Eourwan
              >
              >On Win2K/WinNT you can assign several IP adresses to you
              >NIC. (Advanced
              >TCP/IP options.) Each server instance has to run on it's
              >own port.
              >
              >Regards,
              >Merg
              >
              >
              

  • After renaming my MAC hard drive, Acrobat, Illustrator and Bridge fail to launch. Acrobat returns the error message "An internal error occurred". I've checked this out and it seems related to user permissions. The version is Acrobat X. My machine has mult

    After renaming my MAC hard drive, Acrobat, Illustrator and Bridge fail to launch. Acrobat returns the error message "An internal error occurred". I've checked this out and it seems related to user permissions. The version is Acrobat X. My machine has multiple user accounts. Any help would be appreciated. I renamed the drive to its original name but to no effect. RR

    I resolved the issue.
    The problem is indeed a permissions issue with the Adobe Application Support folder.
    First, in MAC OS Lion the ~/Library/ folder is hidden by default. You must unhide it in order to proceed. (if it is already visible in your ~/User/ folder, proceed to Step 4.)
    Next launch the Terminal application.
    At the command line, paste the following command line: chflags nohidden ~/Library/
    Go to /Users/youruserid/Library/Application Support/Adobe
    Get info on the ~/Adobe folder and reset your permissions to read/write and apply to all enclosed folders
    Problem solved. RR

Maybe you are looking for

  • Cant scroll in firefox 17.0.1

    hello i bought a new samsung series 9 ultrabook ever since i installed firefox im having issue that i cant scroll with touchpad i checked in safe mode and add ons disables and it didnt work as well i tried in different browsers as ie9 and chrome and

  • Using Scrabble in Facebook - help!!

    I play Scrabble on Facebook from my laptop but the iPad says I need to download flash player which of course I can't do as Apple don't support it. So does this mean I can't play games on Facebook from the iPad? That is rubbish. Very unhappy!

  • WRT1900AC integration with Linksys Hosted Router Management?

    I recently purchased a new WRT1900AC.  When I first started it up, I was prompted to set things up with a preconfigured Router Name and network Names, did so, and then quickly realized that I had made a mistake since everything on the wired portion o

  • ORA-03135 (lost connection) after collector start

    After installing either AV 10.2.2.0 or 10.3.0 and associated agent of same version, collectors die. Excerpt from DBAUD_Collector log file: INFO @ '25/07/2008 16:41:37 -5:00': ***** Recovery done OK INFO @ '25/07/2008 16:41:37 -5:00': ***** Initializa

  • Podcast Start Point

    I have noticed if I am listening to one podcast, pause it, and then listen to a different one, it will start from the same location as where I paused the first podcast. I noticed this happening with iOS 4.2.1. Has anyone else had this happen to them?