Question

Just out of curiosity, a few days ago we had a discussion about whether there is a way to connect to the DB without using TNS Listener, the connection must be made by any program SQLPlus. Net, ODBC, and so on.

Was it helpful?

Solution

Basically only local connections can avoid the listener (ie you have to be already logged on to the machine that the database instance is running on).

Rather than relying on a listener to fork out a process to act on behalf of the connection, this is done by the local process. Generally it means that the local user needs to be run as 'oracle' as well. Sort of equivalent to a console logic.

OTHER TIPS

It appears there isn't one magic bullet, but there are several ways.

For ODBC, have a look at this SO question.

There's a lot of good info at Connectionstrings.com/oracle as well.

You connect to Oracle via a client, such as sqplplus, or a java program (or tool) utilizing a protocol such as SQL*NET or JDBC (as examples) through the listener. The listener in turn forks a process on the target database (or assigns the connection to an existing process if you use shared servers).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top