How do I fix my listener so that I can connect to my database through a 3rd party tool (Toad)

When I try to log into Toad I get the error:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

When I type lsnrctl services I see several instance of my database:
Service "gabjos" has 2 instance(s).
  Instance "gabjos", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:1 refused:0
         LOCAL SERVER
  Instance "gabjos", status READY, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:148 refused:0 state:ready
         LOCAL SERVER
Service "gabjosXDB" has 1 instance(s).
  Instance "gabjos", status READY, has 1 handler(s) for this service...
    Handler(s):
      "D000" established:0 refused:0 current:0 max:1002 state:ready
         DISPATCHER <machine: <computer mame>, pid: 3496>
         (ADDRESS=(PROTOCOL=tcp)(HOST=<host info>)(PORT=
1117))
Service "gabjos_XPT" has 1 instance(s).
  Instance "gabjos", status READY, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:148 refused:0 state:ready
         LOCAL SERVER

I only have 1 entry for my database gabjos in my listener and tnsnames.ora. I don't know where all of these other instances are coming from or how to fix this. Does anyone know how to troubleshoot this and fix it so that I can get into the database through Toad? The database is located in the same location as Toad.
sikyalaSenior Database AdministratorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
slightwv (䄆 Netminder) Commented:
>>I don't know where all of these other instances are coming from
XDB is Oracle XML database.  
XPT is dataguard.

They shouldn't be and problem unless you just don't want them.


Check your sqlnet.ora file for a domain entry.  If it has one, try commenting it out.
0
 
RindbaekSenior ConsultantCommented:
can you connect with sqlplus?
0
 
RindbaekSenior ConsultantCommented:
BTW do you have multiple oracle homes on the server that may confues TOAD a bit and what version of TOAD do you use?

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
sikyalaSenior Database AdministratorAuthor Commented:
I can connect to sqlplus at the command line but not in the sqlplus application. I only have 1 oracle_home
0
 
slightwv (䄆 Netminder) Commented:
Now you have me confused.  sqlplus is a stand-alone utility provided by Oracle.  

What do you mean by the sqlplus application?
0
 
sikyalaSenior Database AdministratorAuthor Commented:
I am in a windows environment and there is a sqlplus tool under start --> programs --> oracle home --> application development --> Oracle SQL plus a dialog box opens for you to enter the user name, password and host string. I can't connect to the database through this application or Toad. But if I open a windows command prompt and type sqlplus "<user name>/<password>" I can connect to the database successfully.

0
 
slightwv (䄆 Netminder) Commented:
Do you have multiple oracle_homes installed on this machine?

It sounds like sqlplusw.exe is looking in a different place than the sqlplus.exe found in your PATH statement.
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
sikyalaSenior Database AdministratorAuthor Commented:
Toad version 8
0
 
sikyalaSenior Database AdministratorAuthor Commented:
I only have 1 oracle home
0
 
slightwv (䄆 Netminder) Commented:
>>I only have 1 oracle home
Then sqlplusw.exe (the windows version) and sqlplus.exe (the command line version) should both connect.

From the Start menu right-click on the sqlplus icon and select properties.  Look where it is being executed from.

The from the command prompt look at the PATH environment variable.
0
 
RindbaekSenior ConsultantCommented:
I dont remember toad 8 (using 9 and 10 myself) setup but do you have a tns name for the database?
The classical (old versions) toad used oracle net for connection. So when you connect from the login do you choose the database unde the TNS tab?
And under installed clients (if you have that) do you use your oracle home?
See attachedfile

In sqlplus try connect with
sqlplus "<user name>/<password>@<TNSNAME>"

toad-login.JPG
0
 
sikyalaSenior Database AdministratorAuthor Commented:
I changed the service name so that it didn't contain the domain name just the Oracle SID
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.