I found two files:
listener.ora and LISTENER.ORA
Which one should i edit? I will go with the small cases one. However, what is the different
between them?
Main Topics
Browse All TopicsFirst of all, i have Oracle 10g installed in my PC, so i'm just connecting to the db locally for educational purposes. I always logon as SCOTT.
Ok, I have Oracle 10g already installed long time ago. I used to access it via SQL Developer, now i moved to new place so the IP is changed, i can't connect with SQL Developer! Even though I can not connect to the Database via SQL Developer, i can connect to the database via SQL*Plus successfully. Also, I can connect as sysdba from SQL*Plus.
The error i get in SQL Developer, "Socket is not connected".
Here is my problem:-
I downloaded TOAD, i put username as SCOTT and password 123456.
In "Database" field there are:
- EXTPROC_CONNECTION_DATA
- ORCL
In the white box at the left side, there is nothing.
In "Connect Using" list, there are:
- (Oracle Root)
- OraDb10g_home1
I entered username as SCOTT and password as 123456. "Database" set to ORCL. "Connect Using" is OraDb10g_home1. I get this error:
ORA-12545: Connect failed because target host or object does not exist
--------------------------
Afterwords, i did:
C:\Users\User>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on
009 02:58:28
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
D:\oracle\product\10.2.0\d
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
PC.gateway.2wire.net)(PORT
E_NAME = orcl)))
TNS-12545: Connect failed because target host or object does not exist
C:\Users\User>
--------------------------
As you see i don't get any IP back: TNS-12545: Connect failed because target host or object does not exist
**************************
Extra Info:
Here is my Oracle 10g Enterprise installation info:
I have installed this version "Oracle Database 10g Release 2 (10.2.0.3/10.2.0.4) - Enterprise Edition for Microsoft Windows Vista and Windows 2008".
username: scott
password: 123456
host string:
Global DB Name: orcl
System Identifier (SID): orcl
Server Parameter Filename: D:\oracle\product\10.2.0\d
**************************
Any help will be appreciated.
Regards
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I edit them with my local IP 192.168.0.105
I typed the command, i get this error:
C:\Users\Fahmi>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 - Production on 13-OCT-2009 16:13
:22
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
--------------------------
I tried to connect via TOAD, i get this ORA-12541 TNS:No Listener
C:\Users\USER>lsnrctl start LISTENER
LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 - Production on 13-OCT-2009 16:19
:20
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
--------------------------
C:\Users\USER>lsnrctl stat
LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 - Production on 13-OCT-2009 16:18
:13
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PRO
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PRO
)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
The listener was disabled. I made it automatic and started it. I get this:
C:\Users\Fahmi>lsnrctl stat
LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 - Production on 13-OCT-2009 16:38
:51
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PRO
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Produ
ction
Start Date 13-OCT-2009 16:37:56
Uptime 0 days 0 hr. 0 min. 55 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\oracle\product\10.2.0\d
ra
Listener Log File D:\oracle\product\10.2.0\d
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PRO
(DESCRIPTION=(ADDRESS=(PRO
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
--------------------------
I tried to connect via TOAD, i get this error:
ORA-12514:
TNS:listener does not currently know of service requested in connect descriptor
I will try to figure it. Thanks for help...
>>The listener was disabled. I made it automatic and started it. I get this:
Which is not what I suggested you do. You didn't mention what changed or what you tried.
It looks like your listener has now started, but the Oracle instance isn't registered. Normally it registers on its own, after a bit, but if it is not, try to add a static entry for the SID into listener.ora and restart.
Sample below uses DEV as the instance.
Worked!
I replaced this:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\d
(PROGRAM = extproc)
)
)
with
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\10.2.0)
(PROGRAM = extproc)
)
(SID_DESC =(SID_NAME = ORCL))
)
Thanks.....
Is
Business Accounts
Answer for Membership
by: mrjoltcolaPosted on 2009-10-13 at 07:58:06ID: 25560659
If by moving to a new place you mean your laptop was using a dynamic IP address, then that is the problem.
Oracle needs to be setup using a static IP or localhost.
Try editing your listener.ora and tnsnames.ora and setting all IPs /hostnames to localhost, then restart and see if that works.
SQL Developer does not use tnsnames.ora so that tells me your listener config is the main thing that messed up. Toad can also connect without tnsnames. So focus on fixing your listener.
After editing the listener.ora, you stop and start the listener
lsnrctl stop
lsnrctl start