How to change default port 1521 for oracle database?
NickName:Zarif Ask DateTime:2021-05-05T04:15:12

How to change default port 1521 for oracle database?

I already have oracle 11g installed in my windows. I was trying to use oracle docker image. I downloaded Oracle Database Enterprise Edition image from docker hub using

docker pull store/oracle/database-enterprise:12.2.0.1

But after that, when I try to run my container using

docker run -d -p 1521:1521 --name oracle store/oracle/database-enterprise:12.2.0.1

I get this error message

docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:1521: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

From what I understand, this is happening because my oracle 11g is already using this port. Is there any way to run my docker container without removing the locally installed Oracle 11g ?

Copyright Notice:Content Author:「Zarif」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/67391618/how-to-change-default-port-1521-for-oracle-database

More about “How to change default port 1521 for oracle database?” related questions

Docker / Oracle Database / Change Port 1521

I have set an Oracle docker image (https://github.com/oracle/docker-images/tree/main/OracleDatabase/SingleInstance/dockerfiles) which by default is running on port 1521. I would like to change the ...

Show Detail

How to change default port 1521 for oracle database?

I already have oracle 11g installed in my windows. I was trying to use oracle docker image. I downloaded Oracle Database Enterprise Edition image from docker hub using docker pull store/oracle/data...

Show Detail

How to change dbconsole connection port to oracle listener

I'm a beginner of Oracle DB and I've got some trouble when running dbconsole, here is the problem: I'm using Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Product, and I've cha...

Show Detail

How to stop oracle listening on port 1521(TNS)

There is a oracle xe edition installed on a machine. My requirement is to stop oracle from listening on the 1521 port. This port is used by the TNS system. Also i need to do this from a vb.net program

Show Detail

Oracle XE not binding on IP4 port 1521

I have an Oracle 11g XE installed in Ubuntu 12.4 and facing difficulty with getting the Oracle to bind on a TCP port. The IP6 binding seems to be fine but not the IP4 (tcp 0.0.0.0:1521). Here is the

Show Detail

Problem with estabilishing a connection on port 1521 with Oracle SQL Developer with Oracle DB on Azure cloud

My boyfriend was asked by his employer to create a VM on Azure and then to install the Oracle DB on it. This part is doable, there are many manuals on the internet. The problem is that afterwards he

Show Detail

Eclipse - Change default url in database set up

In Eclipse I have problems connecting to a local oracle database, I went through windows-perspective-database development, added the oracle djbc driver, but when I get here I can't change the

Show Detail

How do we transfer oracle port 1521 to another machine's port 9800

I want to transfer oracle A port 1521 to B 9800 with firewalld,where I can use B:9800 to visit A's oracle. I set a new tnsnames.ora which have B:9800 here is the code i test ,but it doesn't work

Show Detail

Does all the database instances or services has same listener port in Oracle?

I am trying to understand the oracle database environment in my office. In the Oracle SQL developer in my office, there are multiple connections with same port and host, but with different service...

Show Detail

unable to ping Oracle port 1521 in Azure VM but other ports are working fine

I have created a VM(RHEL -linux) in Azure and installed Oracle DB on it. I want to connect to Oracle DB using 'Oracle SQL Developer' in my Windows system. The below are the Listener and tnsnames de...

Show Detail