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!

Couldn't connect to Oracle12c on Solaris from Toad

user2635268Apr 4 2016 — edited Apr 7 2016

Hi,

I have just installed an Oracle 12c on Solaris10 and I'm trying to connect to the this DB using TOAD on a windows machine but everytime I do that I get an error:'ORA-12505: TNS:listener doesn't not currently know of the SID given in connect descriptor.'

I can connect and start, shutdown the db just fine from the Solaris machine's sql plus. I have also verified that the listener is up and running.

Following are the contents from my listener.ora file:

# listener.ora Network Configuration File: /bkofa/oracle/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora

# Generated by Oracle configuration tools.

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = afxortsts)(PORT = 1523))

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

    )

  )

Here are the contents from my tns.ora file:

# tnsnames.ora Network Configuration File: /bkofa/oracle/app/oracle/product/12.1.0/dbhome_1/network/admin/tnsnames.ora

# Generated by Oracle configuration tools.

ORCL12 =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = afxortsts)(PORT = 1523))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = orcl12)

    )

  )

And these are the results from the lsnrctl status command:

LSNRCTL for Solaris: Version 12.1.0.2.0 - Production on 02-APR-2016 14:00:29

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=afxortsts)(PORT=1523)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Solaris: Version 12.1.0.2.0 - Production

Start Date                02-APR-2016 09:50:01

Uptime                    0 days 4 hr. 10 min. 28 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /bkofa/oracle/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora

Listener Log File         /bkofa/oracle/app/oracle/diag/tnslsnr/afxortsts/listener/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=afxortsts)(PORT=1523)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

The listener supports no services

The command completed successfully

bash-3.2$

Please help me how can I connect to oracl from toad.

Thanks.

This post has been answered by Supriyo Dey on Apr 4 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2016
Added on Apr 4 2016
13 comments
2,166 views