Thursday, July 3, 2008

OracleXETNSListener colud not be started

I have been using Oracle XE for months and suddenly one day I could not connect to the database. I found that the listener was not running and I attempted stop and then start the listener through the menu options(Programs->Oracle 10g Express Edition->Start Database,StopDatabase). The listener did not start.

I found many forums that talked about the same issue. Different solutions worked for different people. I tried all the solutions that were recommended but none of them really fixed my problem. One of the forum recommended reinstalling OracleXE. (Note: reinstalling will wipe out any database that you already have on XE). There are instuction to get around this problem, see Oracle XE Installation instructions for more info. So I decided to reinstall Oracle XE but it is not as straight as one might think. Here are the steps that I followed

1. login to the machine as administrator (this seems to be very important). You may be thinking your domain account as local administrator rights. That doesn't really matter. Oracle requires you to login as adminstrator of the machine.

2. Run Oracle XE setup exe. You will be prompted to either Repair or Remove. Choose Remove.

3. Complete the remove process.

4. Open Environment variables (My Computer->Properties->Advanced->Environment Variables)

5. Remove ORACLE_HOME and ORACLE_SID system variables (This is very important. My previous attempt without this step did not fix my problem)

6. Reboot the machine. (one more important step)

7. Log in as administrator

8. Install Oracle XE

That's it! You should be able to open Oracle Home.

Drop couple of lines if this worked for you.

Thursday, June 5, 2008

Cannot open Oracle XE database home page

Sometimes when you install Oracle XE on your desktop and try to access the home page through the internet explorer, it may not open and IE displays an error page. There are two things that seem to fix the problem

1. When you install Oracle XE on your desktop, login as local administrator instead of your company domain account. The install instruction says as long your domain account has administration rights on the computer it will work. But that's not the case when I installed XE. So I uninstalled oracle xe, logged off as domain user, logged back-in as local adminstrator.

The username for local administrator is usually "administrator." If you don't remember the password, you can just reset it by logging in as domain user.

If you are trying to open the database home from a different machine than the machine running Oracle XE, you may want to do the following

1. Make sure remote connection is allowed to this database. For that you will have to goto the machine where the database is running and change the setting. The option is available under administrative task.

2. Also make sure the firewall is not enable on machine where the database is running. If the firewall is enabled, it may block the calls to communicate with the database. Chaning the fire wall settings is very easy. Select the LAN connection properties. Click advanced tab and then click settings. Here you can enable\disable firewall.