Ports for apex

I'm trying to install apex with oracle 10g and can not get the web to connect. Here are the ports in the following files;
httpd.conf 7778, dads.conf 1522 , tnsnames.ora 1522 for the listener, listener.ora 1522 and the output for DBMS_XDB.GETHTTPPORT 7400 - what port do I list when trying to get it to connect - http://host:????/

That is what I tried and I get this:
http://lst.colstate.edu:7778/pls/apex/
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Similar Messages

  • How do I change the listener port for APEX on XE

    Hi all,
    I did a default install of XE onto a Linux box which is my DMZ server. The default port for the listener is 8080, however I have since found that port 8080 is the port for proxy servers and therefore I cannot access APEX on my DMZ site from behind a client's proxy server.
    Is there is simple way to change the listener to port 80 for access to APEX.
    Many thanks
    Bryan

    Hi Bryan,
    See http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/network.htm#BHCBABJB
    Hope this helps,
    Andrew
    http://www.apexskins.com

  • How to add dbms_registry in Oracle 9.2.0.1 for APEX 3.0

    I tried installing APEX 3.0 everything went right but just at the end it has given me errors and I searched for those errors and found that dbms_registry package is not available in oracle 9.2.0.1 and I also found that APEX 3.0 is compatible with 9.2.0.3 or higher versions, but i have 9.2.0.1. and in documents oracle says that it supports oracle 9.2 at least so i thought i do have 9.2, and will be able to do the installation.
    **some last messages and errors are:**
    Thank you for installing Oracle Application Express.
    Oracle Application Express is installed in the FLOWS_030000 schema.
    The structure of the link to the Application Express administration services is as follows:
    http://host:port/pls/apex/apex_admin
    The structure of the link to the Application Express development interface is as follows:
    http://host:port/pls/apex
    Updating user account expiration.
    timing for: Upgrade
    Elapsed: 00:00:01.11
    JOB_QUEUE_PROCESSES: 10
    Performing Application Express component validation - please wait...
    dbms_registry.loaded('APEX','3.0.0.00.20');
    ERROR at line 4:
    ORA-06550: line 4, column 8:
    PLS-00306: wrong number or types of arguments in call to 'LOADED'
    ORA-06550: line 4, column 8:
    PL/SQL: Statement ignored
    ORA-06550: line 7, column 13:
    PLS-00306: wrong number or types of arguments in call to 'UPGRADED'
    ORA-06550: line 7, column 13:
    PL/SQL: Statement ignored
    ORA-06550: line 9, column 13:
    PLS-00306: wrong number or types of arguments in call to 'LOADED'
    ORA-06550: line 9, column 13:
    PL/SQL: Statement ignored
    I Tried 3 to 4 times but every time same thing is happening.
    But now i think if i can add dbms_registry then i might be able to user APEX 3.0 with oracle 9.2.0.1
    So if anybody can help me that is it possible to add dbms_registry in oracle 9.2.0.1, if yes how can i do that. or if any other method that i can use to install APEX 3.0 with Oracle 9.2.0.1.
    Regards
    Abbas
    Edited by: user10233011 on Feb 11, 2011 3:30 AM

    Thanks fro reply
    I have done as you say. I have created MYPROC_LOG_TABLE. Add insert statement in "update_attendance" to insert rows in MYPROC_LOG_TABLE.
    my procudure code is now like this
    CREATE OR REPLACE PROCEDURE update_attendance IS
    hr_date date := null;
    server_date date := null;
    BEGIN
    select max(time_in) into hr_date from attendance@hr;
    select max(time_in) into server_date from attendance;
    if hr_date > server_date then
    --select count(*) into tot from attendance@hr a where a.time_in > server_date;
    insert into attendance
    select * from attendance@hr a where a.time_in > server_date;
    end if;
    INSERT INTO MYPROC_LOG_TABLE VALUES ('PAYROLL',SYSDATE);
    commit;
    EXCEPTION
    WHEN OTHERS THEN null;
    END update_attendance;
    I have created a new job as like this
    declare
    v_job number:=33;
    begin
    dbms_job.SUBMIT(v_job,'update_attendance;',sysdate+10/86400,'sysdate+10/86400');
    commit;
    end;
    and i have run this job as under
    execute dbms_job.RUN(62);
    Again it run only once insert one row MYPROC_LOG_TABLE and insert rows from remote server database to the client database.
    But after it did not insert rows MYPROC_LOG_TABLE and also did not insert rows from server database to the client database.
    I have check the dba_jobs view as under.
    select * from dba_jobs;
    the "Next_sec" colums is seccessfully changed to the new time after every 10 seconds. But why the procedure did not call after every 10 seconds.
    Please tell me what is the problem.
    I will be very thankful to you.
    Thanks and regards.

  • SSL for Apex 4.0 with PL/SQL Embedded Gateway

    Hello
    I'm trying to implement ssl to already installed apex 4.0. Os version: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
    Oracle Database 11.2.0.3
    I used the following note to configure ssl for apex:
    http://wiki.shellprompt.net/bin/view/Apex/SSLandAPEXxdbHttp?TWIKISID=9ad53fc01edafaa65304ca32191cf00a
    1. used function dbms_xdb.setlistenerendpoint (2,'TESTHOST',2484,2) to configure xdbconfig.xml.
    2. listener.ora:
    SID_LIST_ORCL =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = ORCL)
    (ORACLE_HOME = /opt/oracle/db/11.2.0.3)
    SSL_CLIENT_AUTHENTICATION = FALSE
    WALLET_LOCATION =
    (SOURCE =
    (METHOD = FILE)
    (METHOD_DATA =
    (DIRECTORY = /opt/oracle/db/11.2.0.3/own/wallet/oracle)
    ORCL =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = testhost.testdomain.com)(PORT = 1521))
    ORCL_SSL =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCPS)(HOST = testhost.testdomain.com)(PORT = 2484))
    ADR_BASE_ORCL_SSL = /opt/oracle/db
    3. sqlnet.ora:
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    WALLET_LOCATION =
    (SOURCE =
    (METHOD = FILE)
    (METHOD_DATA =
    (DIRECTORY = /opt/oracle/db/11.2.0.3/own/wallet/oracle)
    ADR_BASE = /opt/oracle/db
    SET_CLIENT_AUTHENTICATION = FALSE
    # lsnrctl status orcl
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=testhost.testdomain.com)(PORT=1521)))
    STATUS of the LISTENER
    Alias orcl
    Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
    Start Date 03-FEB-2013 12:53:03
    Uptime 0 days 0 hr. 26 min. 56 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /opt/oracle/db/11.2.0.3/network/admin/listener.ora
    Listener Log File /opt/oracle/db/11.2.0.3/log/diag/tnslsnr/testhost/orcl/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testhost.testdomain.com)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testhost.testdomain.com)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=testhost.testdomain.com)(PORT=2484))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "ORCL" has 1 instance(s).
    Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl.testdomain.com" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.testdomain.com" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    # cat /etc/hosts
    127.0.0.1 testhost.testdomain.com testhost localhost
    Common usage of Apex via http://testhost:8080/apex is available but
    https://testhost:2484/apex shows
    "Firefox can't establish a connection to the server at testhost.testdomain.com:2484." error
    Please any ideas.
    Edited by: 985770 on Feb 3, 2013 2:33 AM

    This should help you find them:
    http://daust.blogspot.com/2006/03/where-are-images-of-application.html

  • Configuring Dad for APEX in Application server 10.2

    HI All,
    On my application server 10.1.2.0.2. I am trying to create dad for apex which the database (apex 3.0 is installed) is on other server. I created dad in http_server-> Pl/Sql Properties->dads. I added new dad but i am not able to access
    using url http://myserver:7777/pls/test. Please help me. I posted same question in Fusion Middleware » Application Server - General but I was told repost here.
    Re: HTTP 404 - File not found
    Thanks

    Hi Ron,
    Thanks you. I tried without prot number then I got HTTP 404 error. I checked my httpd.conf file the ports are
    Port 7777
    Listen 7777
    when it tried http:/myserver:7777 it shows http server page and we have forms on this server every thing is working fine.
    error log under Apache/Apache/logs/errror.xxxx
    [Thu Jun  7 12:35:00 2007] [error] [client xxx.xxx.xxx.xxx] [ecid: 23412312144900:1
    34.233.379.11:6218:0:634513,0] File does not exist: /app/oracle/oraInfra/Apache/Ap
    ache/htdocs/pls/test
    I have the following error in sql error
    ORA-06550: line 20, column 7: PLS-00306: wrong number or types of arguments in call to 'PROCESS_DOWNLOAD' ORA-06550: line 20, column 2: PL/SQL: Statement ignored
    Please help me. Any one able to access the APEX from Application server ???
    Message was edited by:
    james.

  • I have a Mac OSX version 10.75 with just one Thunderbolt port. and it has been my Thunderbolt port to connect with Blackmagic wear my intensity. and I no longer can use the port for mini-DVI adapter to connect with me. I do not want to ask any other way f

    i have a Mac OSX version 10.75 with just one Thunderbolt port. and it has been my Thunderbolt port to connect with Blackmagic wear my intensity. and I no longer can use the port for mini-DVI adapter to connect with me. I do not want to ask any other way for me to use to use my monitor. I monitor LG FLATRON E2041 brand .. PLEASE Helpp ME

    i have a Mac OSX version 10.75 with just one Thunderbolt port. and it has been my Thunderbolt port to connect with Blackmagic wear my intensity. and I no longer can use the port for mini-DVI adapter to connect with me. I do not want to ask any other way for me to use to use my monitor. I monitor LG FLATRON E2041 brand .. PLEASE Helpp ME

  • Custom pagination for APEX 4.2 interactive report using Page Zero

    Hi,
    I want to implement an «Custom pagination for APEX 4.2 interactive report» using a «page zero».
    I recently migrate from Apex 3.1 to Apex 4.2 and my «Custom pagination for APEX 3.1 interactive report» using a «page zero»  is not working any more.
    So now I try to adapt an excellent example of Jari Laine for 4.0 but using a page zero.
    I put the code JavaScript to Page zero but I must create an dynamic action to fire only for an interactive report region.
    It’s a good idea?
    Thank you

    Thought I would try once more with my DatePicker question.
    On the Apex.Oracle.Com website I have created a 1 page application that has an Interactive Report.
    [url http://apex.oracle.com/pls/apex/f?p=15655:1]
    user = 'test'
    password = 'test'
    I have 2 questions :
    (1) In IE7, press 'Actions', 'Filter'. On the Column dropdown list, select 'Order Timestamp'.
    Notice the prompt icon to the right of the 'expression'. This should change to the Datepicker, but in IE7 it does not. Try the samething in Firefox or Chrome and the Datepicker will appear.
    Is this a BUG, or does Apex 4.02 not support IE7 ?
    (2) In Firefox or Chrome, where you can now see the Datepicker, you will notice that it is the new style picker, not the old style ( called 'classic' ). I want to change it so that it shows the 'classic' datepicker not the new, but cannot see how to do it, if indeed you actually can.
    I would really appreciate it if someone could take a look and let me know if I am going mad, or if we need to get all our users onto IE8. We have now gone live with Apex 4.02 and need to resolve these issues.
    Thanks in advance.
    Edited by: DooRon on 10-Mar-2011 05:13

  • Open ports for all in LAN

    Hi, a few days ago I bought a wireless router WRT160n. I want to ask how to open some port for all in LAN(3 clients). For example all in LAN have PeerToPeer application for torrents. I want to open port for example 20202 for all. Now I open port from menu Applications & Gaming->Single Port Forwarding, but I must set port for each user IP address.
    Can somebody tell me how to open port for all in LAN without to config for each computer?
    Thanks in advance.

    Hi gv. I read more about UPnP and the WRT160n User Guide. In section Administration>managment int wrote that UPnP is Enabled by default in my router it is corect. I Setup mu PeerToPeer(eMule) TCP/UDP ports to 20202 and check option "Use UPnP to setup ports". I test and close this port on my router configuration for my computer on "Single Port Forwarding", but in eMule the port is still block. Can you explain why it did not work. For UPnP it says that if Enable it allow users with Windows ME and XP automatically to gonfigure Router ports
    Thanks in advance!
    Best Regards.

  • Where is the Oracle Application Server for Apex 3.2.1?

    Hi, I feel ashamed asking this, but I want to know where to download the Application Server for Apex 3.2.1. Apex is installed in a DataBase 10gR1 and the O.S. where I will install the Application Server is RedHat
    I think it is here
    http://www.oracle.com/technetwork/middleware/ias/downloads/index.html
    But there is a lot of links and things to download and I don't even know if it will work because it is Release 3 and the DataBase is Release 1, but I tried downloading the "Oracle 10gR3 Companion (10.1.3.x) CD", but after running the installer in the disk1, I found that the Oracle HTTP Server that it would install does not include mod_plsql and I know I need it.
    So, which one should I download, or where can I find it?
    Thanks.

    Hi,
    Hi, I feel ashamed asking this, but I want to know where to download the Application Server for Apex 3.2.1. Apex is installed in a DataBase 10gR1 and the O.S. where I will install the Application Server is RedHatI think it is here
    http://www.oracle.com/technetwork/middleware/ias/downloads/index.html
    But there is a lot of links and things to download and I don't even know if it will work because it is Release 3 and the DataBase is Release 1, but I tried downloading the "Oracle 10gR3 Companion (10.1.3.x) CD", but after running the installer in the disk1, I found that the Oracle HTTP Server that it would install does not include mod_plsql and I know I need it.
    So, which one should I download, or where can I find it?>
    Strictly speaking you do not need Application Server or OHS for running Apex, you have an option in ApexListener. If it is a small installation then stick to EPG that comes built-in.
    Try downloading the Oracle HTTP Server from here . You will need to check the commercial aspects yourself as OHS is not a free software for Production environment, AFAIK.
    Cheers,

  • Can there be more than one port for the same logical system

    Can we have more than one TRFC port for tranferring data from one logical system to another?
    The requirement is to transfer same basic idoc type from one logical system to another through two different ports. Is it possible?
    For eg. some specific data (country specific) for the same basic idoc type can be sent through a separate port and the other data through a different port inorder to distinguish between the two.

    Hi Shital,
    I don't think so. Because of that what i told you. There would be a dirty trick (back routing) to solve your issue. But its quite difficult and not standard. You create two http receiver services  and two http sender services. You route your message depending on payload to the one or the other http receiver channel. The receiver is in both cases: THE XI! Now you have a second message, which you  can route to IDoc adapter. But in this case you have different sender and in the receiver determination you can put the sender, so you will be able to use different communication channnels and so different ports / destinations.
    Advantage: Your task would run, no performance problem (http: very good, asynchron)
    Handicap: You see every message double in the monitoring, the scenario is not easy to understand and it is a big task 4 other people to change it.
    Regards,
    Udo

  • How do I create Labview VISA ports for *individual* GPIB instruments using Prologix USB GPIB controller?

    Hello,
    I'm trying to use a Prologix USB GPIB controller to control GPIB
    instruments, and I would like to have a virtual serial (VISA) port for
    *each instrument*, as is the case with a normal GPIB controller with a
    standard NI driver. However this is not what the Prologix driver
    provides -- it provides a single VISA virtual serial port for the
    entire controller. To address the instrument with GPIB address 11,
    you first send "++addr 11" to the serial port, and then you're talking
    to instrument 11. However, this means I have to change all old
    Labview programs.
    Is it possible to create a "wrapper" function of some kind that will
    define a virtual serial (VISA) port for each *instrument* on the
    controller? For example, to talk to GPIB instrument 11, call it
    ASRL3::11::INSTR, each time it is written to it would have to write to
    the virtual serial port of the controller, say ASRL3::INSTR, first "+
    +addr 11" and then the command that is sent to it.
    A clearer explanation of the difference (i.e. incompatibility), and of
    my objective:
    1) A normal GPIB controller with NI driver: I go to the NI
    Measurement & Instrumentation Panel, under GPIB, and Scan for
    Instruments; all the live instruments show up; subsequently when I
    want to use Labview programs that use VISA ports, the VISA drop boxes
    allow me to choose a different port for each instrument, e.g.
    "GPIB0::11::INSTR", "GPIB0::12::INSTR" would be instruments at
    addresses GPIB 11 and GPIB 12.
    2) The Prologix GPIB controller that plugs into a USB port: In
    Labview you get a *single* VISA virtual serial port, ASRL3::INSTR, for
    the entire GPIB0 controller. Therefore to address GPIB instrument 11,
    you write "++addr 11" to the virtual serial port ASRL3::INSTR, and
    then you are communicating with device 11, so you can write and read
    ASRL3::INSTR to talk to that device. Then to talk to device GPIB 12,
    you write "++addr 12" to the same VISA port, and then you are talking
    to that device. The problem is that this requires recoding all
    Labview code, whereas I would like to be able to use the same program
    either with a normal or with a Prologix GPIB controller. Therefore, I
    would like to create code that scans the controller for all GPIB
    attached devices and creates VISA ports for all. Such ports, when
    written to, would have to first write "++addr DEVICENUM" to
    ASRL3::INSTR (i.e. the port of the GPIB-USB controller) where
    DEVICENUM is the GPIB address of the instrument corresponding to that
    port, and then would have to do a write or read or whatever function
    is being done on that instrument VISA port.
    I haven't figured out if it is possible to do this easily. Help and
    pointers on where to look for hints would be much appreciated. Many
    thanks!
    Milos

    My first impression is that if you don't want to make any changes at all to existing programs is that the wrapper you need is one around VISA. You would need to intercept all of the calls into the NI VISA driver. If you create your own visa32.dll and in there, change the addressing and then call the real VISA driver, you might (repeat, might) get something to work. If this would even work, you still might find that you have to make significant changes anyway. The serial connection is going to be considerably slower, and interface specific functions such as service request handling, bus triggering of multiple instruments, etc., would be difficult to impossible. This would be a lot of work, imho, to just save a couple of hundred dollars over a real GPIB controller. I've seen this Prologix device before and have even used NI's RS-232->GPIB controller. The Prologix intended use to me seems to me more for a hobbyist or very casual user. Of course, I'm used to having multiple GPIB instruments worth 10s/100s of thousands of dollars and the cost of an fully compliant GPIB controller is just lost in the noise.

  • How to forward the same ports for multiple IPs?

    Hi all, I just bought a Linksys WRT54GS router and I would like to forward the same set of ports for two different computers on my network (192.168.1.101 and 192.168.1.3) however when I try to, I get a "Port Overlap" error. Is there another way I can do this? I am trying to set up Age of Empires II. Thanks for any help!

    No.  You cannot forward the same port to two different computers  (or IP addresses).  
    Here's the reason why:
    You and your friend are both playing the game online.  You score 1000 points.  Your friend scores 10 points.  The signal to increase your score 1000 points arrives on port 3078.  Which computer is the router supposed to send this signal to?  Both computers?   No way!
    Most online games have a way to assign different ports to different computers.  For example, you might use ports 3075 thru 3078, while your friend uses ports 3175 thru 3178.  If your game is setup this way, it should work.
    Also, you will want to forward ports to a fixed LAN IP address.  In your WRT54GS, note that any fixed LAN IP address must be outside the DHCP server range, and it cannot end in 0, 1, or 255.   So the 192.168.1.101  address is probably an illegal fixed LAN IP address.
    Here are all the Linksys rules for using fixed LAN IP addresses:
    With Linksys routers, a fixed (static) LAN IP addresses must be assigned in the device that is using the address. So you need to enter the fixed address in the computer or printer, not in the router.
    When using a Linksys router, any fixed LAN IP address must be outside the DHCP server range (typically 192.168.1.100 thru 192.168.1.149), and it cannot end in 0, 1, or 255.
    Therefore any fixed LAN IP address would normally need to be in the range of
    192.168.1.2 thru 192.168.1.99 or
    192.168.1.150 thru 192.168.1.254
    assuming you are still using the default DHCP server range.
    Also, in the computer, when you set up a static LAN IP address, you would need to set the "Subnet mask" to 255.255.255.0 and the "Default Gateway" to 192.168.1.1 and "DNS server" to 192.168.1.1
    It is also important that no two devices on your network be set to the same static LAN IP address.
    Typically, when I setup gamers, I put thier fixed addresses all together at 192.168.1.21 , 192.168.1.22, etc.   But you can use any legal fixed addresses that you want.

  • Hi, I'm using a Mac Pro here. I am trying to connect it with my NAS hard drive. But i could not connect to it because i have an ethernet which connects to the intranet in my company and Air Port for the internet.

    Hi, I'm using a Mac Pro here. I am trying to connect it with my NAS hard drive. But i could not connect to it because i have an ethernet which connects to the intranet in my company and Air Port for the internet and it could not detect the the ip address after i input the correct address on "Connect to Server" window. Please help! Urgent! Thanks

    I did not say it is not possible.
    I said if your company networks are monopolizing both ports, you should talk to them about what options are available.
    Maybe you can get the company Intranet over wireless if you change some configuration items such as Subnet Mask.
    Maybe you can get on the Internet over Ethernet.
    You really need to ask them, and do not let them blow you off because you have a Mac. If they balk, ask them how it would be done on a PC (becasue it will be the same on a Mac).

  • Updating Page Sentry for APEX 4.0

    Hi there,
    I've found this forum and the regular posters and mods to be extremely helpful, so this post is more of a give-back, I hope. We recently upgraded a dev system of apex 3.0.x to 4.0.2 and ran into some issues where our use of some Page Sentry auth code that's been floating around a long time became a problem for us in terms of properly managing session state, URL forwarding, and acceptance of URL parameters for setting the value of page items in session.
    I've posted [an article on our blog|http://zetetic.net/blog/2010/12/10/updating-page-sentry-for-apex-4-0-upgrade/] explaining the whole thing in what is probably very boring detail over here, and if you're so inclined, we'd love your feedback. But just so there's no need to go anywhere, here's the page sentry we ended up implementing, which makes some pretty significant mods to the old page sentry to account for what we perceived as changes in APEX's behavior somewhere in our move from 3.0 all the way up to 4.0.2.
    You can view the following function nicely formatted [at this gist|https://gist.github.com/736369] :
    <pre><code>
    CREATE OR REPLACE function PASSPORT.oamPageSentry ( p_apex_user in varchar2 default 'APEX_PUBLIC_USER' )
    return boolean
    as
    l_cgi_var_name varchar2(100) := 'REMOTE_USER';
    l_authenticated_username varchar2(256) := upper(owa_util.get_cgi_env(l_cgi_var_name));
    l_current_sid number;
    l_url_sid varchar2(4000);
    l_url varchar2(4000);
    l_app_page varchar2(4000);
    begin
    -- check to ensure that we are running as the correct database user
    if user != upper(p_apex_user) then
    return false;
    end if;
    if l_authenticated_username is null then
    return false;
    end if;
    l_current_sid := apex_custom_auth.get_session_id_from_cookie;
    l_url := wwv_flow_utilities.url_decode2(owa_util.get_cgi_env('QUERY_STRING'));
    wwv_flow.debug('oamPageSentry: request from ' || l_authenticated_username || ' (sid=' || l_current_sid || ') for ' || l_url);
    -- split on zero or more non-colon characters, and extract the URL session ID if it is present
    l_url_sid := REGEXP_SUBSTR(l_url, '[^:]*', 1, 5);
    wwv_flow.debug('oamPageSentry: extracted current sid from url as ' || l_url_sid);
    -- the post_login call at the end of this function will blindly append the session ID to the URL, even if it is
    -- a deep link. Detect this condition, strip the duplicate session identifier, and redirect.
    if REGEXP_SUBSTR(l_url, '^.*:' || l_current_sid || ':.+:' || l_current_sid || '$') IS NOT NULL then
    l_url := REGEXP_REPLACE(l_url, ':' || l_current_sid || '$', '');
    wwv_flow.debug('oamPageSentry: identified duplicate session id on URL, stripping and redirecting to ' || l_url);
    owa_util.redirect_url('f?'|| l_url);
    return false;
    end if;
    -- apex 4.0 appears to have problems setting session variables (possibly due to new session validation)
    -- if the Session identifier present in the URL does not agree with the session identifier in the cookie
    -- detect this condition, and replace the invalid URL session identifier in the URL with the valid
    -- ID in from the cookie and redirect to the fixed URL
    if owa_util.get_cgi_env('REQUEST_METHOD') = 'GET' AND l_current_sid <> TO_NUMBER(l_url_sid) then
    l_url := REGEXP_REPLACE(l_url, '^(p=.+?:.+?):\d*(.*)$', '\1:' || l_current_sid || '\2');
    wwv_flow.debug('oamPageSentry: current sid ' ||l_current_sid || ' is diferent from url sid ' || l_url_sid || ', redirecting to url' || l_url);
    owa_util.redirect_url('f?'|| l_url);
    return false;
    end if;
    -- 1. If the session is valid and the usernames match then allow the request
    -- 2. If the session is valide but the usernames do not match, there may be session tampering going on. log the session out
    -- 3. If the session id is not valid, generate a new session, and register it with apex
    if apex_custom_auth.is_session_valid then
    apex_application.g_instance := l_current_sid;
    wwv_flow.debug('oamPageSentry: current sid ' || l_current_sid || ' with username ' || apex_custom_auth.get_username || ' is valid');
    if l_authenticated_username = apex_custom_auth.get_username then
    wwv_flow.debug('oamPageSentry: current session username ' || apex_custom_auth.get_username || ' equal to header username ' || l_authenticated_username);
    apex_custom_auth.define_user_session(
    p_user=>l_authenticated_username,
    p_session_id=>l_current_sid);
    return true;
    else
    wwv_flow.debug('oamPageSentry: username ' || apex_custom_auth.get_username || ' mismatch with ' || l_authenticated_username || ' loggout');
    apex_custom_auth.logout(
    p_this_app=>v('APP_ID'),
    p_next_app_page_sess=>v('APP_ID')||':'||nvl(v('APP_PAGE_ID'),0)||':'||l_current_sid);
    apex_application.g_unrecoverable_error := true; -- tell apex engine to quit
    return false;
    end if;
    else -- application session cookie not valid; we need a new apex session
    wwv_flow.debug('oamPageSentry: current session ' || l_current_sid || ' is not valid');
    l_current_sid := apex_custom_auth.get_next_session_id;
    wwv_flow.debug('oamPageSentry: generated new session id ' || l_current_sid);
    apex_custom_auth.define_user_session(
    p_user=>l_authenticated_username,
    p_session_id=> l_current_sid );
    apex_application.g_unrecoverable_error := true; -- tell apex engine to quit
    if owa_util.get_cgi_env('REQUEST_METHOD') = 'GET' then
    wwv_flow.debug('oamPageSentry: GET request, remembering deep link ' || l_url);
    wwv_flow_custom_auth.remember_deep_link(p_url => 'f?'|| l_url );
    else
    l_url := 'f?p='||
    to_char(apex_application.g_flow_id)||':'||
    to_char(nvl(apex_application.g_flow_step_id,0))||':'||
    to_char(apex_application.g_instance);
    wwv_flow.debug('oamPageSentry: POST request, remembering deep link ' || l_url);
    wwv_flow_custom_auth.remember_deep_link(p_url=> l_url );
    end if;
    -- in previous versions of apex the remember_deep_link call would actually work and cause
    -- post_login to redirect to the target URL. This doesnt work any more in 4.0. Instead,
    -- we'll pass the target page in to the post_login call directly. Post login will blindly
    -- append the session ID to the end of p_app_page when it redirects, but we
    -- clean that up with the first cleanup redirect at the beginning of the function
    l_app_page := SUBSTR(l_url, 3, LENGTH(l_url) - 2);
    wwv_flow.debug('oamPageSentry: post_login for ' || l_authenticated_username || ' app_page ' || l_app_page );
    apex_custom_auth.post_login(
    p_uname => l_authenticated_username,
    p_session_id => nv('APP_SESSION'),
    p_app_page => l_app_page
    return false;
    end if;
    end oamPageSentry;
    </code></pre>

    Billy,
    Thanks a lot for this great info. It seems to have solved the problem I have been having with an NTLM page sentry function for the last 2 or 3 days. Very difficult stuff to debug what is going on inside these functions when they (obviously) behave differently once you have logged in etc.
    As I said, your solution seems to solve my problem - but I have a couple of questions :
    1. Is this related to 10347091 which is mentioned on http://www.oracle.com/technetwork/developer-tools/apex/downloads/apex402knownissues-189793.html ?
    If yes, did you try the patch?
    2. Have you logged a bug or had any feedback (externally or within the forum) from Oracle people on this issue?
    I was about to log a bug regarding the deep linking and FSP_AFTER_LOGIN_URL not behaving correctly when I noticed the known issues and now your valuable work. I was going to try the patch, but I'd rather not apply it unless I know it will solve my problem.
    Please let me know.
    Thanks
    Glen

  • Error while creating logical port for Reporting

    Hi,
    In one of the training materials for Duet Enterprise, i saw the steps for creating logical port for the consumer proxy /IWTNG/CO_PXY_RECORDS_REPOSITO.
    When i am trying to create the logical port, i am getting an error saying,
    " SRT Framework exception: Error in WSDL access: Exception occurred in communication framework:Error in HTTP Framework:500 Native SSL error
    https://<server:port>/_vti_bin/OBAFileReceiver.asmx?wsdl "
    I would like to know is it really necessary to create this logical port for "Reporting Scenario" and is it not created automaticallly using the Installation Wizard??
    And in case it has to be created, how to resolve this SRT framework exception?
    ~ Ramanath.

    Hi,
    the consumer proxy  /IWTNG/CO_PXY_RECORDS_REPOSITO was used in Duet Enterprise SP01. Now with SP02 the consume proxy /IWTNG/CO_OBAFILE_RECEIVER_SOA is created.
    However, the SSL error that you are getting looks a little strange (it does not mean that there is an error, but it is worth checking):
    So can you go to SOAMANAGER -> Service Administration -> Single Service Configuration. In here select "Consumer Proxy" from the "Search by", Search Pattern "/IWTNG/CO_OBAFILE_RECEIVER_SOA" and Field: Both.
    You should find one entry. Select it and click "Apply Selection".
    Now go to the Configurations tab. Here you should see one Logical Port with name "LOGICALPORTFORREPORTING" with Creation Type "Manually Created". In fact this logical port was created by the Wizard.
    Click on Display and scroll down again. Now in the "Additional Information" tab there is a string after HTTP Destination, e.g. 0050568E3F5A1ED096F22339C44BAF83.
    Copy this value and go to your SAP GUI -> Transaction SM59.
    Here click on Find/Search and search for this HTTP Destination. You should find one Type G RFC Destination that has the target host of your SharePoint server and the path prefix /_vti_bin/OBAFileReceiver.asmx.
    Now you can test the service. Just click on Connection Test. The result should be a HTTP Response: 200.
    If not, then something went wrong with the automatic configuration and we should take another look at it (for example maybe the SSL certificate from SharePoint that was imported by the Wizard is not valid)
    Regards,
    Holger.
    PS. Don't use the "Ping Web Service" test from SOAMANGER -- unfortunately this is not working consistently.

Maybe you are looking for

  • Acrobat X SDK - Plug-in for Batch processing - Convert to PDF/A-1b

    I've been working on it, researching for a few days and I cannot find a piece of sample code to save a PDDoc object as PDF/A-1b. I've found solutions (code snipets) to convert Tiff files to PDF, and to create the OCR needed on the PDF's. But I have o

  • Returning a PDF to the browser

    Hi, We have an ASP the extract data in teh form of XML pass it to AOS (Adobe Output Server) which then render it into a PDF document. What we are looking is basically to return that PDF document to the user browser after the ASP execution. Any idea h

  • IBCM on non domain computers - Client Cert: None

    I have IBCM up and running for my domain joined computers, but I have problems with our DMZ and workgroup computers. I have imported the client certificate with the computer name in the subject and SAN, I imported the root and sub cert into the local

  • HI reg 'OR'

    hi all SELECT PERNR FROM PA0001 INTO TABLE INT_PERNR WHERE ORGEH IN S_ORGEH AND                                                     PERSG = '3' AND                                                     PERSK = ( 'K1' OR 'K2' OR 'V1' OR  'V2' OR 'W1' OR

  • Converting bounces to AAC fails

    Most of the times after bouncing a project Logic ProX quits unexpectedly just during the conversion to AAC (without tail, offline). Conversions to mp3 no problem. Please anybody out there tell me how to fix this. OS X 10.9.4 and Logic ProX on I Mac 2