Upgrading APEX to new release 3.1.1 in Oracle XE
May 23rd, 2008 at 10:17 am by Stephan VisserOn the 22nd of May, Oracle released version 3.1.1 of Application Express to the public. Lots of new and interesting features come loaded into this version of APEX, below are some of the key features and improvements, specifically for using APEX in combination with Oracle XE:
(quoting Oracle here!)
- Can be installed directly into Database 10g Express Edition (Oracle Database XE).
- Supports the migration from Oracle Database XE to Oracle Database Standard Edition or Oracle Database Enterprise Edition.
- Supports direct integration with Oracle SQL Developer 1.2.1 and above.
- Includes a supported configuration of Apache FOP to use as your report server for PDF region printing.
- Interactive Reporting provides substantial “out of the box” capabilities to build customizable end-user reports.
- Declarative BLOB support enable files to be declaratively uploaded in forms, and downloaded or displayed using reports. BLOB display and download can also be authored procedurally using PL/SQL.
- Ability to develop Custom Themes and then publish them to ensure consistent look and feel matching your organizations’ standards.
- Compressed JavaScript files for improved page load time and performance, together with Theme 19 specifically designed for mobile applications.
- The framework has also been improved to allow advanced Oracle Application Express developers to build and leverage custom Web 2.0 capabilities.
- You can define an application date format that will be picked up by all date report and form items when displaying dates.
- New hidden and protected item type to protect item session state and ehanced Built-in Page process type (DML Operations) to negate possible SQL injection attacks.
- Corrects a number of issues, making this our most secure and stable release to date.
(end of quote)
APEX is rapidly evolving to a real ‘hot’ topic among Oracle developers, traditional and modern (ie. Java/J2EE) alike, because it allows for fast and easy development and deployment of slick web applications, with all current features and possibilities available and based on the rock-solid foundation of the Oracle Database.
This means that Oracle developers can rely on their knowledge of the Entity Relational World and can start building modern web applications with all the bells and whistles of modern-days web possibilities, without the effort of first having to learn a ton of Java/J2EE stuff.
Oracle XE normally comes fitted with an APEX 2.x instance so if you want to profit from all the new features of the latest release, you’ll have to upgrade. Luckily, the process of upgrading is not too complex and only a few steps are necessary to accomplish this task:
- Download the latest release from the Oracle web site
- Extract the downloaded archive
- Run the necessary scripts for upgrading
- Start using APEX 3.1.1 to build applications!
1. Download the latest release from the Oracle site
You can find the software through the following link:
http://www.oracle.com/technology/products/database/application_express/download.html
Please note that you’ll need a registered account at Oracle for this. Registration is free and (in my modest opinion) a must for every Oracle adept. You can register for an account at the Oracle web site (see the top-right part of your screen) or directly at this link.
2. Extract the downloaded archive
You can extract the downloaded archive using an unzip utility on the operating system you are using. In my case - I’m running on Linux - this will be unzip, on Windows you’ll probably be using WinZip or something similar. If possible, try to put the extracted files into a directory on the same machine you are running XE on.
3. Run the necessary scripts for upgrading
Go to the directory where you extracted the APEX archive (in my case this is /root/apex_3.1.1, so substitute your particular directory whereever I am using this path!) and log into the XE instance as SYS/SYSDBA. Then run the following commands/scripts:
@apexins SYSAUX SYSAUX TEMP /i/ @apxldimg /root/apex_3.1.1 @apxxepwd admin
Please note that the last command is to set a password for the APEX admin user, so you can change that to your own password if you like. Furthermore, you’ll loose some of the functionality provided in the APEX version that originally came with XE, take a look at this page for more information on that topic.
In my case, the upgrade took about 15 minutes to complete and the new APEX ran succesfully at the first attempt.
4. Start using APEX 3.1.1 to build applications!
Happy APEX’ing!
![]()
Popularity: 1468 points


August 27th, 2008 at 5:21 am
Newbie to APEX. Didn’t work? What next?
Also, thanks for the post. It is the first(only) one that describes the steps in such a concise format. Ever since I have tried to upgrade (patch) whatever to 3.1.1. I now get a login with a workspace. I can no longer login via web interface. I can still login via SQLPlus. What did I do wrong?
September 26th, 2008 at 5:06 pm
Does anyone know if you want to upgrade from HTMLDB 2.0 will applications work with apex 3.1 or is there a lot of modifications needed to make them work.
I guess what i’m asking is has anyone migrated older applications to apex 3.1 and what issues has arisen from it.
Thanks
December 4th, 2008 at 11:09 pm
Hi J,
Have you checked the correct URL?
You first have to go to http://localhost:8080/apex/apex_admin. There you login as admin with the password you used in the last command of the list above. Now, you can create workspaces and users to work with them. That is what you have to use to login at http://localhost:8080/apex
Stephan.