Solved

Oracle XE will not come up properly

Posted on 2009-04-03
9
1,200 Views
Last Modified: 2013-12-18
I have installed the free version of Oracle (10G) onto my REHL 5 system. Everything installed without a hitch (other than having to increase my swap space). Then .... nothing.

I cannot connect to the web page  http://127.0.0.1/apex . So I looked around and I found this buried entry:
" With the production version of Oracle XE the default is to not allow remote access to the web server.  This sometimes causes even local access to not work.  To fix run the following as sys:
exec dbms_xdb.setListenerLocalAccess(false);
Access to the web server will now be enabled."

So now I want to log into sqlplus to run that command. After setting up ORACLE_HOME, ORACLE_SID AND ORACLE_BASE in my bash profile - because sqlplus will not start without these manual entries - I receive the following error message when loging into sqlplus:

">sqlplus system

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Apr 3 14:25:59 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist"


Anyone have any idea what the next step is or how to proceed from here?
0
Comment
Question by:mcorsi62
  • 2
  • 2
9 Comments
 

Author Comment

by:mcorsi62
ID: 24063359
UPDATE:

I can now get into sqlplus (the SID is not the normal oracle default ORCL it is XE), however their webbased admin tool still refuses to launch. (Even though I ran the stored procdure :

exec dbms_xdb.setListenerLocalAccess(false);

Any ideas? Does anyone know where I can find an error log that might give me some more information? From the command line, everthing appears to be honky dory. The page simply will not load.
0
 
LVL 47

Expert Comment

by:schwertner
ID: 24084346
To see what you have done check first if the firewall is off.
If you have installed the product by rinning firewall you have to do
the installation again.
After that go to Control Panel ---> administrative Tools ---> Services
and check if the Listener and the Oracle service are running.
start them.

Check the listener from command prompt:

lsnrctl status
lsnrctl services

Now try to logon using SQL*Plus.
0
 

Author Comment

by:mcorsi62
ID: 24084418
Couple of things.....

This is a linux machine. I think your directions are  for windows, but I am not in front of my box right now so maybe I am wrong and Red Hat added the GUI tools you mentioned. (I am a command line kind of guy for the most part).

... and yes, the listener is running and I am now able to log into SQL *Plus. However, the web based tool:
http://127.0.0.1/apex    is still unavailable. The page will not load.

Also, I am on the machine itself, so I am not sure what your question about the firewall being off means. This server runs other externally available services including HTTP, SMTP, POP etc... and these are all available both on the machine as well as remotely.
0
 
LVL 47

Accepted Solution

by:
schwertner earned 500 total points
ID: 24085858
Of course!
To launch APEX (this is for Oracle 11g, but read the list!):


1.To enable Oracle XML DB HTTP server:
connect sys/reksreks@bugf as sysdba
EXEC DBMS_XDB.SETHTTPPORT(8080);
COMMIT;

To disable Oracle XML DB HTTP server:
EXEC DBMS_XDB.SETHTTPPORT(0);
COMMIT;


2.To configure the embedded PL/SQL gateway:
 
@ ?/apex/apxconf

login as: oracle
oracle@oralin1.bg.icw.int's password:
Last login: Fri May  9 17:22:21 2008 from shvertner.bg.icw.int
[oracle@oralin1 ~]$ mc

[oracle@oralin1 u03]$ sqlplus /nolog

SQL*Plus: Release 11.1.0.6.0 - Production on Sat May 10 12:20:23 2008

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

SQL> connect sys/reksreks@bugf as sysdba
Connected.
SQL> @ ?/apex/apxconf

      PORT
----------
      8080

Enter values below for the XDB HTTP listener port and the password for the Application Express ADMIN user.
Default values are in brackets [ ].
Press Enter to accept the default value.


Enter a password for the ADMIN user              [] reksreks
Enter a port for the XDB HTTP listener [      8080]
...changing HTTP Port

PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


Session altered.

...changing password for ADMIN

PL/SQL procedure successfully completed.


Commit complete.

SQL>


3.Unlock the ANONYMOUS account:

SQL> ALTER USER ANONYMOUS ACCOUNT UNLOCK;

User altered.

SQL>


4. Access Oracle Application Express

http://oralin1:8080/apex

http://oralin1:8080/apex/apex_admin   ----> Administrator Page

Administrator Page:
User: admin
pass: reksreks

Version: Application Express 3.0.1.00.08
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best RAID for a BDD Oracle 4 71
How can I rollback insert statements after commit in oracle? 7 150
selective queries 7 33
Select and Insert Query running slow 4 38
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question