Installing APEX Tutorial
Prior to training, we’ve found it really useful that developers install Oracle APEX and Oracle XE locally. Not only does this give them a safe environment in which to experiment, but it gives them an understanding of what Oracle APEX actually is. They can use this knowledge to help support our customer installations and in investigation of any setup or installation issues that we have.
The following step-by-step instructions have been followed successfully by many developers now and we’ve got the installation time down to well under two hours, including configuration. These instructions refer to APEX 3.0.1 but could be used for APEX 3.1 or later releases. You need to download Oracle XE and the latest release of APEX.
1 – Create a new folder on your C: drive called Apex and copy the Oracle XE executable and APEX zip file there.
2 – Right click on Apex_3.0.1.zip and select Extract Files. Ensure the path is C:\Apex\apex_3.0.1 and hit OK. (This is probably a good point to get a coffee as it takes a couple of minutes.)
Note: C:\Apex\apex_3.0.1 is your Apex Home directory for this installation.
3 – First install Oracle XE. This will create a local database on your PC with the SID XE which will have APEX 2.1 automatically installed. To do this double click on OracleXEUniv.exe.
4 – Follow through the windows by clicking Next, I Accept, Next until you’re asked for a password. This is the password for the system user, enter manager in both fields and click Next.
5 – Before clicking Install, take a note of the port for the listener and HTTP server. These should be 1521 and 8080 respectively, but may be different if these ports are already in use on your PC. Now click Install and Finish when the install is completed.
6 – Now we’ll upgrade APEX to version 3.0.1. First log into SQL*Plus on your XE database as sysdba. To do this, you’ll need to set up a new tnsnames entry for the database or you can click Run SQL Command Line through the Windows start bar. The IP address will be 127.0.0.1, the port is the TNS listener port you recorded in step 5 (probably 1521) and the SID is XE. When you log into SQL*Plus you will need to type conn system/manager@XE as sysdba at the prompt.
7 – You’ll need to create two new tablespaces for the installation. In SQL*Plus type the following:
CREATE TABLESPACE APEX datafile ‘C:\oraclexe\oradata\XE\APEX.dbf’
SIZE 500M
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO;
CREATE TABLESPACE APEX_FILES datafile ‘C:\oraclexe\oradata\XE\APEX_FILES.dbf’
SIZE 100M
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO;
8 – Set your working directory in SQL*Plus to C:\Apex\apex_3.0.1\Apex. Do this by opening the file C:\Apex\apex_3.0.1\Apex\apxsqler.sql. Now at the prompt type the following:
@apexins htmldb APEX APEX_FILES TEMP /i/
This takes a couple of minutes to install, but there is pretty output to watch scroll past. When it’s done it will close SQL*Plus.
9 – Now check the log file created for errors (they’re usually at the end of the file, so this is a good place to start). The log file will be created in C:\Apex\apex_3.0.1\Apex. Only if there are errors, remove everything done in step 8 by logging into SQL*Plus as sysdba and issuing the following command:
DROP USER FLOWS_030000 CASCADE;
You’ll then need to correct whatever caused the errors.
10 – Log back into SQL*Plus as sysdba and open C:\Apex\apex_3.0.1\apex\apxsqler.sql again. Now type the following:
@apxldimg.sql C:\Apex\apex_3.0.1
(This loads the images into the Oracle XE database).
Then when this has finished type:
@apxxepwd.sql htmldb
(This sets the APEX password for the Admin user).
When this has run the installation is complete!
Configuring Your Internet Browser
You’ll need to make a small change to your Internet browser to run APEX on your XE database. Depending on your favourite browser you’ll need to do one of the following:
Configuring for Microsoft Internet Explorer
To configure Microsoft Internet Explorer to connect to the Oracle Database XE Database Home Page:
- From the Start menu, select Control Panel, then Internet Options.
- In the Internet Options dialog box, click the Security tab.
- Under Security, select Local Intranet and then select Sites.
- In the Local Intranet dialog box, select Advanced.
- Under Add this Web site to the zone, enter the following site: 127.0.0.1
- Click OK.
Configuring Netscape Navigator or Mozilla
To configure Netscape Navigator or Mozilla to connect to the Oracle Database XE Database Home Page:
- From the Edit menu, select Preferences.
- Under Category, click the Advanced category to expand it, and then select Proxies.
- If you are using a proxy server, add the following setting to the No Proxy For setting: 127.0.0.1
- Click OK.
Configuring Firefox
To configure Firefox to connect to the Oracle Database XE Database Home Page:
- Under the Tools menu, select Options.
- From the General tab, select Connection Settings.
- If you are using a proxy server, add the following setting to the No Proxy For setting: 127.0.0.1
- Click OK.
Running and setting up APEX
1 – You should now be able to run APEX on your PC. The url will be something like http://127.0.0.1:8080/apex where 8080 is the port of the HTTP server noted in step 5 of the XE installation.
2 – You should see a login screen. To start with, login with the following credentials:
Workspace – internal
Username – Admin
Password – htmldb
3 – This will take you to the admin area. You’ll need to create a workspace which contains the sample application. First we need to check that the sample application will automatically be created. To do this click Manage Service then Feature Configuration. The option ‘Create demonstration objects in new workspaces’ should be set to Yes. If it isn’t, select Yes and then Apply Changes, otherwise click Cancel.
4 – Now select Manage Workspaces and Create Workspace. The workspace name should be TRAIN, then click Next.
5 – The first option should be No, the schema name should be TRAIN and the schema password should be train (just to make things easy!). Set the space quota to 10 and click Next.
6 – Now set the Admin password to htmldb and enter your email address in the last field. The email address isn’t used for anything but Oracle have set it to mandatory, so you need to put something in here. Now click Next, then Finish and Done on the final screen. Now you can log out.
7 – Don’t worry, this is the final bit, then you can have a play. Now log back in using the following credentials:
Workspace – TRAIN
Username – Admin
Password – htmldb
You’ll see there are three options, Application Builder, SQL Browser and Utilities. If you click on the Application Builder icon, you should have one Sample Application listed. If you click on this it will display the pages in that application and clicking Run Application will run it. The username and password are Admin and train. Check that the application runs successfully.
Follow these instructions to install Oracle XE and upgrade APEX to 3.0.1, configure your web browser and create a new workspace in APEX with the sample application installed. Tutorials on this site assume that you have either followed these steps or already have a workspace with the sample application installed.

