IP of client in Application Server

Dear All,
FUNCTION RETURN_IP_ADDRESS
     RETURN VARCHAR2
     IS
          IP_ADDRESS_V VARCHAR2(15);
     BEGIN
     SELECT      SYS_CONTEXT('USERENV','IP_ADDRESS')
          INTO          IP_ADDRESS_V
          FROM           DUAL;
          RETURN(IP_ADDRESS_V);
     END;
in client server environment this function returns me the IP of client
but in 3tier mode it returns the IP of application server but i need IP of client.
any help will be appreciated

thanks for the reply but sorry i did not understand how to use it
what changes should i made in my function to get the ip of client
CREATE OR REPLACE FUNCTION RETURN_IP_ADDRESS
RETURN VARCHAR2
IS
IP_ADDRESS_V VARCHAR2(15);
BEGIN
SELECT   SYS_CONTEXT('USERENV','IP_ADDRESS')
INTO    IP_ADDRESS_V
FROM     DUAL;
RETURN(IP_ADDRESS_V);
END;
Thanks

Similar Messages

  • How to copy a file from Client to Application Server

    Hello,
    My requirement is user selects a file from Browse button on oracle form - this location is on client side, and have to copy this file on Application server.
    I tried using webutil_file.copy_file function but it gives error - copy_file is not a procedure or is undefined.
    There is another way of Client_to_AS but it needs some changes in configuration files of webutil, which is not allowed in our scenario.
    Source - client machine resident file
    Target- Application server disk location
    So can any one help in this regard?

    Hi Francois,
    Thanks for your suggestion, actually i didnt want to use Client_to_As as client doesnt want to make any changes in any configuration files, no matter how small the change is.
    Anyways we are able to successfully copy the file using Client_to_AS, but one thing that i couldn't understand is why was our webutil_file.copy_file function failing?
    Any hint about this?
    Thanks!
    Avinash.
    Pune- India.

  • Installing an Oracle Database client on Application Server

    Hi all
    I have posted before but thought I'd clean up my original question and repost - apologies but I'm desperate for help here.
    I have a problem using Oracle Wallet with Application Server and Developer Suite 10g Rel 2 Software Update 10.1.2.3.0 on Windows 2003. The problem arises because the database which ships with this version of Application Server is 10.1.0.5. This database version is not compatible with Oracle Wallet external passwords eg sqlplus /@MY_WALLET_NAME.
    So...to get around this I'm looking at putting the 10.2 database client on which will allow me to use sqlplus with the wallet.
    My questions is:
    Does anyone have any advice for retaining existing Application Server functionality (we use Discoverer, Forms and Reports (RWCLIENT)) with a new Oracle 10.2 home on the server?
    I will put on the client so would expect if I copy across the tnsnames & sqlnet ora, the connectivity is all backward compatible. SQL*Plus is obviously backward compatible. I'm not familiar with Application Server so am looking for guidance on any configurations I might need to change to make sure they pick up the right Oracle Home. For example, with the new Oracle Home at the start of the %PATH%, will RWCLIENT work as normal?
    Thanks,
    Tom
    Edited by: R_Norvegicus on Sep 27, 2010 3:19 AM
    Edited by: R_Norvegicus on Sep 27, 2010 3:36 AM

    Nothing special. Oracle Client installation is very simple.
    Client Installation Guide for 32-Bit Windows Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/pdf/A95494_01.pdf
    Joel Pérez

  • Info of connection client to application server

    I use Application Server 1.0.1 ...
    It is possible to know (using form 6i) some information about the client that actualy is connect to the application ??
    Infact userenv(terminal) reports always the name of the application server.
    Thank You

    Hi,
    If you query for the terminal in the database tables, they will show terminal as application server terminal as the database connection is opened from the application server.
    May be you need to find out client connection info at application server level.
    Regards
    Deepak

  • How to Install VPN and how to connect client Application server

    Hi All,
    Could any one tell me. How to connect Client's Application server and How to Install VPN. Thanks in advance.......
    Thanks  & regards
    Vardhan

    where r u working?
    ask your help desk to give the URL link to down load vpn
    after downloading install it, its just like a wizard
    you need to give your userid and password , and secureid number
    secureid is a small device which displays a number(say a 6 digit number ) this number is keeps on changing for every one minitue.
    you need to enter the number which is displaing while you are trying to connect to vpn.
    in the middle of connecting to vpn if your secureid number changed , you need to login once again by the same procedure

  • Create report output to the Client of the Application Server inst.of Server

    Hi,
    Please suggest the soution for the below:
    We are using SET_REPORT_OBJECT_PROPERTY and WEB.SHOW_DOCUMENT to create report. Now Requirement is to save the report output to Client instead of server. I tried to use WEBUTIL but web util can be used from form only becuase that is using form item.
    (1) We are calling all our report from a form. Is there any option to trigger a action when ever a report job is created in Application server (report server)
    (2) Please let me now is there any option to create the output directly to client of application server 10G R1WIN , 10GR2WIN or in 11G. If yes please let me know the details.
    Wtih Thanks & Regards
    K.Sundar
    Edited by: 870860 on Jul 13, 2011 10:27 PM

    Hi,
    Please suggest the soution for the below:
    We are using SET_REPORT_OBJECT_PROPERTY and WEB.SHOW_DOCUMENT to create report. Now Requirement is to save the report output to Client instead of server. I tried to use WEBUTIL but web util can be used from form only becuase that is using form item.
    (1) We are calling all our report from a form. Is there any option to trigger a action when ever a report job is created in Application server (report server)
    (2) Please let me now is there any option to create the output directly to client of application server 10G R1WIN , 10GR2WIN or in 11G. If yes please let me know the details.
    Wtih Thanks & Regards
    K.Sundar
    Edited by: 870860 on Jul 13, 2011 10:27 PM

  • Oracle Application Server On Linux Problem

    Our client's application server has been live for 6 months now and currently there is an issue.
    This server is a Dell 6850 running Red Hat Linux ES 3.4 (Taroon Update 5) and kernel 2.4.21-32 with 2 CPUs and 8Gb of ram. Our J2EE web application runs in Oracle Application Server and currently 5 OC4Js are up and running.
    The issue we are facing is the server has frequently gone to a hang state. When this happened, we won't be able to telnet into the server but there are ping responses. So the only thing to do then would be to reboot the server.
    Now I have setup nmon for linux to run 24 hours in the server taking snap shots of the server's performance every 10 minutes. From the nmon output, I could see free memory is always around 20Mb - 50 Mb and sometimes would shoot up to 1Gb and then in 3 hours back down to 20Mb - 50Mb. Is this a normal pattern for a linux server?
    From the Oracle console under memory usage, I saw that around 1.5Gb is being used by the Application Server, 36Mb free and 6.5Gb used by other processes. Now, I am curious as what this other processes are and why are they using 6.5Gb.
    I am not sure if this is caused by a faulty hardware, OS/kernel bug, or our web application.
    What I have done:
    i) monitor /var/log/messages but no suspicious error being logged not even before or during the server hang.
    ii) monitor Oracle Application Sever log files but no suspicious errors logged.
    iii) monitor nmon output daily
    iv) searched for similar cases using Google and Oracle's Metalink but found nothing.
    Thanks.

    As a followup ---
    We believe that we have found the culprit finally based on two lucky catches during lockups. Last seven days we have been testing various combinations of centennial agent and enterprise agent running and have successfully tracked issue down to these two products not wanting to run together.
    We have 32 machines with centennial running and no emctl and there has been no issues for last 18 months. The machines we have had problem with are the ones that use enterprise agent also. We disabled centennial agent on 8 machines and left it running on 6 machines that had emctl agent. We were still experiencing failures on the 6 machines but no failures on 8 machines.
    We turned off centennial software on the remaining 6 and have had no lockups since. Based on this we are concluding that "emctl agent" and "centennial agent" dont play well together and so plan to discontinue using both of these together on any machines.
    Did not reseach exactly why these two were causing a system panic but since these are production and vital we will live with workaround.

  • Application Server and Driver  Connection Pool

    Hi,
    What is the difference between Connection Pool implemented by the Driver and the Connection Pool implemented by the Application Server?
    If i am using a JDBC3.0 compliant driver,i can use PooledDataSource to get a Conenction from the Connection pool. But, even otherwise, the application server (JBOSS) would implement a Connection Pooling mechanism. i.e even from a basic Datasource, i will get the Connection Pool.
    1. Can i do away with PooledDataSource of Driver when using an application server?
    2. If i have to use both, then what is the criterion for optimal usage?
    Can someone answer this please...
    If there is some reference available on this topic, please let me know.
    Thanks in Advance

    Connection pooling is good that the connection object that have been created can be used later by other client.
    Application server is better since server always have more resources( such as memory, processor speed) in order to perform the task.
    And this may improve centralization, all connection object managed by a single centralized server.
    Pls correct me if i am wrong.

  • Oracle Wallet on Application Server

    My requirement is to get Oracle Wallet connections (eg /@<wallet_name>) working on an Oracle Application Server 10g 10.1.2.0.2 in these four ways:
    1. SQLPLUS eg sqlplus /@<wallet_name>
    2. RWCLIENT
    3. Oracle Forms
    4. Reports URLS
    5. Perl dbi
    I can't get any of these to work, even SQLPLUS. I think it's down to the fact that the database is 10.1.0.5.
    If I map a drive to a 10.2.0.4 installation and set ORACLE_HOME to that, SQLPLUS works okay. I imagine I might be able to get the Perl dbi working via that too.
    However, I don't know how to get the reports working. I can probably live with FORMS not being in the wallet.
    Thanks.
    Edited by: R_Norvegicus on Sep 24, 2010 5:49 AM

    I had a reply from Oracle Support that the feature I'm trying to use was introduced in 10g Release 2 so this is why the application server doesn't have it.
    Can I put a 10.2 client on application server without causing other problems to get around this?

  • Copy file from client PC to server in a web deployed application

    I have developed one application using Oracle forms 6i, which is deployed on the web server.
    I run this application from a client PC in Internet Explorer using internet.
    I want to copy one file from the client PC to the web server.
    I have done following things
    - Created a shared folder on the server and given full rights to every one on this folder
    - I use 'net use' command in my program to connect to this shared folder
    - I use copy command to copy file from local client pc to server. This copy command I am executing using host command of my programming (PL/SQL: eg. host('copy abc.txt \\server\share\') )
    But this does not work.
    When I do the same thing in command window, it works.
    (ie. Start-Run cmd to open command window and then type the above copy command)
    Can you please tell me, how to copy a file from client PC to the sever in Web deployed application?
    Thanks

    I downloaded D2KWUtil from the link suggested by you. It has very nice example demo form. But the documentation provided says following
    Using D2KWUTIL in Web Deployed Applications
    The use of this library is not supported with Web deployed applications.
    In a web deployment scenario not all functions within D2KWUTIL will work. Any function that interacts with the User Interface (such as those in the WIN_API_DIALOG package) will fail.
    Any interaction with the O/S by other functions will all be executed on the NT server and will act within, or return information pertinant to, the environment on that machine. For instance GET_COMPUTER_NAME will return the Server’s name, not the name of the computer that the Client browser is running on. Likewise COPY_FILE will copy files in the Forms Server not on the Client.
    Functions such as those in WIN_API_BITOP will continue to work without change.
    so this will not work in web deployed application.
    Any other suggestion?
    Thanks

  • Client-cert auth impl in web.xml does not work in Oracle Application Server

    Hi,
    I am new to implementing security features on the web applications.. I have developed a new web service using jdev1012 and deployed in OAS 10.1.2. Its working fine according to the business requirements, but I am in need of implementing client-cert authentication to enable the web service available to only those who have client certificate.
    My server details are:
    Oracle Application Server 10g Release 2 (10.1.2)
    Server certificate is in place and SSL mode have been already enabled.. able to access my web service through https://<mydomain.com>/myws/TreqWS as well able to see the WSDL file through https://<mydomain.com>/myws/TreqWS?WSDL.
    I tried to include the following in my web.xml file as part of implementing CLIENT-CERT authentication.
    <security-constraint>
    <display-name>SecurityConstraint</display-name>
    <web-resource-collection>
    <web-resource-name>WSCollection</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>CLIENT-CERT</auth-method>
    <realm-name>WSCollection</realm-name> <!-- am not sure about this realm-name and its purpose -->
    </login-config>
    It is not woking as expected, though I have restarted my oc4j container after including this content to the web.xml file. i.e, I am able to invoke the web service though my sample java client program, though I donot have client certificate/keystore.
    I believe I am missing something..Can anyone help me in this regard to implement CLIENT-CERT authentication successfully?
    Thanks,
    Ms

    I am having the same problem with doc and xsl. I have added this
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    to my web.xml. I even restarted the server. I still see doc and xsl in binary.
    Is there some other setting that needs to take place?
    I am using WL6.1 with fixpack 1.
    I can see the doc and excel files in the browser if I don't go through the weblogic
    server. That just confirms it's not my browser.
    Kumar Allamraju <[email protected]> wrote:
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    It works fine for me in 6.1 SP1.
    <br><br>
    If the following doesn't work , can you
    <br>try application/winword instead of application/msword?
    <p>--
    <br>Kumar
    <p>Siming Mu wrote:
    <blockquote TYPE=CITE>Hi,
    <p>I setup in my web.xml a mime mapping as follows,
    <p><mime-mapping>
    <br><extension>doc</extension><mime-type>application/msword</mime-type>
    <br></mime-mapping>
    <p>When I specify a test.doc url, the doc file appears in my browser
    as
    binary data
    <br>instead of download.
    <p>Please reference change request 055002, which decribes this problem. 
    According
    <br>to edocs, it has been fixed in wls6.1sp1.
    <p>But I am seeing it fixed.  Am I doing anything wrong? Thanks.
    <p>Siming</blockquote>
    </html>

  • Client printer on oracle application server

    Hi all.
    I configured my own system on oracle application server and I connected my printer on client machine.
    When I wanted to print through the application server on the printer I did not print.
    Please could anyone shows me where is the error file (for the printer) located in oracle application server to check the error.
    by

    No. Not only it isn't certified, but it is also impossible to run forms compiled with the 11g compiler with the 10g runtime. For 11g there is a install bundle for the developer suite / application server.
    cheers

  • How to create client stub while deployign EAR on Oracle Application Server

    Hi,
    I have deployed an EJB on Oracle Application Server 10g 10.1.2.0.2. And i want to call this ejb from other app server using ejb client. For that i need client stub.
    Is there any way I can create client stub while deploying EJB on the OC4J?
    I am sure there will be some options.
    Thanks and Regards
    AT

    Amit,
    It depends on which transport protocol you use to transmit both the client requests and the server responses: either IIOP or ORMI.
    Here's how it works: if you've chosen the IIOP protocol, the client stubs are generated at deploy time and stored in the iiopClient.jar file. Once created, you append this file to your java client's classpath.
    Now, if your choice is ORMI, the client stubs are created on demand by the container, so there is no need to append any jar file to the client classpath.
    Consult the OC4J Services Guide in the Official Oracle Application Server docs for further inforrmation on this topic, specially the "Remote Method Invocation" chapter.
    RB

  • Download text file from application server to client server.

    Hi all,
    I am facing a format issue while downloading text file from application server to the client machine.
    The issue is that, say I have 6 to 10 lines in my text file in application server. but when i store it on the hard drive,
    it shoes all the data in a single line. Where as i need to download data in same format as in application server.
    Awaiting for your responses.
    Regards,
    Jose

    Hi,
    If we want to upload file data from the application server to the internal table, there is no function module or class static method which we can use, we must wirte the code by ourselves.
    1. For the file data which has no seperator between field columns.
    PARAMETERS p_file  TYPE dxfile-filename.
    START-OF-SELECTION.
    OPEN DATASET p_file IN TEXT MODE ENCODING DEFAULT FOR INPUT.
      DO.
        READ DATASET p_file INTO gds_data.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        APPEND gds_data TO gdt_data.
      ENDDO.
    CLOSE DATASET p_file.2. For the file data which has tab separator between field columns.
    DATA: gds_field_split type gts_data.
    FIELD-SYMBOLS: <fs_field> TYPE gts_data.
    PARAMETERS p_file  TYPE dxfile-filename.
    START-OF-SELECTION.
    OPEN DATASET prf_file IN TEXT MODE ENCODING DEFAULT FOR INPUT.
      DO.
        READ DATASET p_file INTO gds_field.
        SPLIT gds_field  AT cl_abap_char_utilities=>horizontal_tab
             INTO TABLE gdt_field_split.
       LOOP AT gdt_field_split  into gds_field_split.
           gdf_index = gdf_index + 1.
           ASSIGN COMPONENT gdf_index OF STRUCTURE
                 gds_data to <fs_field>.
          IF sy-subrc = 0.
              <fs_field> = gds_field_split.
          ENDIF.
       ENDLOOP.
        APPEND gds_data TO gdt_data.
      ENDDO.
    CLOSE DATASET p_file.
    Thanks & regards,
    ShreeMohan

  • Application Server 8.2 + Axis Web Service Client +Win Server 2003 Issue

    Hi everyone,
    I'm facing a weird problem the last couples of days and I'm getting bored of banging my head against the logs/screen, so please if you could help I'd really appreciate it.
    I'm working on a Sun Application Server 8.2 project that includes an axis web service client. I am using Netbeans 5 to do the writing plus I am on a Win XP platform.
    The developers of the web service I intend to absorb were kind enough to package the client into a jar so all I have to do is to import the client and the axis related jar files (axis, axis-ant etc.) in my project and my classpath.
    Everything is working perfect on my pc but when I deploy the project on my actual server the web service client is running forever, leaving my end users with a blank browser window that is also loading forever.
    The server OS is Win Server 2003 and is directly connected to a gateway - no proxies. Also my development pc and my server are running the same jre and have the exact server police settings; but Sun's Application Server is running on port 8080 on my pc whereas on my server it's running on port 80.
    Here's my server's log:
    [#|2008-04-14T21:50:01.795+0300|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=14;|StandardWrapperValve[obos]: Servlet.service() for servlet obos threw exception
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (0)null
    faultActor:
    faultNode:
    faultDetail:
         {}:return code: 0
         {http://xml.apache.org/axis/}HttpErrorCode:0
    (0)null
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at uk.ac.ebi.ook.web.services.OntologyQuerySoapBindingStub.getOntologyNames(OntologyQuerySoapBindingStub.java:509)
         at org.dude.ols.client.obos.processRequest(obos.java:30)
         at org.dude.ols.client.obos.doGet(obos.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    |#]
    Any ideas?

    Hi Paz,
    Thanks for taking the time :)
    To answer your questions:
    1. Has this WebServices ever worked or is this the first time?
    The web service is working perfectly fine on my working station, the problem appears only when I deploy it on my actual server, which means that the web service is working.
    2. What Apache Axis Version are you using?
    1.4
    3. What JRE version are you using?
    Both my development pc and my server run jre 1.5.0_14
    4. In the actual server environment, can you confirm all information are exactly same as DEV environment...
    Oh yes! Absolutely.
    My recent assumption is that some windows service might be needed to run the web service client and obviously I have no clue which one it might be.
    Just to make sure; is the security policy of my Application Server set correctly?
         permission java.lang.RuntimePermission     "getClassLoader";
         permission java.lang.RuntimePermission "createClassLoader";
         permission java.lang.RuntimePermission "loadLibrary.*";
         permission java.lang.RuntimePermission "queuePrintJob";
         permission java.net.SocketPermission "*", "connect,accept,resolve";
         permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
    // work-around for pointbase bug 4864405
    permission java.io.FilePermission "${com.sun.aas.instanceRoot}${/}lib${/}databases${/}-", "delete";
    permission java.io.FilePermission "${java.io.tmpdir}${/}-", "delete";
         permission java.util.PropertyPermission "*", "read,write";
         permission java.lang.RuntimePermission     "modifyThreadGroup";
    Again thanks for taking the time :)

Maybe you are looking for