Apex 4.2.1 - Reserved application ids?

APEX 4.2.1, Oracle 11gR1
We have application ids 200 and 201 in a workspace. We needed to clone 201 from a prior version in VSS. So I pulled out the version from VSS, ran the following snippet to install it as application 202 (id is not used in the instance) as follows
DECLARE
    l_workspace_id INTEGER;
begin 
  select workspace_id into l_workspace_id  from apex_workspaces where workspace = 'FOO';
  apex_application_install.set_workspace_id(l_workspace_id);
  apex_application_install.set_application_id(202); 
  apex_application_install.generate_offset; 
  apex_application_install.set_application_alias( 'F' || apex_application_install.get_application_id );
end;
@f201.sqlNo errors. I type in 202:22 in the Search box at the top right of the Builder, the page looks fine. I click on the Application Builder link in the breadcrumb and find that 202 is not listed in the list of applications! I scratch my head. Query APEX_APPLICATION_PAGES for 202:22 and it does exist. But there is no entry in APEX_APPLICATIONS for 202! I scratch my head even more.
Digging into the source code for APEX_APPLICATIONS and a process of elimination, leads to the offending predicate in the where clause.
  /* keep this not exists */
  and not exists ( select 1
                     from wwv_flow_language_map m
                    where m.translation_flow_id = f.id);
The comment is part of the code, not mine!
Sure enough, there is an entry in the wwv_flow_language_map table with a translation_flow_id of 202.
So I chose some other id instead of 202 to install the app and everything is fine.
What is going on here? Are certain application ids reserved? I can understand that the Builder related app ids (4000, 4500, etc) are reserved but I am not sure I understand how I can have application ids 200 and 201 in my workspace but 202 is not allowed!
Thoughts? Thanks

Joel - Thanks for responding.
1. I know exactly zero about multi-lingual/translated applications in APEX but I am curious as to why (only) this one instance has these translation_flow_id in the range (183-221). I am guessing it is because I install the APEX Builder suite of apps into the workspace using the script below? If so, what should the script do differently to load just the English (en) language applications?
2. Just curious, what would the fix for this bug be? A change in the view definition for APEX_APPLICATIONS to tighten up that NOT EXISTS predicate?
Thanks
-- Builder F4000
DECLARE
    l_workspace_id INTEGER;
begin
  select workspace_id into l_workspace_id  from apex_workspaces where workspace = 'FOO';
  apex_application_install.set_workspace_id(l_workspace_id);
  apex_application_install.set_schema('HR');
  apex_application_install.set_application_id(2000);
  apex_application_install.generate_offset;
  apex_application_install.set_application_alias( 'F' || apex_application_install.get_application_id );
end;
@/opt/oracle/home/patches/apex42/apex/builder/f4000.sql
-- SQL Workshop F4500
DECLARE
    l_workspace_id INTEGER;
begin
  select workspace_id into l_workspace_id  from apex_workspaces where workspace = 'FOO';
  apex_application_install.set_workspace_id(l_workspace_id);
  apex_application_install.set_schema('HR');
  apex_application_install.set_application_id(2001);
  apex_application_install.generate_offset;
  apex_application_install.set_application_alias( 'F' || apex_application_install.get_application_id );
end;
@/opt/oracle/home/patches/apex42/apex/builder/f4500.sql
-- Administration F4350
DECLARE
    l_workspace_id INTEGER;
begin
  select workspace_id into l_workspace_id  from apex_workspaces where workspace = 'FOO';
  apex_application_install.set_workspace_id(l_workspace_id);
  apex_application_install.set_schema('HR');
  apex_application_install.set_application_id(2002);
  apex_application_install.generate_offset;
  apex_application_install.set_application_alias( 'F' || apex_application_install.get_application_id );
end;
@/opt/oracle/home/patches/apex42/apex/builder/f4350.sql
-- Websheets F4900
DECLARE
    l_workspace_id INTEGER;
begin
  select workspace_id into l_workspace_id  from apex_workspaces where workspace = 'FOO';
  apex_application_install.set_workspace_id(l_workspace_id);
  apex_application_install.set_schema('HR');
  apex_application_install.set_application_id(2003);
  apex_application_install.generate_offset;
  apex_application_install.set_application_alias( 'F' || apex_application_install.get_application_id );
end;
@/opt/oracle/home/patches/apex42/apex/builder/f4900.sql