Ive installed Apex 3.01 on 10g in Linux. However, when ever I start the Oracle Http server configured with a dad to access the 10g db where I installed Apex, i get the error http-503 ORA-604.
Does anyone have any idea how to resolve this ?
I have looked all over the web and no one seems to have reported this error with Apex and 10g . I dont know why im gettign the error as the Apex installation went fine without event.
installing on vista business.
make sure your directory structure is like this c:\oraclexe\apex
and NOT c:\oraclexe\apex\apex_3.1.1
the apxldimg.sql script won’t work if so
once I changed the dir structure to “c:\oraclexe\apex” it worked. took me like 2 hrs to get this. all cuz my zip extractor added another sub-directory.
Instructions say to extract to :
C:\Apex\apex_3.0.1
But then further instructions say to set your working directory to :
C:\Apex\apex3.0.1\Apex
There is an underscore missing on the 2nd section, which will cause none of the scripts to work.
“8 – Set your working directory in SQL*Plus to C:\Apex\apex3.0.1\Apex. Do this by opening the file C:\Apex\apex3.0.1\Apex\apxsqler.sql”
The apxsqler.sql script doesnt set your working directory at all.
It sets SQLPLUS to exit whenever an error occurs and nothing else.
It appears there are problems with the tablespaces created in step 7, as when running the script in step 8, you get :
alter user FLOWS_030100 default tablespace htmldb
*
ERROR at line 1:
ORA–00959: tablespace ‘HTMLDB’ does not exist
alter user FLOWS_030100 temporary tablespace APEX_FILES
*
ERROR at line 1:
ORA–10615: Invalid tablespace type for temporary tablespace
Hi Scott
Thanks for spotting the missing underscore I’ll correct that now.
You’re right the apxsqler.sql file doesn’t set your working directory. It is the act of opening the file that sets the working directory. You could have selected any file from this directory.
From the error you are receiving it looks like you are installing Apex 3.1 not Apex 3.0.1. There isn’t a problem with the tablespaces that you’ve created, the error you are receiving is because Oracle have changed the number of parameters that are passed to the apexins script.
If you are installing Apex 3.1 instead of entering
@apexins htmldb APEX APEX_FILES TEMP /i/
instead enter
@apexins APEX APEX_FILES TEMP /i/
Regards
Sara
Hallo,
I follow step to step to instal apex, but i cant sie the images, javascript, css,…. on the website of apex
what have i made wrong ?
Hi Sinan
It sounds like the images haven’t been loaded correctly, which is step 10 above. Check that you have completed this step and no errors occured. If you are installing APEX 3.1 then command is likely to be @apxldimg.sql C:\Apex\apex_3.1
Regards
Sara
Hello, I am currently trying to install APEX on my machine to test and develop. I currently have another 10g database installed, but no running since I do not want it to conflict with my instance of XE. Now, the tablespace created without errors fine, but when I try to run the line
@apexins APEX APEX_FILES TEMP /i/
in SQLplus it just exits SQLplus and doesn’t leave any log file for me to track the problem… please help!
Hi Cody
You need to be logged in as sysdba to run this script. Can you try running the script again making sure you are in as sysdba.
The APEX installation will exit without creating a log file if you are not logged in as sysdba, you haven’t got Oracle Text installed or you haven’t got XDB installed. As you are running this on an XE database the second two shouldn’t be an issue. So the only thing I can think is that you’re not logged in as sysdba.
Regards
Sara
Oh I see that worked, I didn’t know there was any difference between system and sysdba as it doesnt have a sysdba user once i connected with the conn as sysdba it worked. Thank you
http://127.0.0.1:8080/apex
I could not start apex by entering the
Workspace – internal
Username – Admin
Password – htmldb
********
DROP USER FLOWS_030000 CASCADE; –This user doesn’t exist. It’s a message error I received…
Please anyone to help how to really install apex successfully?
Regards!
Gaspal Douo
Hi Gaspal
If you have installed APEX 3.1 then you will need to drop user flows_030100 instead, this will uninstall APEX from your database.
What error do you get when you try to log in? If it doesn’t do anything and the images aren’t displayed correctly on screen, then it could be that step 10 above failed. In this case, you could try loading the images again as discribed in step 10 to see if this resolves your problem.
Regards
Sara
I had a problem with images(they didnt load),but now everything works great. Thank you for help:)
Thank you for the instructions. I have been fighting with this install for 5 days now. You need a lawyer to decipher the Oracle documentation. I followed your instructions to the letter and now I am finally using 3.1.2
Dave