Connect to an Oracle database without using a TNS receiver

Just out of curiosity, a few days ago we discussed whether there is a way to connect to the database without using the TNS Listener, the connection should be performed by any SQLPlus program. Net, ODBC, etc.

+3
source share
3 answers

Basically, only local connections can avoid the listener (i.e. you should already be registered on the computer on which the database instance is running).

Instead of relying on the listener to deploy the process to act on behalf of the connection, this is done by the local process. Typically, this means that the local user should be run as an "oracle." An example of equivalent console logic.

+2
source

There doesn't seem to be a single magic bullet, but there are several ways.

For ODBC, see this SO question.

There's a lot of good stuff at Connectionstrings.com/oracle .

0
source

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

-1
source

Source: https://habr.com/ru/post/1778586/


All Articles