Minor bug upgrading from apex 3.1 to 4.1

I have an application written by someone else in apex 3.1. When upgrading to apex 4.1 some pages failed to work. This was because for some reason there was a condition on a process which had a begin and end when the condition was of type: "NOT EXISTS (SQL qurey returns no rows".
This was combines by the process being:
begin
null;
end;
Anyway I thought I might share obviously this was crap code but maybe the upgrade process should run better then that.

Hi Ben,
are you upgrading your existing machine or are you setting up a new environment with Oracle 11g and APEX 4.2? If that's the case you can use have a look at http://www.talkapex.com/2012/04/command-line-backups-for-apex.html which creates export scripts for all your workspaces and applications. Those export scripts can than easily be imported with SQL*Plus. Note: Please have a look at bug# 14777994 in our Known Issues list at http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-42-known-issues-1863578.html
If you are upgrading your existing database, you don't have to export/import. When you upgrade APEX to 4.2 all your existing workspaces and applications will be upgraded to 4.2 as well.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf

Similar Messages

  • Upgraded from APEX 3.1 to APEX 4.0.2, Interactive reports broken

    I just recently upgraded from APEX 3.1 to APEX 4.0.2.
    Am using IE 8.
    Now whenever I click on a column header in an interactive reports I get a javascript error:
    Message: Expected ')'
    Line: 1
    Char: 40984
    Code: 0
    URI: http://patchx:8080/i/javascript/apex_4_0.js
    Am at my wits end on this one.
    I can't see anybody else who has hit this error.
    The demo application works okay.
    I set up an interactive report with the same properties as the demo app, but i still get the error.
    Any clues?

    AHA, I just figured out what is making this happen.
    I have a custom authorization scheme which calls a PLSQL function.
    I had set the authorization scheme to "Once Per Page View".
    This was causing the error to happen, although I still don't know why.
    Unfortunately it is a problem because I need to authorize on each page.
    This is because my plsql function must allow the login page authorization so we can capture the username to check against permissions. So I autmatically return true on the login page. But that means anybody can get in, because that is the once per session authorization as specified.

  • Upgrading from APEX v3 to 4 issues

    Hi,
    I am trying to upgrade from APEX version 3 to v4, and we have the following issues:
    * The buttons are not working (doesn't do anything when pressed)
    * The show edit links are automatically displayed, and the edit link arrows are outlined in blue.
    * The values are not being saves on the session.
    I exported the application and imported into the oracle development forum and everything work fine.
    We get the following error when using IE;
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
    Timestamp: Tue, 1 Feb 2011 22:50:26 UTC
    Message: 'apex' is undefined
    Line: 73
    Char: 1
    Code: 0
    URI: http://pcaapex01.pca.ad:7777/pls/apexdev/f?p=101:2:798892704964590::YES
    Any help will be appreciated.
    Thanks.

    Hi alberto,
    i suppose that your application file prefix is incorrect for your application. Can you please verify that the directory specified in "Image Prefix" at Application Builder > Edit Application Properties is correct. You can test that with
    http://yourdomain:yourport/<value specified in image prefix>/apex_version.txt
    for example
    http://apex.oracle.com/i/apex_version.txt
    The application file prefix should be set to the same value you have entered during the installation of APEX 4.0?
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to upgraded from apex 3.2.0 to 3.2.1?

    H gurus,
    I am using oracle 10g xe with apex 3.2.0, I would like to upgrade to 3.2.1, but I got no support and thus no access to metalink.
    I did this for upgrading,
    I droped user apex_030200 and then upgraded with the 3.2.1 install file, seems everythings going nice, except there's error about flow_files schema already exsited.
    and I found I didn't need to upgrade the image file as well.
    Is that way Ok for upgrading from 3.2.0 to 3.2.1? by far seems nothings wrong.
    Peter

    Hi Jarola,
    Sorry, I made a mistake when I chose the ORACLE_HOME directory, I did it again to loading the images, without any more errors.
    Seems I did it, nothing wrong.
    But I found the bug-fix I expected is still not being fixed, that is,when I upload excel files with the utility/data_load tool, I still encounter error messages sometimes, I have to repeat and made it right.

  • Error while upgrading from APEX 3.0 to 3.1

    Hi,
    I was upgrading from 3.0 to 3.1 and it was going great but then it bombed out on Page 4736.
    Error page=4736 item="F4000_P4736_P" id="881158261"
              declare
              ERROR at line 1:
              ORA-06502: PL/SQL: numeric or value error
              ORA-06512: at "SYS.OWA_UTIL", line 354
              ORA-06512: at "SYS.HTP", line 7
              ORA-06512: at "FLOWS_030100.WWV_FLOW_API", line 4098
              ORA-01654: unable to extend index FLOWS_030100.WWV_FLOW_STEP_ITEM_HELP_IDX by 8
              in tablespace SYSTEM
              ORA-06512: at line 7
    Is this a known bug?

    No more room in the system tablespace, all database users (execpt sys and system) should be set to use a tablespace that isn't system or sysaux.
    XE is supposed to set default to USERS, if there's been quite a few table drops the cleaning up recyclebin could help, tt can be managed in the web GUI under utilities. Connect as system to see all deleted objects in the database, and also check that all the database users are set to default to the USERS tablespace not system ...
    select username, default_tablespace from dba_users -

  • Error of upgrading from apex 4.1.1 to apex 4.2.2 in images

    Hi all,
    I made an upgrade of my environment from apex 4.1.1 to apex 4.2.2.00.11 with these steps :
    sql>@apexins APEX APEX TEMP /i/
    timing for: Complete Installation
    Elapsed: 00:26:00.35
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    1 row selected.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @apxldimg.sql D:/
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    . Loading images directory: D://apex/images
    Directory created.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    Commit complete.
    Directory dropped.
    timing for: Load Images
    Elapsed: 00:01:43.54
    SQL> ALTER USER XDB ACCOUNT UNLOCK;
    User altered.
    SQL> ALTER USER APEX_040200 ACCOUNT UNLOCK;
    User altered.
    SQL> ALTER USER FLOWS_FILES ACCOUNT UNLOCK;
    User altered.
    SQL> ALTER USER ANONYMOUS ACCOUNT UNLOCK;
    User altered.
    As you see,everything was normal without errors,but when i try to access to workspace wit this url :http://fuegedb.thinktank.de/apex i have in the web console errors like ReferenceError: apex is not defined  or ReferenceError: $x is not defined .
    The result of this url http://fuegedb.thinktank.de/i/apex_version was  :
    Application Express Version: 4.1.1
    it seems that the step of loading the images failed, we even try to repeat the execution of apxldimg script but same error still exists.
    Have you any others ideas.

    Ok, let's take a look at if we can see if the files are being uploaded. Run the following query:
    select path(1) from resource_view where under_path(RES, 1, '/', 1) = 1;
    This will show you the root paths in the XDB (XML DB Repository).  You don't need to run this query since I can see your directory listings as noted by backintheday.
    You can see all the times you have attempted to load the files by the number of images* directories.  Each time you run the apxldimg.sql script it will rename the current images folder and append a date/time suffix.
    The interesting thing about your folder structure is that you have an i directory along with an images directory.  The i directory has the 4.1.1 files, the images directory has the 4.2.2 files (http://fuegedb.thinktank.de/images/apex_version.txt)
    Not sure why you have an i directory.  Did this database used to be a 10g database and not a 11g database?  That might explain it.
    Try renaming the i folder path.
    begin
          dbms_xdb.renameresource('/i/','/','/i_411');
    end;
    If the EPG is set up correctly it will have the i prefix mapped to the images path and everything should work fine.  If not we'll have to figure out how to configure the EPG.

  • Upgrade from APEX 3.0.0 to 3.1.0 causes problems with applications

    Hello everyone,
    We have recently upgraded our dev environment from APEX 3.0.0 to 3.1.0. The upgrade went through sucessfully, but the applications that were developed in 3.0.0 are not functioning in this upgraded dev environment. When I run the pages, it loads it with show edit links enabled, buttons dont function (postback) and the page shows an error of object expected. What seems to be the issue? What would alleviate it?
    Any help is greatly appretiated :D
    Regards,
    Luis

    Thank you for your quick reply.
    It pointed us in the right direction. I ran Fiddler debugger on the problematic webpage and confirmed that the applications from 3.0 are looking for the new javascript libraries but in the old images directory
    +/i/javascript/apex_ns_3_1.js+
    +404 Not Found+
    +/i/javascript/apex_3_1.js+
    +404 Not Found+
    +/i/javascript/apex_get_3_1.js+
    +404 Not Found+
    +/i/javascript/apex_builder.js+
    +404 Not Found+
    +/i/css/apex_3_1.css+
    +404 Not Found+
    +/i/css/apex_ie_3_1.css+
    +404 Not Found+
    I noticed the pages that were working in the new environment found these files in the /i31/ folder.
    I will have the DBA's attempt to copy the files from /i31/ into the /i/ directory and let you know if it works out. B-)
    Edited by: mrcatinthehat on Feb 26, 2009 7:36 AM

  • Oracle Apex patch number  to upgrade from Apex 4.0.2  to 4.1

    We have Apex 4.0.2
    We wanted to upgrade 4.1
    What is upgrade patch number for this upgrade so we can download from metalink

    Hello,
    as far as i know there is no patch to upgrade from 4.0.2 to 4.1.
    Just download the full 4.1 from http://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html
    Regards,
    Dirk

  • Upgrading from Apex 3.2.1 (mod_plsql) to Apex 4.0 with Oracle Listener

    Hi,
    We have some applications developed in Apex 3.2.1 (which is mod_plsql) that have not been moved into Production yet. We are planning to upgrade to Apex 4.0 with Oracle Listener as soon as they are available (we don't want to turn on mod_plsql on any web server). What will be the migration process? Will my applications function and look the same when I open them in Apex 4.0? Will any functionality, formatting, etc. be lost?
    I heard that there is a Migration Assistant but there is not much information available.
    When Apex 4.0 and Oracle Listener will be released? Summer 2010?
    I would appreciate all the information that you have about this.
    Thanks,
    Violeta

    A new dedicated OTN Forum has been set up for the APEX Listener: ORDS, SODA & JSON in the Database
    Please use this forum for all future APEX Listener posts.
    Regards,
    David

  • Error upgrading from APEX 4.0.1.00.03 to 4.1.1

    I receive this error. In my opinion the problem could be related to the presence of one personalized authentication schemas, based on a DB function, taken from a Packaged application, some years ago, called "menu_framework".
    This is the error report:
    -- Now beginning upgrade. This will take several minutes.-------
    -- Ensuring template names are unique -------
    -- Migrating metadata to new schema -------
    -- Switching builder to new schema -------
    begin
    ERRORE alla riga 1:
    ORA-00600: codice di errore interno, argomenti: [kgiinb_invalid_obj],
    [0x26962168], [0x1A1042F4], [], [], [], [], [], [], [], [], []
    1) after the error trap, I copied the Image folder and tried to launch APEX. It was possible to lunch the development pages, but impossible to execute any application with the error: Authentication Schema not Supported
    2) then decided to downgrade to APEX 4.0, following the proper instructions: received a similar error:
    SQL> exec apex_040000.wwv_flow_upgrade.switch_schemas('APEX_040100','APEX_040000
    BEGIN apex_040000.wwv_flow_upgrade.switch_schemas('APEX_040100','APEX_040000');
    END;
    ERRORE alla riga 1:
    ORA-00600: codice di errore interno, argomenti: [kgiinb_invalid_obj],
    [0x16D5D9E4], [0x27F2074C], [], [], [], [], [], [], [], [], []
    The execution of application reported the same problem.
    Then decided to restore the entirre DB.
    Where is my problem?
    Are my suspects real or the Authentication schema malfunctiong is a conseguence of the upgrade error?
    Thank you, Angelo

    I think this has something to do with your database and now APEX is affected. I don't think it is an APEX issue. Which version of database are you using? Maybe you should patch it to a more stable version.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Upgrade from apex 2.1 to 2.2

    Hi,
    I am trying to upgrade apex 2.1 to 2.2. can anybody give some tips for the upgrade to be flawless (my superior isn't so pleased from this step so i'd like to make sure that the process will be as faster and safe as it can be and).
    where should i unzip all the files? isn't there any file that extracts all the necessary files?
    any help would be appreciated
    Liron

    Hi Liron,
    Q. Where to unzip the files ?
    A. It is entirely up to you. You can unzip on the db server itself (say in a temp dir) or on
    a remote machine with sqlplus. Not if you use a remote machine then you will need
    make sure your tnsnames.ora has a reference to the db hosting APEX / HTML DB.
    NOTE : Once the install has gone ok and you do the post install tasks (Eg copy the new 2.2 /images/ etc etc) you can remove the unzipped files.
    I'm curious, what actually is your superior no so pleased with - do you have more details ?
    Regards,
    Sunny Patel.

  • Upgrade from APEX 4.0.0.00.46 to 4.1.1.00.23

    Hi All Respected Gurus!
    Currently I am using APEX 4.0.0.00.46 with Oracle Database 11g-R1.
    Now I want to upgrade it into APEX 4.1.1.00.23.
    Please help.
    Thanks in advance for your usual support.

    Hi,
    If you have access to support.oracle.com you will find the patches for this upgrade and the instructions from applying them there.
    If no support then you have may have to take a backup of applications , workspaces,etc. , remove the current version of Apex, install your target version of apex and then import back the Apex applications.
    Regards,

  • Problem facing while upgrading from apex 3.0 3.2.1

    iam using 11g database . I have apex 3.0 now i try upgrading to 3.2.1
    I did following steps
    1)I Downloaded from otn apex 3.2.1 zip file
    2) unzipped file
    3)i have connected sqlplus where i unzipped apex 3..2.1
    sql>@apexins.sql SYSAUX SYSAUX TEMP /i/
    then it showing error
    .....Checking prerequesities.
    PL/SQl procedure successfully Completed
    No rows selected
    Application Express Installation requires the oracle text database Componenet
    begin
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA- 06512 at line 4
    then Diconnected from oracle
    Please tell me solution ASAP
    Thanks in advance
    Sudhakar.K

    Oracle Text is a required component for APEX installation. See document at http://download.oracle.com/docs/cd/E14373_01/install.32/e13366/pre_require.htm#insertedID6
    Please check with DBA to install it.
    SYSTEM @DB1> select comp_name, status from dba_registry where comp_name like 'Oracle Text';
    COMP_NAME STATUS
    ======== =====
    Oracle Text VALID
    Edited by: ittichai on Apr 25, 2010 10:19 PM

  • Applications not working after upgrade from apex 3.2 to apex 4

    hi,
    we've created an application with apex 3.2 which works fine.
    today we upgraded apex 3.2 to apex 4. after the upgrade the application doesn't work anymore.
    we recognized the following things:
    - interactive reports don't work anymore
    - tabs don't work anymore
    - buttons don't work anymore
    what do we have to do, to get our apex 3.2 application to work with apex 4?
    regards,
    matthias

    I've seen similar problems to my applications. I've found a problem with the derived columns or link columns in reports. The only solution I founded is to delete the columns and then make them again. Now are working. No problem founded specifically for the interactive reports. If there is an automated solution for the derived columns or link columns it will be appreciated ;-).

  • Form element id changed after upgrading from APEX 3.2.1 to 4.0.2

    Hi,
    We are in the process of testing an upgrade of our APEX 3.2.1 app to 4.0.2. The production database was exported, imported as a new database, and then upgraded to 4.0.2. I've noticed that on pages where we have coded our own PL/SQL process in place of the built-in MRU, the form element id (referenced using g_fxx) has changed. For example, in our existing production system, the id for the first row of data is f06_0001, but when we look at the same page in APEX 4.0 environment, the element id has changed to f08_0001. Is this a known issue when performing an upgrade? Has anyone else experienced this?

    Hi,
    I have seen this problem.
    I assume that Apex 4 do not give fxx name to items anymore in order where columns are in query.
    This is one of reasons why we have not been yet able to upgrade.
    And it seems this same problem exists in Apex 4.1 on apex.oracle.com
    Regards,
    Jari

Maybe you are looking for