aspose file tools*
The moose likes Oracle/OAS and the fly likes Two listeners running: Port 8080 and Port 1521 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Two listeners running: Port 8080 and Port 1521" Watch "Two listeners running: Port 8080 and Port 1521" New topic
Author

Two listeners running: Port 8080 and Port 1521

Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Good day all and thanks for viewing my post.
I installed Oracle 11gXE 32 bit installation on a Windows 7 x64 platform. I have had no problems connecting to the database using Sql Developer; everything seems to be running fine. However, when the listeners are started, in the Resource Monitor I see the following: IPv4 shows two instances running on Port 8080 and Port 1521. IPv6 shows two instances running on Port 8080 and Port 1521.

I modified the tnsnames.ora and the listener.ora files as follows:

**** tnsnames.ora ****
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Experian-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)

and

**** listener.ora ****
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Experian-PC)(PORT = 1521))
)
)

DEFAULT_SERVICE_LISTENER = (XE)

How can I get Oracle to use only port 1521? Is there something else I need to do? I need port 8080 for JBoss Application Server.

Thank you for your help!
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1479
    
  11

By default, Oracle XE installs with the usual port 1521 for the listener, but also uses port 8080 for the built-in web server in the database, which is used by tools like XMLDB or APEX. You can change the HTTP port easily via a packaged procedure:

http://www.sachinmore.com/2006/11/change-default-port-8080-in-oracle-xe.html


No more Blub for me, thank you, Vicar.
Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Hi Chris, thanks for your reply.

I did as instructed per the link you provided, however, it just created another listener on port 22 (I meant it to be 1522). Please see the attached image (cmd window and resource monitor window) which you can see that I now have three listeners. How can I get rid of port 8080 and modified 22 as 1522?

Thanks for your feedback.



[Thumbnail for Listeners.PNG]

chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1479
    
  11

Just use the same technique to set the HTTP port to 0.
Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Thanks Chris, I'll give it a try. But I'm confused how will I keep the port 1521 and get rid of port 8080? How do I identify getting rid of the listener running on port 8080? The command only show how to set a port, not modify. Sorry, am I missing something?
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1479
    
  11

The package only changes the HTTP port in the database. It doesn't affect the TNS listener. Just set the HTTP port to 0, which turns off the HTTP listener, or set it to e.g. 8081 so it doesn't conflict with your Java server. You should still be able to connect to the DB via the usual Oracle port 1521.
Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Got it...thanks Chris!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two listeners running: Port 8080 and Port 1521
 
Similar Threads
ORA-12541: TNS:no listener
Unable to connect to oracle instance using listener
Problem to run Oracle9i after installed in Windows2000 professional?
Oracle Toplink Workbench - ORA-12505, TNS:listener error
Listener refused the connection with the following error: ORA-12505