I received some queries lately from various users regarding unable to open page http://localhost:8080/apex or http://127.0.0.1:8080/apex. The linux environment reported was Ubuntu and here is how to solve this error:
Let’s start googling i found SOLUTIONS is:
corrected hostname = localhost host to the first listed host = franzeastlaptop
Completion, let us try to Reload the Oracle : Open command prompt and execute the following command:
sudo /etc/init.d/oracle-xe reload
Shutting down Oracle Database 10g Express Edition Instance.
Stopping Oracle Net Listener.
Starting Oracle Net Listener.
Starting Oracle Database 10g Express Edition Instance.
This command will reload the database and settings. (If you are using SQL Plus session connection with database be sure to save all your data as the above command will restart the database.)