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!

Cannot Connect to Local Oracle Database on Mac OS X

718116Aug 20 2009 — edited Sep 3 2009
Hello,

I was finally able to successfully install Oracle 10g on my Mac Pro workstation.

Following the installation, I used this command to start the listener:

lsnrctl start

and it responded with this, so I think it started correctly:

LSNRCTL for MacOS X Server: Version 10.2.0.4.0 - Production on 20-AUG-2009 08:20:09

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

Starting /Users/oracle/oracle/product/10.2.0_db_1/bin/tnslsnr: please wait...

TNSLSNR for MacOS X Server: Version 10.2.0.4.0 - Production
System parameter file is /Users/oracle/oracle/product/10.2.0_db_1/network/admin/listener.ora
Log messages written to /Users/oracle/oracle/product/10.2.0_db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for MacOS X Server: Version 10.2.0.4.0 - Production
Start Date 20-AUG-2009 08:20:09
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /Users/oracle/oracle/product/10.2.0_db_1/network/admin/listener.ora
Listener Log File /Users/oracle/oracle/product/10.2.0_db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully



However, when I tried to connect from the command line via SQL Plus, or using the SQL Developer GUI, it won't connect. SQL Developer says "ORA-12505, TNS:listener does not currently know of SID given in connect does not currently know of SID given in connect descriptor The connect descriptor ussed by the client was: localhost:1521:ORCL"


When I look at my tnsnames.ora file I see this:

ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)


I see the ORCL service there.

So, it seems that I have a TNS Listener started, but for some reason I can't connect to the ORCL service. Can anybody tell me how to connect to the ORCL service?

Thank you!!!!

-Ryan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2009
Added on Aug 20 2009
34 comments
9,490 views