Oracle 8i OAS ip address

Hello
I use a Oracle Application server4.0 with Oracle8.1.6 & Solaris 2.7/
In my PL/SQL procedure(for web), I want to Know the client IP address.
But, when I use "owa_sec.get_client_ip"(return owa_util.ip_address) I can't get a correct result.
What shall I do?
My code is
Create Or Replace Procedure p_iptest
IS
ipaddr owa_util.ip_address;
v_count number;
Begin
ipaddr := owa_sec.get_client_ip;
htp.p('<html><head></head><body>');
v_count := ipaddr.count;
htp.p(v_count);
IF ipaddr IS NULL THEN
htp.p('yes');
ELSE
htp.p('no');
htp.p(TO_CHAR(ipaddr(1)));
htp.p(TO_CHAR(ipaddr(2)));
htp.p(TO_CHAR(ipaddr(3)));
htp.p(TO_CHAR(ipaddr(4)));
END IF;
htp.p('</body></html>');
END p_iptest;
I get a result
0 no Content-type:text/html Content-length :31 0 no
help me!!!!
P.S : PL/SQL Toolkit was installed

You can use owa_util.get_cgi_env('REMOTE_ADDR');
I hope help you....

Similar Messages

  • Does Oracle ESB support WS-Addressing?

    Hi,
    I was wondering whether Oracle ESB supports WS-Addressing.
    Thanks.

    ESB 10.1.3 does not support WS-Addressing. It is planned for AS11 R1.

  • Using Oracle as an IP Address Managment Database

    Can an Oracle database be setup to document and manage IP
    Adresses. Our Software team built a database for my group to
    document addresses but, it does not perform any math features
    based on subnet mask. Any suggetions on where to look for IP
    Address Database creation with an Oracle database?

    Dear Stefan
    (Please send the King of Iceland my regards)
    We have just undertaken a similar project - but in reverse - i.e. synchronising an LDAP server from Oracle.
    Our challenge was a little simpler in that we could use triggers to instigate an LDAP call on update/delete/insert.
    We originally tried using the Oracle JVM in conjunction with the Netscape's LDAP JSDK, but this proved too flakey, and we have reverted to calling an extproc which inturn calls some java code to update LDAP.
    Working the other way would be more complex and I'm not sure how you could get LDAP to invoke a command to update Oracle.
    However, if you managed the process from within Oracle you could maybe use LDAP groups to maintain a list of those users that were in sync, and those that required synchronising.
    Good luck
    Andrew

  • Query ON ORACLE AND OAS UPGRADE PLAN

    Currently we are running Oracle Server 7.3.4 Under Unix (SunOS5.7) with access to a Sybase 12.5.0.1 via Oracle-Sybase Transparent Gateway 4.1.1.0.0.
    For the web services, we use OAS 4.0.8.1. Our web applications are based on Javascript and Oracle PL/SQL to generate HTML.
    We plan to upgrade the Oracle Server from 7.3.4 to Oracle 9iAS version 9.2.0.1.
    Our quetions are :
    1) Is it necessary to upgrade OAS 4.0.8.1 to Oracle 9iAS?
    1a)If we have to upgrade then which version of 9iAS (9.0.2, 9.0.3, 9.0.4)is compatible?
    1b)what change, if any, do we have to make to our exisiting applications(Javascript, HTML and PL/SQL-generated HTML) (we understand that the application logic would not have to be change in any
    way. Is this so?)
    2) Are Oracle Server 9i and Oracle 9iAS Application Server compatible with the SunOS5.7 Unix or is an upgrade to a later version necessary?
    3) Do we need to upgrade the Oracle-Sybase Transparent Gateway if we upgrade the Oracle Server to Oracle9i and if so, to what version?
    Please confirm that Oracle9.2 has a Gateway to Sybase 12.5.0.1 that will support the features of 7.3.4 gateway (i.e it is downward compatible to 7.3.4
    gateway).

    Not real sure if this is doable or would help, but perhaps you can load the access table into an Oracle Global Temporary Table? See http://www.oracle-base.com/articles/8i/TemporaryTables.php (and google on it). I think I'm assuming your 11 hour query had something to do with shovelling a bucketload of data to the access side, perhaps if you could show us the plan on the Oracle side that access was generating to get the Oracle data there might be a different answer.
    Oftentimes cross-db tools won't use Oracle features like analytics, or do slow-by-slow row processing where a short procedure could do things within the Oracle sql engine and return data in larger arrays.
    Sometimes mass data cleansings benefit from using server side tools outside of the db. Do you have the data from before it was loaded to Oracle? What Oracle platform are you on?

  • Oracle 8i/OAS on laptop

    Greetings:
    Has anyone ever gotten an 8i database (8.1.6 for NT) with OAS (4.0.8.2.1 for NT
    ) to run on a laptop. I'm trying to run an application standalone on my laptop with Windows 2000 professional (P3 700, 384 MB RAM). My problem is that if I'm not connected to my companys network, W2K "disables" my network connection which causes the OAS process "wrksf" to terminate (or not start) and then the application (obviously) won't run. By "disables", I mean Win 2K places a red X over my network connection. I'm not too familiar with Win 2K, but this is always when the process bombs out. I think the problem is also related to domain names. I'd rather just not associate my laptop with a domain name at all, but OAS requires you to put in something for domain when installing OAS and then the listeners expect the urls to have that domain. Isn't there some way to not have a domain name at all and just connect like: hostname:port?
    Thanks for any help!
    Chris

    Try to add the hostname and hostname.domain.com to winnt\system32\drivers\etc\host file
    with an static ip address.
    ej:
    170.210.115.10 cocodrilo.exa.unicen.edu.ar cocodrilo
    If you are using DHCP, contact with your network administrator to assign a fixed ip into DHCP server mapped to the laptop MAC id, and then use this ip number.
    Best regards, Marcelo.

  • Oracle TCA different customer address based on Purpose

    Hello Everyone,
    We have the following requirement:
    A customer has a bill-to, ship-to addresses.
    In addition to that, we need to capture additional information for the purpose 'Install At'.
    But the information that we need to capture for 'Install At' purpose is different from the Ship-to or bill-to address structure.
    So my question is, can we have a different address style based on the Purpose?
    As per my analysis, it looks like we can only have 1 address style? Because even when i attach a different style to another country, when i select that country during customer site address creation, i still see the address style that is for the original country of installation.
    Any ideas how can i achieve my requirement.
    Regards,
    Jay

    http://download.oracle.com/docs/cd/B16981_04/current/acrobat/115hztig.pdf
    Plz refer.

  • Where on Oracle resides the IP address?

    Hello Friends,
    I want to gather a useful list of important configuration files inside Oracle territory that normally
    would contain references to the machine's IP address and host name.
    Besides:
    tnsnames.ora
    listener.ora
    initSID.ora (or SPFILE..)
    Cheers,

    P3K wrote:
    Hello Friends,
    I want to gather a useful list of important configuration files inside Oracle territory that normally
    would contain references to the machine's IP address and host name.The system will store host name unless you specifically configure with IP address.
    From memory:
    DB Control stores in the directory name under ORACLE_HOME, in a variety of config files under that directory and possibly under sysman directory. I would not be surprised it is also in some tables in the sysman schema.
    If you are using LDAP TNS names resolution, it will be in the LDAP for TNSNAMES and that hostname will be in the ldap.ora file, which moves based on version.

  • Oracle Sevice Bus IP address problem

    Dear Expert:
    A Customer find that when they use proxy service(based on business service or based on wsdl) and export to wsdl, always find the endpoint is point to
    Oracle service bus's hostname,but they really want it to point the the IP address of the machine(which osb is install).
    So anyone have experiece to let osb gerenate the ip address not the hostname?
    Thanks for any reply.

    try setting ip address in weblogic frontendhost property..this might work if your osb is a clustered deployment
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/setenv.html#wp220945

  • Oracle By Example Feedback Address

    On the page http://otn.oracle.com/obe/start/index.html the feedback address [email protected] when e-mailed to comes back with message from [email protected]
    which is
    "The included message could not be delivered to the following invalid mail names. Please verify these names and try them again.
    Bad name: obefeedback_us"

    HI Craig,
    The documentation feedback forum is for issues relating only to the OTN documentation pages at: http://otn.oracle.com/documentation/index.html
    Please try the Member feedback forum instead at:
    Community Feedback (No Product Questions)
    Regards,
    Les

  • Environment Variables in a single host same user  two Oracle homes OAS

    Hello All.
    I've been googleing and looking over otn site but I cannot find solution to my question that, perhaps, is pretty easy.
    I have an OAS 10g installation in a Linux single node.
    I've made the installation the INFRA and the MT with the same user (oracle)
    If I set the ORACLE_HOME in the oracle user .bash_profile my command lines will work just for the ONE of the Oracle Home (the one pointed in the profile).
    I have two solutions:
    1. Make the .bash_profile dynamic. that is to program like a menu to ask what Environment Variables to load (infra's or MT's.)
    2. Make like .bat files to just call them and set whatever I need.
    Sounds simple, but I have no idea how to make or program any of them. I am pretty much a newbie in unix shell script programming.
    Thanks in advance any help.

    Ricard wrote:
    Hi
    This is for test purpose.
    I know oracle dont enjoy having same SID for 2 instances in same host.
    I was reading about it and seems is possible on UNIX machines. So i tried to do in a red hat linux enterprise 4.
    But with dbca, im always stoped by oratab, cause cant have same oracle_sid in oratab.
    Any idea how to do it?
    Not using dbca and making the database manually via script?
    ThanksWell, if you read this link,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/startup.htm#CNCPT601
    And from here, this quote,
    >
    Multiple instances can run concurrently on the same computer, each accessing its own physical database. In large-scale cluster systems, Real Application Clusters enables multiple instances to mount a single database.>
    One instance can be used only by one single database on a box. There may be another instance of the same name available but Oracle won't let you open that database. You will receive,
    ORA-01102 cannot mount database in EXCLUSIVE modeCause: Some other instance has the database mounted exclusive or shared.
    Action: Shut down the other instance or mount in a compatible mode.>
    So , in any case, you are limited to one single database and one instance. As Paul mentioned, using different case, you may be able to achieve this but that still can't be called a true test as on *nix, case does matter and ORCL and orcl are going to be considered as two different databases.
    HTH
    Aman....

  • Will oracle release OAS 4082 for Linux ?

    We need to move our OAS to Linux in order to cut costs and provide better scalability.
    We also need to use SSL.
    There are no DOMESTIC version of OAS 4081 for Linux available.
    The US Govt lifted encryption export restriction and OAS 4082 (at least on solaris) comes standard with SSL 128 bits.
    When will it be available on LINUX ?

    Linux support will begin with the next major release of iAS. i.e. 7.x

  • Java Applets connecting to Oracle DB thru OAS (JNDI)

    i am developing an application, like i said before, i am using three applets, one controls a webcam, (records an image to disk and oracle), another controls a Electronic signature pad (records an image to disk and oracle), and finally a finger print reader (the same with this), at the beginning i didnt have any problem at all connecting this applet to the database, but top management wants to do things in another way, not allowing me to connect the applet directly to the database for security reason, My app resides on Oracle Application Server, and i use DataSource and Connection Pooling,
    I want that this applets use the available datasource on OAS to connect to the Database, due that the DataBase IP Address wont be public but OAS IP address will, I know that i must use JNDI to accomplish this, but i didnt have any results at all
    Message was edited by:
    efebo_abel2002

    i retrieved all the datasources from my app and i got this, i show my code and the returned errors, I can't connect my applet to the DB thru OAS datasources, any suggestions?
    package rdf.struts.ajax;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NameClassPair;
    import javax.naming.NamingEnumeration;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    public class ConductoresClient2 {
    public static void main(String [] args) {
    try {
    final Context ctx = getInitialContext();
    System.out.println(ctx!=null?"ctx no es null":"ctx es null");
    NamingEnumeration nenum=ctx.list("jdbc");
    while (nenum.hasMore()) {               
    NameClassPair entry = (NameClassPair)nenum.next();
    System.out.println("entry:="+entry.getName());
    try {
    DataSource ds=(DataSource)ctx.lookup("jdbc/"+entry.getName());
    Connection conn=ds.getConnection();
    Statement stm=conn.createStatement();
    ResultSet rs=stm.executeQuery("SELECT * FROM palic_ow.conductores");
    while(rs.next())
    System.out.println("rs.getString(1):="+rs.getString(1));
    System.out.println("rs.getString(2):="+rs.getString(2));
    System.out.println("rs.getString(3):="+rs.getString(3));
    catch (Exception e) {
    System.out.println("Exception conectando a la base :"+e);
    //java:comp/env/
    }catch (Exception e) {
    System.out.println("Exception obteniendo Context "+e);
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"oracle.j2ee.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL,"oc4jadmin");
    env.put(Context.SECURITY_CREDENTIALS,"admin");
    env.put(Context.PROVIDER_URL,"ormi://localhost:23791/sertracen");
    return new InitialContext( env );
    ctx no es null
    entry:=OracleDS
    Exception conectando a la base :javax.naming.NamingException: Lookup error: javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]; nested exception is:
         javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable] [Root exception is javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]]
    entry:=v8PooledDS
    Exception conectando a la base :javax.naming.NamingException: Disconnected: java.lang.NoClassDefFoundError: javax/resource/Referenceable
    entry:=caom
    Exception conectando a la base :javax.naming.NamingException: Lookup error: javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]; nested exception is:
         javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable] [Root exception is javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]]
    entry:=v8DS
    Exception conectando a la base :javax.naming.NamingException: Lookup error: javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]; nested exception is:
         javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable] [Root exception is javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]]
    entry:=v8CoreDS
    Exception conectando a la base :javax.naming.NamingException: Lookup error: javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]; nested exception is:
         javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable] [Root exception is javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]]
    Process exited with exit code 0.
    null

  • How to Change Company Address In Oracle EBS

    Hi,
    We several reports where Company Address is Showing.
    Our Company Address Has been Changed,
    Where is that location in Oracle Financial to Change Address
    Version 12.X
    Regards
    NEWCOM

    Hi;
    Please see implementation guide:
    http://docs.oracle.com/cd/E18727_01/doc.121/e13425/T348488T391474.htm
    Regard
    Helios

  • Developer 6.0, OAS 4.0.8 and Oracle 8i

    I have just installed Oracle 8i, Developer 6.0 and OAS 4.0.8 into our Windows NT 4 test box. I installed the three components on different ORACLE_HOMEs. I am having some difficulties in deploying the demos on the web. I used the static.html and I all I get is a "Oracle JInitiator: applet oracle.forms.engine.main inited" message.
    According to the OAS 4.0.8 release notes, OAS 4.0.8 should be installed on a seperate NT machine if you are using Oracle 8i. The Developer 6.0 release notes recommends to use Oracle 8.0.5 and OAS 4.0.7.
    Do I really have to follow the release notes? Is it possible to setup Oracle 8i, OAS 4.0.8 and Developer 6.0 on the same NT machine? If it is possible, will it work?
    Thank you in advance.

    Ganesh,
    The port that I use to create a new listener is not being used by another process. After creating the new listener the wrb.log is empty and the new listener doesn't have a .err log. The NT event log message is :
    'The description for Event ID (0) in Source (Oracle Web Listener Administrator) could not be found. It contains the ff. insertion string(s): Unable to open service, due to system error 1060.'
    Roncab
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Ganesh Kumar ([email protected]):
    Just to double check, Did you check the port number of that newly created Listener? Because if that port is already in use, the HTTP listener will not start. Did you check the log file wrb.log? and also check the error
    (.err) file of the new listener that you can find under the directory
    'OAS_HOME'\ows\admin\'sitename'\'listener_name'
    Please check these files for futher details.
    Ganesh<HR></BLOCKQUOTE>
    null

  • OAS 4.0.8.1 Oracle8i r1 patch 2 on RedHat 6.1

    I'm having difficulty with starting HTTP listeners and would appreciate some assistance
    Using owsctl start shows the following error:
    snip <<<
    oassrv is accepting requests
    OWS-08821: oassrv process 'oassrv' is started up at pid 2532.
    OWS-08821: wrksf process 'wrksf' is started up at pid 2590.
    Cannot find class BootPm
    java.lang.NoClassDefFoundError: oracle/oas/pm/BootPm
    Exception in thread "main" Cartridge Server Factory accepting requests ...
    OWS-08821: otsfacsrv process 'otsfacsrv' is started up at pid 2616.
    Oracle Web Listener 4.0.8.1.0 Enterprise Edition - Release (Export)
    Copyright (c) Oracle Corporation 1999. All rights reserved.
    Information: Listening on NORM port 8889 address 0.0.0.0
    Information: wriorProcessInit: RMProxy IOR Bootstrap Service initialized
    Information: Application init function oracle_adp_init returned ADI_FATALINIT
    Error: The server could not initialize
    Information: The server is exiting
    OWS-08811: Unable to startup Oracle Web Listener 'admin'.
    end snipThe same error occurs for the www listener
    Anyone have any suggestions as to what the problem may be?
    TIA
    null

    According to ORACLE representatives, OAS 4.0.8 isn't their major priority : since Oracle iAS will be available in few days, and many less CPY and memory hungry as OAS, can't you wait a bit longer ?
    An other point is that oas 4.0.8.2 will probably be one on their last release of this product ...
    Take a look at the oracle iAS white paper, the product will be more reliable and standard : essentialy based on Apache 1.3.12, mod_java, mod_pl and JServ 1.1, and Oracle 8i Cache...
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Geoff Surgenor:
    Hi, I've installed OAS 4.0.8.1 on Redhat 6.2 but when I start the processes up the WRKSF goes down after a few seconds, I've seen a previous posting on this subject had a workaround proposed by Dennis Irwin which seemed to work for many people, unfortunately it didn't for me, I've spoken to Oracle about this problem but all they say is OAS 4.0.8.1 isn't supported for the 2.2.14 kernel in Redhat 6.2, 4.0.8.2 will be but they can't say when it will be released, until then OAS is basically useless for me, has anyone any suggestions?. Thanks, Geoff<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Y in java objects are created on heap only n not on stack ?

    Hi , I need a answer to the question " why all the objects are created on heap only in java and not on stack " ? In java a object is created when we specify new i.e. for example, consider the following cases. 1. Vector v = new Vector(); here object i

  • Strategy plan with package to be executed only once

    Hi All, Created a time based maintenance plan with strategy. Included 4 maintenance packages in the strategy. One of the maintenance package should be executed only once upon scheduling the maint. plan and should be due on the date on scheduling. Wha

  • Mac freezes for a few seconds

    Hello fellow Mac users, since a few days my MacBook Pro is running slow. It doesn't matter what I do, sooner or later the mac freezes (just showing the spinning wheel) for a few seconds and that happens very often, about every 2 minutes. The system r

  • Error -49 when exporting in 1080p

    I'm unable to export my movie, I keep getting an error -49 each time I try to export in 1080p. What's this error code and how can I solve this? I tried exporting on my desktop and on another hard drive. I also tried rebooting my computer and reloadin

  • ADE 3.0: E_ACT_NOT_READY error - what does it mean?

    Hi knowledgable and helpful Adobe forum people, I'm getting an E_ACT_NOT_READY error when trying to open an ebook I just purchased and downloaded. Backround: I've had an Adobe ID for several years and bought several Adobe ebooks from various retailer