Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-12514 error when attempting connect remotely

alan_shiersSep 10 2014 — edited Sep 12 2014

I'm trying to connect remotely to Oracle 12c database with SQL Developer. In order to connect remotely from another computer, on the server running Oracle I opened a port in the Windows 7 Firewall. The listener.ora file, as you see below, has its default listener set to localhost. So, I created second listener called REMOTE_LISTENER, to listen on a different port than 1521. I set it instead to 1531. That part worked, but now the listener isn't letting me in due to this error ORA-12514 Listener does not currently know of service requested in connect descriptor.

Following are the setting from SQL Developer on the remote computer:

CONNECT.JPG

On the server side, this is listener.ora file:

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\Owner\product\12.1.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Owner\product\12.1.0\dbhome_1\bin\oraclr12.dll")
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(SERVICE_NAME = editor)
)
)

REMOTE_LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.19)(PORT = 1531))
(SERVICE_NAME = editor)
)
)

This is the tnsnames.ora file:

EDITOR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.19)(PORT = 1531))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = editor)
)
)

LISTENER_EDITOR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = editor)
)
)

ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)

As you can see, I did edit the tnsnames.ora file a bit to allow for a connection to the Editor database, but my edit didn't seem to fix anything. You'll notice I also set the port to 1531 to match the listener in listeners.ora file. I still can't connect with SQL Developer on the client side. I am able to connect locally with SQL Developer on the server, but I need to access the database from a different computer. I am able to connect to the database via SQL Plus on the server.

I ran lsnrctl service from the command prompt. Following is the output from that command:

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))(SERVICE_NAM

E=editor))

Services Summary...

Service "CLRExtProc" has 1 instance(s).

Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...

Handler(s):

  "DEDICATED" established:0 refused:0

     LOCAL SERVER

Service "editor" has 1 instance(s).

Instance "editor", status READY, has 1 handler(s) for this service...

Handler(s):

  "DEDICATED" established:0 refused:0 state:ready

     LOCAL SERVER

Service "editorXDB" has 1 instance(s).

Instance "editor", status READY, has 1 handler(s) for this service...

Handler(s):

  "D000" established:0 refused:0 current:0 max:1022 state:ready

     DISPATCHER \<machine: SHIERS-PC, pid: 1580>

     (ADDRESS=(PROTOCOL=tcp)(HOST=Shiers-PC)(PORT=49367))

Service "pdborcl" has 1 instance(s).

Instance "editor", status READY, has 1 handler(s) for this service...

Handler(s):

  "DEDICATED" established:0 refused:0 state:ready

     LOCAL SERVER

The command completed successfully

As you can see, it does show a service instance named "editor". Problem is, it doesn't say what port. You'll also notice a service named "editorXDB". Where that came from, I don't know. That certainly is not in the tnsnames.ora file, and every time I run the lsnrctl services command the port number changes. Anyway, that part, I think, is a red herring. I've been spinning my wheels on this one for several days now. If someone can help me with the necessary steps to ensure connection from a remote computer via SQL Developer, it would be greatly appreciated.

This post has been answered by EdStevens on Sep 11 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2014
Added on Sep 10 2014
14 comments
4,769 views