How to upgrade Oracle Apex 5.1 to 18.1
Please do the following steps:
I assume you have already installed Apex 5.1 in the Apache Tomcat environment
In this up gradation steps you only need to fresh install of Oracle Apex. It does not require to Re-install/Re-configure of REST data service, Database, Apache tomcat..etc.
Steps:
- Download Oracle Apex (Apex 18.1) from apex.oracle.com site
- Unzip download file
- Open a command prompt window and get into the unzipped directory
- F:\ORACLE\apex_18.1\apex
- In your case, the unzipped directory path may be different, please replace your own directory path.
- Now login to the database using SYS with SYSDBA Privilege
- Run the following commands
- Before executing the below command you have to backup/export your existing Apex applications which you need to import after Apex installation/up gradation. You don’t need to backup database schema and its objects because it will not affect to them.
1 |
SQL> DROP USER APEX_050100 CASCADE; |
- If you are not sure about your existing Apex Version, you can execute this command to make sure the current Apex version.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
SQL> SELECT USERNAME FROM DBA_USERS; USERNAME ------------------------------ MGMT_VIEW SYS SYSTEM DBSNMP ANONYMOUS XDB APEX_LISTENER ORDS_PUBLIC_USER APEX_PUBLIC_USER APEX_REST_PUBLIC_USER APEX_050100 |
- After executing the above command (dropping apex schema) run the apex installation script as shown below
- In the below command, please be noted here apex_dev_ts is my local tablespace name, replace your own tablespace name in this case.
1 |
SQL> @apexins apex_dev_ts apex_dev_ts temp /i/ |
- The above execution may take 5 to 10 mins to complete
- Now execute the below script to Reset Admin password of Apex
1 |
SQL> @apxchpwd |
- Enter Admin User Name – default Admin
- Enter Email address of Admin user
- Enter Password
- After changing admin password, now copy the Image folder from the unziped Apex file (…\apex_18.1\apex\images) and paste into the Apache Tomcat WebApps Image directory ( C:\Apache Software Foundation\Tomcat 9.0\webapps\i)
- In my case i is the virtual directory inside the directory C:\Apache Software Foundation\Tomcat 9.0\webapps\i, in your case the directory and folder name may be different.
- Now Stop TomCat Service and Start Again TomCat Service
- Now login to TomCat Manager
1 |
http://localhost:905/manager |
- Tomcat manger url may be different in your case, please replace your own port, host/ip…etc
- After launching TomCat Manager locate Commands section for Oracle Application Express Listener
- Now click the ‘stop‘ button to stop the service
- Now click the ‘start‘ button to start the service
- Now launch your application workspace url and enjoy new look of Apex 18.1
1 |
192.168.2.104:905/apexexplorer |
- Create New Workspace and import your exported Applications
Thank You
Dear kamal,
thank you for your very well explained column, I wanted to ask you if having installed jasperreintegration I have to add some changes to make it work.
Thank you.
Dario
Hi, Thanks for this article but I can not tell where is my images folder!
I mean where is the folder and how to change it ?
What a Wonderful Tutorial such that.. Thank u Lot.