When you install Oracle 11g or 12cR1, an older version of Apex is pre-installed. It is highly recommended to upgrade it to the latest version.
Go to apex.oracle.com and download the latest version of Apex.
Follow the documentation for the specific version to install it.
Important Documentation Link for Recent Three Release
If you are Oracle Apex Developer then visit Denes Kubicek Demo Application once which solves your many problems.