Similar Messages

  • APEX 4.0 New Features Application

    Hello
    Is the APEX 4.0 New Features application available for download ?
    The application itself is available at http://apex.oracle.com/pls/apex/f?p=34738
    Varad

    Hello Varad,
    It’s the first application on the packaged applications download page.
    http://www.oracle.com/technetwork/developer-tools/apex/application-express/packaged-apps-090453.html#40New
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • Can apex work without the oracle applications server? How?

    My question is just what the title says.
    Can apex work without the Oracle applications server?
    I've heard it needs a web server to work but not necessarly the oracle applications server.
    Is it true?
    With ONLY apache installed can apex work on top of it?
    Thanks
    Don't forget to assign points to those who help you! (Mark the thread Helpful/Correct)
    My Homepage
    Best Regards
    Edited by: Igor Carrasco on May 29, 2009 2:59 PM
    Edited by: Igor Carrasco on May 29, 2009 2:59 PM

    Hello,
    Take a look at the Installation Guide which covers all the different options you have (as there are a few variations) -
    http://download.oracle.com/docs/cd/E14373_01/install.32/e13366/toc.htm
    but yes, in short you can have a configuration where there is no external webserver which uses the embedded PL/SQL gateway.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Reserved Application ID's

    All,
    We are moving our APEX programs into production integrated with Oracle E-Business Suite. Before this happens we must compile our "Standards" document.
    Can someone tell me:
    What are the numbering limits for Application ID's?
    What numbers have been reserved?
    Thanks for any help

    Hi there,
    From this query against the Apex data dictionary:
    select application_id, application_name
    from apex_applications
    where WORKSPACE = 'INTERNAL'it looks like 4000, 4050, 4155, 4300, 4350, 4400, 4411, 4500, 4550 and 4700 are reserved.
    I know that the application ID must be unique across all workspaces in an installation, and that its stored as a NUMBER datatype in the underlying tables. I'm not sure if any other limits are enforced.
    Regards,
    Jerry

  • Apex Listener vs. Oracle Application Server... advantages?

    Are there advantages to installing Apex Listener over using an existing Oracle Application Server instance to serve Apex applications?
    We have an existing application server instance in production. Would introducing Apex Listener and the extra overhead be of any advantage?
    Thanks in advance for your thoughts.

    Hello "Portal Dude",
    Are there advantages to installing Apex Listener over using an existing Oracle Application Server instance to serve Apex applications?APEX Listener introduces some additional features, such as Resource Templates, but lacks some others. Some people might want to migrate from OAS to another JEE Container that doesn't come along with a OHS/mod_plsql. Depending on the JEE Container, you could use AJP for load balancing, avoiding plain HTTP through a firewall, etc.
    Would introducing Apex Listener and the extra overhead be of any advantage?The "extra overhead" may be smaller than you think. If you don't need the HTTP_Server component any longer, but can just deploy APEX Listener on the OC4J of your OAS, you might even save some bytes.
    For several other aspects, there have been a few posts on that topic in the past:
    {thread:id=1100122}
    {thread:id=1555908}
    {thread:id=1594158}
    If there's anything you don't find in either the posts or the documentation, don't hesitate to ask.
    -Udo

  • Problem with apex listener install on Oracle Application Express 4.2.3

    I have installed Oracle Application Express 4.2.3
    Then i tried to install apex listener  Oracle APEX Listener 2.0.5
    but it dos not work.
    I ask
    It is possibile to install  WebLogic Server 12c or 11c
    and connect it to apex ??

    Hi;
    Please check Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1] and compare it wiht your steps
    Regard
    Helios

  • APEX 4.0.1 - import application fails

    Trying to switch from APEX 3.2 to APEX 4.0.1, it appears another patch release may be needed. I am unable to import applications created via APEX 3.2 export and APEX 4.0.1 export. This is the error:
    ORA-01400: cannot insert NULL into ("FLOWS_FILES"."WWV_FLOW_FILE_OBJECTS$"."ID")
    Please confirm bug or problem resolution. Thanks.

    Hi,
    what's your database version and how is your APEX 4.0.1 hosted (EPG/OHS/Listener)?
    -Udo
    P.S.: For a little further diagnostic, you could try to find out if something went wrong during your 4.0.1 installation.
    select status from dba_triggers where table_name='WWV_FLOW_FILE_OBJECTS$';If the trigger is not enabled, you might try recompiling it.
    alter trigger WWV_BIU_FLOW_FILE_OBJECTS compile;Edited by: Udo on 14.09.2010 21:15

  • APEX popup from another web-application

    Hello,
    In an existing web-app (not developed using APEX, but using Oracle as underlying db), we are planning to add lot of APEX based pages. To start with this is what we need.
    We want to write one APEX page which we want to show as POP-UP page on click of some button in the existing application.
    How can this be achieved?
    regards, Yora

    Will you have these popup pages under any authentication or as public pages? Why exactly are you doing this mixing APEX and another web based tool??
    Thank you,
    Tony Miller
    Webster, TX

  • Apex running with Oracle Retail Applications

    Hi,
    Has anyone had experiance of building Apex screens to run with the Oracle Retail Applications (ORMS, ORPM, ReIM etc) and if so the do you do authentication using mod_sql (as with EBS 11i) rather than using the Apex Listener as you would with EBS R12.1
    I am assuming its possible to access the Apex screens from the Retail menu's but I have not looked into it in any dertail and just wanted to know that I am not waiting my time suggesting Apex as an extension technology around the Retail Applications.
    Mark

    Toon:
    Check the setting of the database init parameter - 'shared_server'
    From sqlplus connected as sys
    show parameter shared_server
    To change the value of this parameter enter the following
    alter system set shared_server=5 scope=both;
    Varad

  • Apex 4.1 bug? Application language derived from Session changes time zone

    I have created an application in Apex 4.1 and in the "Initialization PL/SQL Code" for the session (what used to be called the VPD section) I have the following code:
    begin
      execute immediate 'alter session set time_zone = ''+01:00''';
    end;This works as expected, UNLESS the "Application Language Derived From" (under "Edit Globalization Attributes") is set to "Session", in which case the session's time zone is also affected (and not just the language, as one would expect).
    This can be seen in the following simple example, which runs the above code to set the time zone, and has the language derived from "Session":
    http://apex.oracle.com/pls/apex/f?p=38595
    This shows
    sessiontimezone = -05:00Even though the session's time_zone has been explicitly set to +01:00 with the ALTER SESSION statement.
    Experimentation with the URL shows that if a p_lang parameter is passed, with a valid language identifier, for example:
    http://apex.oracle.com/pls/apex/f?p=38595&p_lang=de
    then the time zone is affected (showing -05:00 instead of +01:00).
    However, if an INVALID time zone identifier is passed:
    http://apex.oracle.com/pls/apex/f?p=38595&p_lang=xx
    then the session time zone is CORRECT according to the ALTER SESSION command:
    sessiontimezone = +01:00If I change the "Application Language Derived From" to something else than "Session" (for example, "Browser" or "Item Preference"), then the timezone is also correct (ie follows the ALTER SESSION command).
    Running the page in debug mode confirms that the time zone is being set after my VPD/initialization code has been run:
    0.01585     0.00146     ...Application session: 1671806996734123, user=nobody     4     
    0.01731     0.00144     ...Execute Statement: begin begin execute immediate 'alter session set time_zone = ''+01:00'''; end; end;     4     
    0.01875     0.00065     Session: Fetch session header information     4     
    0.01940     0.00073     SESSION Language (nobody): wwv_flow.g_browser_language=en maplang=en     4     
    0.02013     0.00059     alter session set nls_language="AMERICAN"     4     
    0.02071     0.00043     alter session set nls_territory="AMERICA"     4     
    0.02114     0.00094     NLS: CSV charset=WE8MSWIN1252     4     
    0.02208     0.00111     ...NLS: Set Decimal separator="."     4     
    0.02318     0.00062     ...NLS: Set NLS Group separator=","     4     
    0.02380     0.00063     ...NLS: Set g_nls_date_format="DD-MON-RR"     4     
    0.02443     0.00091     ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"     4     
    0.02534     0.00066     ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"     4     
    0.02600     0.00050     ...Setting session time_zone to -05:00     4     
    0.02650     0.00065     Setting NLS_DATE_FORMAT to application date format: dd.mm.yyyy     4     
    0.02715     0.00056     ...NLS: Set g_nls_date_format="dd.mm.yyyy"     4     
    0.02771     0.00055     ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"     4     
    0.02827     0.00057     ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"     4     
    0.02884     0.00230     NLS: Language=en     4     
    Conclusion: It seems to me that when the LANGUAGE is set to be derived from the "Session", this also, as a side effect, alters the session TIME ZONE, which must be a bug... ?
    - Morten
    http://ora-00001.blogspot.com
    Edited by: mobra on Sep 24, 2011 7:14 PM

    Hi Arie,
    When you are setting the language to derived from session you actually declare that you are working in a dynamic environment – per session – and not in a static one. Using the Initialization PL/SQL Code is very static as the same code is executed for every database session.I was using a fixed time zone value in the ALTER SESSION to demonstrate the bug/problem... in real life, the actual time zone is derived dynamically based on a user profile stored in the database.
    APEX 4.0 introduced the Automatic Time Zone under the Globalization tab. By default it’s set to No but setting it to Yes will allow you to use your local time zone (as derived from your browser) with whatever language derived setting you choose, including per session with the *&p_lang* parameter.The key point is that LANGUAGE has nothing to do with TIME ZONEs, and vice versa. People speak English (and Spanish, and French, and Chinese for that matter) all over the world. You cannot determine a user's time zone based on the chosen language.
    You're telling me to enable "Automatic Time Zone" to work around an unwanted side effect from changing the language setting. Sorry, but that just sounds like bad advice to me.
    If you want to use session derived language, however the local time zone settings are not good for you, you can still change them with a Before Header and After Submit PL/SQL processes and an appropriate alter session statement, on a per page base. The APEX engine will not ignore a page based session setting.Why should I have to do this for every page when the "VPD" Section (now called "Initialization PL/SQL Code") is made for this purpose?
    If you look at the help text in the Apex builder for that section, it actually says that:
    The code entered here need not pertain to VPD/FGAC and may not be related to security at all.
    Any code that needs to be executed at the earliest point in a page request can be placed here.
    For example, the following code sets the database session time zone for every page request:
    BEGIN
       EXECUTE IMMEDIATE 'alter session set time_zone = ''Australia/Sydney'' ';
    END;So I hope the demonstrated behavior is not intentional, but a bug, and I'm hoping Joel sees it the same way.
    - Morten
    http://ora-00001.blogspot.com

  • Apex users levels. 2 applications or only 1 divided in two?

    Hi.
    I got 10gXE and apex 2.1 (gotta upgrade it!)
    Let me explain what i need to do but don't know how to.
    I'm developing a unique app right now all apex users can acces, but later, i gotta divide that applicatioin in two. One group of pages are for managers (access to all pages) and another group of pages for common employees (access to only few pages)
    If i develop two applications with different numbers (ex app 401 for managers and 402 for common employees) i should have 2 login pages right? one for each app.
    Is there any possibility that, once i log in from a unique login page, that login page takes me to app 401 or app 402 depending if the username belongs to managers or common employees??
    Or definetively, i should have two login pages, one for each app?.
    I prefer not to do that, i prefer to give the users a unique login page from where they can access the app they are allowed to.
    Thanks in advance...
    Fernando.

    Dear Chrissy...
    I'll take a deep look into UsersGuide, but for know, I'll try to make myself clear so you can understand what i want.
    The application users are divided in 2 groups, management (M) and common employees (CE). Depending whether an app user belongs to a certain group, he/she should be able to see ONLY the pages allowed for that type of user M or CE.
    In the application, pages 1 to 10 are allowed to see and use for CE users, pages 20 to 24 are allowed to see and use for M users. CE are not allowed to see neither use pages of M users, and viceversa. For that purpose, i have 2 groups of Tabs, TAB1 owns pages 1 to 10 and TAB2 20 to 24. so, if you access page 3 for ex, you will only see on tabs, pages 1 to 10. If you access 22, you'll only see pages 20 to 24.
    Just like you, i was also thinking on how to branch to different pages depending on authorization, so I modified the Login process at login page to
    (remember: tipousmw is the type of user, mw_usuarios is the table where user data is stored -doce, name, email,. type of user - and tipousmw=1 if CE and 2 if M)
    declare
    q number;
    begin
    select tipousmw into q
    from mw_usuarios
    where usernamemw = lower(:P101_USERNAME);
    IF q=2
    THEN
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    ELSIF q=1
    THEN
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':20'
    END IF;
    end;
    So it's supposed that if a username belong to CE, he/she will be redirected to page 1, otherwise, if it belongs to M, he/she will be redirected to page 20. And it worked at the beginning, but not later, i dont know if it got something to do with the cookie...
    The previous procedure makes sense to me but.. don't know if you can try and tell me what happened.. hope somebody else have tried this so i can have a suggestion or an opinon on howcome it doesn't work properly....
    Thanks in advance for your help-.....
    Fernando...

  • Can Oracle Application Express (APEX) be integrated with ADF applications?

    Hi All,
    Oracle Application Express (APEX) works on various supported databases. Can this tool be integrated with ADF for report publishing, in adf some of my result is coming from Business Components , so can these things be related to each other?
    Please provide a suitable forum to ask this question if this question doesn't fir in ambit of this forum.
    Thanks in advance.

    There are a couple of things you can do - a lot depends on what your application needs. Since you ask this in the JDeveloper forum, I'm going to address getting to ApEx from ADF, not to ADF from ApEx - but some of the same possibilities apply.
    Easiest thing to do is to jump into the ApEx application with a af:goLink or af:goCommand referencing the needed page's URL. By setting the target, you can control whether it opens in a new window or the same window. I'm not currently using ApEx, but I have a few reports written as PL/SQL Server Pages that I call exactly this way.
    You can also open the ApEx pages in an af:inlineFrame - and it will look like it is inside your ADF application - but use inline frames with a little caution - they don't work perfectly in all browsers, notably Mobile Safari.
    ApEx can't look inside your ADF BC objects, but of course, if your two applications are using the same database, you can communicate between them within the database. One possibility to look at is Advanced Queuing.
    Some ApEx functionality can be executed by executing the underlying PL/SQL procedures - do a search in this forum for how to call PL/SQL from an ADF BC Application Module.

  • Using APEX to create a navigation application using Oracle Maps/Google Maps

    Hi Guys,
    Does anyone know if there are any tutorials out there which would show me the basis to create a navigation application with Oracle Maps/Google Maps in APEX?
    I have found tutorials that show me how to get the map onto APEX and to view it but I cant find anything else that would give me a more in-depth tutorial
    Thanks in advance for your help
    -Mark

    Hi,
    I hope that this link might help
    http://www.oracle.com/technetwork/developer-tools/apex/integration-086636.html#GOOGLE
    Br,Jari

  • Accessing an APEX page, from an external application, passing a parameter

    Hi,
    We are tring to allow users access to a suite of reports we have developed within an APEX application, from an external source. Ideally we want to embed a URL that when activated, would access the APEX page, but would populate the APP_USER so the full functionality of the report can be fully utilised (region access etc). I have tried serveral options, such as:-
    f?p=193:4.::NO:193::APP_USER:MR036668
    i.e App no 193, page 4 and trying to populate APP_USER with "MR036668" but get the folowing error:-
    Error ERR-1002 Unable to find item ID for item "APP_USER" in application "193".
    Can anyone help?
    Thanks
    Mark

    Hi ,
    Please try this
    Please open your application in APEX then go to shared component then create application item which is named as global item referenced by all the pages
    F193_USERNAME
    f?p=193:4:1903218616592015::::F193_USERNAME:Markieb1888
    otherwise
    you can pass LIKE THIS
    f?p=181:1:1914838104983187::NO::P111_USERNAME,P111_PASSWORD:Matt,Baker
    please let me give some more details to help you.
    thanks
    Mark
    Edited by: Websoft on Sep 9, 2009 6:17 AM

  • How do I register Multiple External Application IDs

    How do I register Multiple External Application ID's in a single WEBCLIPPING provider....

    Hi Java,
    You cannot have multiple External Application associated with a single Provider , you need to register diffrent providers with respective External Applications
    Thanks
    Vineet

Maybe you are looking for

  • How to generate AWR report by using ttStats?

    Hi all,are there any links or documents to show how to use ttStats toolkit to generate a report like Oracle AWR report? If no links or document available, could you tell me how to use it? In fact I want to know how to do a performance analysis for my

  • Problem identified jsf component and problem of checkboxs

    hello, i have 2 questions: - 1 I have a js function that show/don't show a tab when we chose yes/no on a SelectOneRadio: function display(fieldRadio,tabtohide) div = document.getElementById(tabtohide); if(fieldradio.value=='false') div.className='hid

  • Pblm in Converting BUOM to Batch specific unit of measure

    Hi Gurus I am Facing a Problem in converting the base unit of measure to batch specific unit of measure. I have given BUOM in KG.Batch specific unit of measure is PC. When i do GR for the material in KG with the average wt of the material in kg in th

  • Change in structure

    Hello All, Here is my source structure: BH1 DL1 DL2 DL3 DL4 --(may come multiple times) BH2(may come multiple times) DL1 DL2 TT I want my output structure to be BH1   DL1   DL2   DL3   DL4 BH2    DL1    DL2 TT Can you please help me In getting the de

  • Is there any help for ALV report development with  funcation modules?

    Hi, please tell me any help or example to understand the ALV function module.