Solved

Oracle XE will not come up properly

Posted on 2009-04-03
9
1,182 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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Left Justify field in Oracle 6 70
Invalid Identifier Error 3 65
Oracle PL/SQL syntax 4 52
report returning null 21 52
Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now