Cannot connect Oracle ldap server(OID) in a virtual machine through JDBC

Wendy

I set up an Oracle with LDAP (OID) in an virtual machine, create a user named "qa1user" authenticated through LDAP server.

Check with SqlPlus in VM and successfully logon to Oracle:

sqlplus qa1user/xxxx

Then I port forwarding these ports as:
LDAP server port: 3060 --> 4060,
Oracle port: 1521 --> 11521

and could also logon to Oracle on the host where VM resides.

sqlplus qa1user/xxxx@localhost:11521/orcl 

Question:

I can not connect to LDAP through JDBC:

jdbc:oracle:thin:@ldap://127.0.0.1:4060/orcl,cn=OracleContext,dc=phl,dc=sap,dc=corp

and UserName is:

cn=qa1user,cn=Users,dc=phl,dc=sap,dc=corp

See the screen shot about OID configuration and errors.

OID user configuration

Cannot connect outside VM

Wendy

Finally, I know the root cause. There's one listener running on my local machine, also listening on the port 1521, which counld not identify the database running in the VM. Shutdown it, and then everything is OK.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Cannot connect to VMWare virtual machine through NAT

From Java

Oracle JDBC cannot connect as sysdba user

From Dev

Oracle JDBC cannot connect as sysdba user

From Dev

Let Raspberry Pi connect to internet through Ubuntu in virtual machine

From Dev

JDBC : Connect to Oracle DB through tnsname strange error

From Dev

"Cannot connect to the virtual machine." for new Hyper-V Virtual Machine

From Dev

Connect Robomongo to Virtual Machine

From Dev

sendmail through virtual machine

From Dev

Cannot open a virtual machine

From Dev

Not able to connect to Oracle JDBC

From Dev

JDBC Cannot connect to mysql

From Dev

Need to connect to the internet from private Virtual Machine on the cloud through a local server with internet access

From Dev

connect to virtual machine fro windows machine

From Dev

Connect Hive through Java JDBC

From Dev

How to connect to mysql through jdbc

From Dev

Oracle Java Virtual Machine install?

From Dev

Oracle Java Virtual Machine install?

From Dev

Cannot open virtual machine in VMware

From Dev

How to connect JDBC to tns oracle

From Dev

Connect to an oracle database with doctrine using the OID LDAP

From Dev

Docker cannot connect to the host machine

From Dev

cannot connect intelliJ with Docker Machine

From Dev

Can't connect to DB in virtual machine

From Dev

How to use Putty to connect to a virtual machine?

From Dev

How to connect to hadoop virtual machine of different computer?

From Dev

Can't connect to a server(Google Virtual Machine)

From Dev

Can't connect to DB in virtual machine

From Dev

Connect Windows virtual machine to my local network

From Dev

Not able to connect with Linux virtual machine on Azure

Related Related

HotTag

Archive