Question

oracle sqldeveloper network adapter issue - can not connect. Any troubleshooting ideas to make this work?

Asked by: epifanio67

Hello experts,

I open SQLDEVELOPER GUI and try to connect to Oracle (host); but I am getting a network adapter issue... any ideas how I can troubleshoot this?

thx

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-08-06 at 15:25:48ID24633268
Topic

Oracle 11.x Database

Participating Experts
2
Points
500
Comments
16

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

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.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

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.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

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.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Oracle Internet Directory troubleshooting
    I have recently installed Oracle 9iAS, release 2 and am trying to configure Portal. I can't get past the Single Sign On. When I try to login to Portal, I get this message on the Single Sign-On web page: Error: There is an error in the setup of the directory used for authent...
  2. Installation of Oracle on loopback adapter
    I have installed oracle on loopback adapter. I have confusion regarding its use - 1. Will I be able to use all the features of oracle installed on loopback adapter, compared to those available to the one installed on domain server? 2. What is the actual difference in inst...
  3. EMAIL - Troubleshooting steps?
    Hi, I'm trying to put together a logical list of steps to troubleshoot the sending of email from APEX/PL/SQL. If I come to a APEX environment that is new to me and the email doesn't work what steps should I do to find the problem? I'm not the DBA on the project but I usually...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

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.

Join the Community

Answers

 

by: mrjoltcolaPosted on 2009-08-06 at 15:30:56ID: 25038725

Can you show the parameters you have used?
Did you provide these 3?

1) hostname
2) port
3) SID

Can you ping the hostname from the command line?

 

by: epifanio67Posted on 2009-08-06 at 15:39:53ID: 25038779

hey mrjoltcola...

thx so much

1. localhost.localdomain
2. 1521
3. DEMO11

all system wide variables are set correctly
:-)

 

by: mrjoltcolaPosted on 2009-08-06 at 15:43:56ID: 25038804

Ok. Your listener may not be up. Did you configure a listener when you setup your local database? If so, is it started?

Is this Windows or UNIX?

From DOS or UNIX prompt list the services:

lsnrctl services

 

by: epifanio67Posted on 2009-08-06 at 16:47:41ID: 25039053

thx mrjoltcola...

the local database DEMO11 was configured during initial install.
I am on the same machine where Oracle resides.
OS: centOS 5.3

see command results:

the weird part of all this is that the DB has been working ok for days... now, all of sudden I am having problems... this morning when I logged in, problems started... no changes made to it at all....

#ORACLE_HOME/bin
 
[oracle@localhost bin]$ lsnrctl services
 
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 06-AUG-2009 16:44:59
 
Copyright (c) 1991, 2007, Oracle.  All rights reserved.
 
TNS-01150: The address of the specified listener name is incorrect
 NL-00303: syntax error in NV string
[oracle@localhost bin]$ 
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:

Select allOpen in new window

 

by: epifanio67Posted on 2009-08-06 at 17:12:45ID: 25039136

weird... I just tried to start lsnrctl
see what I got:

[oracle@localhost bin]$ lsnrctl start
 
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 06-AUG-2009 17:08:06
 
Copyright (c) 1991, 2007, Oracle.  All rights reserved.
 
Starting /opt/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait...
 
TNSLSNR for Linux: Version 11.1.0.6.0 - Production
System parameter file is /opt/oracle/product/11.1.0/db_1/network/admin/listener.ora
Log messages written to /opt/oracle/product/diag/tnslsnr/localhost/listener/alert/log.xml
TNS-01150: The address of the specified listener name is incorrect
 
Listener failed to start. See the error message(s) above...
 
[oracle@localhost bin]$ /opt/oracle/product/diag/tnslsnr/localhost/listener/alert/log.xml
bash: /opt/oracle/product/diag/tnslsnr/localhost/listener/alert/log.xml: Permission denied
[oracle@localhost bin]$ nano /opt/oracle/product/diag/tnslsnr/localhost/listener/alert/log.xml
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:

Select allOpen in new window

 

by: epifanio67Posted on 2009-08-06 at 17:13:55ID: 25039140

here is my listener.ora file:

# listener.ora Network Configuration File:
/opt/oracle/product/11.1.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
 
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT =
1521))
    )
  )

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:

Select allOpen in new window

 

by: epifanio67Posted on 2009-08-06 at 17:14:42ID: 25039142

here is my tnsnames.ora

# tnsnames.ora Network Configuration File:
# /opt/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
 
DEMO11 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT =
1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = DEMO11)
    )
  )
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:

Select allOpen in new window

 

by: mrjoltcolaPosted on 2009-08-06 at 19:12:38ID: 25039581

Looks like a syntax error in listener.ora

Line 2 is missing a #

 

by: mrjoltcolaPosted on 2009-08-06 at 19:13:59ID: 25039589

Or there was a cut and paste error.

Try this..

# listener.ora Network Configuration File:
# /opt/oracle/product/11.1.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
 
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT =1521))
    )
  )
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:

Select allOpen in new window

 

by: schwertnerPosted on 2009-08-07 at 07:24:00ID: 25042988

Invoke NETCA and drop the listener.
Create new one, but first check for firewalls.
Firewalls should be OFF.

Also in Listener.ora register the database:

Backup LISTENER.ORA file!!!!!!!

In ...\network\admin open listener.ora

see

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\Ora10g)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = test)
      (ORACLE_HOME = D:\Ora10g)
    )
  )

