How to connect to a local server in Oracle SQL Developer like SQL*Plus with no TNSlistener

oracleoracle-11g-r2oracle-sql-developer

How can I use SQL Developer to connect to a local Oracle 11g server? I didn't enable TNS Listener, but SQL*Plus works well.

@update1:


I copied all *.jars from $ORACLE_HOME/app/product/11.2.0/dbhome_2/jdbc/lib/ to jdbc directory in SQLDeveloper

And I get error: no ocijdbc11 in java.library.path

So I traced down sqldeveloper.sh , and add some parameters to it:

modified script to add library path

However , another error discovered:

error dialog B

Certain wired string kept changing each time i connect

@update2:


If only I add

export CLASSPATH=$CLASSPATH:/Application/Binaries/oracle_11g/app/product/11.2.0/dbhome_2/jdbc/lib

I'll get the following error:

error when all jdbc libraries added

Best Answer

In SQL Developer, use the Local/Bequeath connection type:

New connection dialogue