Add the entry
    (SID_DESC =
      (SID_NAME = test)
      (ORACLE_HOME = D:\Ora10g)
    )
with regard to the particular Oracle Home and SID Name.


In Oracle 11g you have to create from scratch in the listener.ora file the section

SID_LIST_LISTENER =
&..

mentioned above.

Restart the listener:
c:>lsnrctl stop
c:>lsnctl start

 

by: epifanio67Posted on 2009-08-07 at 08:51:43ID: 25044047

thx mrjoltcola... I can't believe that line was not commented. I looked at that file like a thousand times.... I also cleaned the port line (moved it to same line)...

thx shwerter... not sure if I understand "Invoke NETCA and drop the listener"
1. Firewall is off
2. added SID_LIST_LISTENER to listener.ora (see below)
3. then, I tried to stop lsnrctl and got message below

everything was working just fine and all of the sudden it freaked out..  this is simulation environment I do shut things down every day...... does this happen if you don't shut down properly?

:-( tears

thx

# listener.ora Network Configuration File:
# /opt/oracle/product/11.1.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
 
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT =1521))
    )
  )
 
SID_LIST_LISTENER=
   (SID_LIST =
     (SID_DESC =
       (SID_NAME = DEMO11)
       (ORACLE_HOME = /opt/oracle/product/11.1.0/db_1)
     )
    )
################ listener.ora ENDS HERE ################ 
 
# lsnrctl stop 
# I got this
[oracle@localhost bin]$ ./lsnrctl stop
 
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 07-AUG-2009 08:45:33
 
Copyright (c) 1991, 2007, Oracle.  All rights reserved.
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
[oracle@localhost bin]$ 

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:

Select allOpen in new window

 

by: epifanio67Posted on 2009-08-07 at 09:54:56ID: 25044772

Hello mrjoltcola and shwertner,

I got sqldeveloper to connect... may be it was the listener.ora when added SID_LIST_LISTENER... to be honest I am not sure...
I think my problem is the process to start/shutdown Oracle.

here is what I did to make it work:
TO START:
$ORACLE_HOME/bin

1. . oraenv <enter SID>
2. sqlplus "/ as sysdba"
   SQL> startup
   SQL> exit
3. lsnrctl start
    lsnrctl exit
4. emctl start dbconsole
5. launch sqldeveloper

TO SHUTDOWN:
1. exit sqldeveloper
2. at terminal
    . oraenv <enter SID>
3. sqlplus "/ as sysdba"
   SQL>shutdown immediately
   SQL>exit
4. lsnrctl stop
    lsnrctl exit
5. emctl stop dbconsole

is this the process you guys follow to start/shutdown the Oracle "uncomplicated" beast?

thx

[oracle@localhost bin]$ ./sqlplus "/ as sysdba"
 
SQL*Plus: Release 11.1.0.6.0 - Production on Fri Aug 7 09:32:21 2009
 
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
 
Connected to an idle instance.
 
SQL> startup
ORACLE instance started.
 
Total System Global Area  630501376 bytes
Fixed Size                  2147032 bytes
Variable Size             436210984 bytes
Database Buffers          188743680 bytes
Redo Buffers                3399680 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
[oracle@localhost bin]$ ./lsnrctl start
 
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 07-AUG-2009 09:35:45
 
Copyright (c) 1991, 2007, Oracle.  All rights reserved.
 
Starting /opt/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait...
 
TNSLSNR for Linux: Version 11.1.0.6.0 - Production
System parameter file is /opt/oracle/product/11.1.0/db_1/network/admin/listener.ora
Log messages written to /opt/oracle/product/diag/tnslsnr/localhost/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date                07-AUG-2009 09:35:47
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /opt/oracle/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File         /opt/oracle/product/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Services Summary...
Service "DEMO11" has 1 instance(s).
  Instance "DEMO11", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@localhost bin]$ ./lsnrctl exit
 
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 07-AUG-2009 09:36:18
 
Copyright (c) 1991, 2007, Oracle.  All rights reserved.
 
[oracle@localhost bin]$ ./emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0 
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
https://localhost.localdomain:1158/em/console/aboutApplication
 - An instance of Oracle Enterprise Manager 11g Database Control is already running. 
[oracle@localhost bin]$ ls

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:

Select allOpen in new window

 

by: mrjoltcolaPosted on 2009-08-07 at 10:38:57ID: 25045187

>>is this the process you guys follow to start/shutdown the Oracle "uncomplicated" beast?

Actually, no I automate the startup/shutdown using the dbstart utility. Its a bit of a different question, but I can point you through to it. You might not like it. If you ask a related question ro call my attention to it I'll work through it with you. Takes 5 minutes or so for an experienced Oracle / UNIX admin, but the first time its a bit mysterious for some.

On UNIX it depends on the /etc/oratab and a script in your init scripts (/etc/init.d) that calls $ORACLE_HOME/dbstart

As far as your original, problem, I think perhaps it was a simple cut and paste error when you edited the file. Who knows?

 

by: schwertnerPosted on 2009-08-07 at 12:04:46ID: 25045946

In Oracle 10g I got same errors due the missing instance entry in Listener.ora
Can not explain why, how .... but after working with Listener everything is OK.

 

by: epifanio67Posted on 2009-08-07 at 19:04:46ID: 31613172

thx u so much experts... I really COULD NOT have done this without you..... thx u
thx u
thx u
thx u
 so so so so much....

 

by: schwertnerPosted on 2009-08-10 at 05:08:13ID: 25059115

I love problems that are gone!
Good luck!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...