SlideShare a Scribd company logo
1 of 4
TOAD Database Connections Problems
One of the mostcommonTOAD questionsorproblemareasiswithconnectingtoremote and/orlocal
databases.The processandrequirementsare actuallyquitesimple –yetthisremainsahighfrequency
questionthatseems tocause remarkable confusion.Andnotjustfornew Oracle or new TOADusers,as
sometimesevenoldproscanforgetand ask.Theyjustoftendo a HomerSimpson“Doh”once theyhear
the answer
Nowthere are literallydozensof scenariosthatyoumightencounter,Iamnot goingto show themall.
InsteadI’ll showyoua commonyeteasyone to understandandtroubleshoot.Thenyousimplyneedto
applyyournew “detective skills” to solve the otherscenariosyoumightruninto.Justremember,TOAD
has twomillion+users–and if we had a real connectionproblemwe’dhave heardaboutitandfixedit.
Almosteverytime yougetanunable toconnect to database error message –it’sa local PC or possibly
evena database serverlistenerconfiguration problem.I’mnotsimply tryingtopassthe buckhere.I’m
justtellingyouthatit’sthe rare exceptionandnotthe rule – connectionerrorsare mostlikelyonyour
end,soinvestigate before justsayingTOAD’sbroken.
The most commonscenariowe run intoisthat people say“Ican connect withOracle SQL*Plusonmy PC
and TOADgivesan Oracle error – so TOAD doesnotworkfor me or my very special conditions.Sohere’s
a screensnapshotof SQL*Plusworkingonmy WindowsXPPC.
OK – so SQL*Plusworkson myPC. Nowlookat thisscreensnapshot – same PC yetTOAD won’tconnect.
So let’ssee whatIdidto get thiswonderful Oracle errorORA-12154 (justone of the three to fourerror
messagesyou’re likelytosee whileyourSQL*Netenvironmentorconfigurationisnotright).Lookat the
firstthree solidarrows– I gave the correct user ID andpassword,plusthe correct Oracle SID or instance
ID. So whydidI getthisdatabase connectionerror?Lookat the crossed,fattererrorsnearthe bottom
righthand corner– these are youclues.
I have instructedTOADto use the Oracle 11g clientonmy PC,and the red “X” nextto the “TNSNames
Editor”button indicatesthatthere isno TNSNames.orafile.OK –buy thenwhydidSQL*Pluswork?Look
againback at the firstscreensnapshot. ItappearsthatI have runSQL*Plusfrom Oracle 10g somehow?If
I thendo a righthand mouse on“MY Computer”on mydesktopandchoose properties,the Windows
“SystemProperties”window will pop-up. Now if I nextchoose the “Advanced”taband thenpressthe
“EnvironmentVariables”button,the window inthe nextscreensnapshotcomesup.Ifinallydouble click
the “PATH” so I can reviewandpossiblyeditmyPATHenvironmentvariable –because here’swhere the
problemlies.Lookatthe screena momentbefore readingon.
OK – my environmenthasthe Oracle 10g home firstinmyPATH order.So whenI runSQL*Plusit starts
the binary from Oracle 10g andby defaultlooksforthe TNSNames.orafile underthe same home –so it
worksbecause there isa TNSNames.orafilethere.We know thatforsure because asthisnextand final
screensnapshotfromTOADshows,whenIuse the Oracle 10G home the red “X” turns to a green-> and
the “TNSNamesEditor”buttonindicatesthatthere isa validTNSNames.orafile. Thisattempttoconnect
usingTOADworks – and worksjustfine.
So the keylessonorconclusiontotake away fromthisblogisas follows:TOADcan connectto Oracle
databasesandit works99.99% of the time.If youhave a problemandgetsome Oracle connectionerror
message,oddsare that youhave one of the followingproblems:abadSQL*netinstall,are pointingto
the wrong Oracle Home,have a WindowsPATHenvironmentorderingproblem, orsome otheruser
setupandconfigurationproblemrelatedtoyourWindowsand/orOracle home.
So please applythistype of investigativeprocessandthinkinganytime thatyoucannotconnectto your
database withTOAD.TOAD couldneverhave achievedsuchhuge adoptionandsuccessif itcouldnot
connectto peoples’databases.Thusthe problemismostlikelysome minorlittlethingspecifictoyour
PC.Because inthe lasttenyearsI can counton one hand the real database connectionproblemsthat
people have runinto. It’sthatrare.

More Related Content

Similar to TOAD Database Connection Problems

Step by Step on How to Setup DarkComet
Step by Step on How to Setup DarkCometStep by Step on How to Setup DarkComet
Step by Step on How to Setup DarkCometPich Pra Tna
 
Ultimate Guide to Setup DarkComet with NoIP
Ultimate Guide to Setup DarkComet with NoIPUltimate Guide to Setup DarkComet with NoIP
Ultimate Guide to Setup DarkComet with NoIPPich Pra Tna
 
10 things you're doing wrong in Talend
10 things you're doing wrong in Talend10 things you're doing wrong in Talend
10 things you're doing wrong in TalendMatthew Schroeder
 
10 things you're doing wrong in Talend
10 things you're doing wrong in Talend10 things you're doing wrong in Talend
10 things you're doing wrong in TalendDatalytyx
 
Pandas tool for data scientist
Pandas tool for data scientist Pandas tool for data scientist
Pandas tool for data scientist MoTechInc
 
44CON 2014 - Switches Get Stitches, Eireann Leverett & Matt Erasmus
44CON 2014 - Switches Get Stitches,  Eireann Leverett & Matt Erasmus44CON 2014 - Switches Get Stitches,  Eireann Leverett & Matt Erasmus
44CON 2014 - Switches Get Stitches, Eireann Leverett & Matt Erasmus44CON
 
Synchronous Reads Asynchronous Writes RubyConf 2009
Synchronous Reads Asynchronous Writes RubyConf 2009Synchronous Reads Asynchronous Writes RubyConf 2009
Synchronous Reads Asynchronous Writes RubyConf 2009pauldix
 
Installing 12c R1 database on oracle linux
Installing 12c R1 database on oracle linuxInstalling 12c R1 database on oracle linux
Installing 12c R1 database on oracle linuxAnar Godjaev
 
Playfulness at Work
Playfulness at WorkPlayfulness at Work
Playfulness at WorkErin Dees
 
Mist concept introduction with notes
Mist concept introduction with notesMist concept introduction with notes
Mist concept introduction with notesEthereum
 
Macintosh Myths
Macintosh MythsMacintosh Myths
Macintosh Mythsjaberg
 
Help! My PC Just Died & Our Techie Is On Vacation!
Help! My PC Just Died & Our Techie Is On Vacation!Help! My PC Just Died & Our Techie Is On Vacation!
Help! My PC Just Died & Our Techie Is On Vacation!Kathy Lussier
 
Reproducible datascience [with Terraform]
Reproducible datascience [with Terraform]Reproducible datascience [with Terraform]
Reproducible datascience [with Terraform]David Przybilla
 
Hackers The Anarchists Of Our Time
Hackers The Anarchists Of Our TimeHackers The Anarchists Of Our Time
Hackers The Anarchists Of Our TimeUtkarsh Sengar
 
11 unix osx_commands
11 unix osx_commands11 unix osx_commands
11 unix osx_commandsMacinfosoft
 
FME UC 2014: Keynote from Boundless
FME UC 2014: Keynote from BoundlessFME UC 2014: Keynote from Boundless
FME UC 2014: Keynote from BoundlessSafe Software
 
Sap Solman Instguide Dba Cockpit Setup
Sap Solman Instguide Dba Cockpit SetupSap Solman Instguide Dba Cockpit Setup
Sap Solman Instguide Dba Cockpit Setupwlacaze
 

Similar to TOAD Database Connection Problems (20)

Createtnsnames
CreatetnsnamesCreatetnsnames
Createtnsnames
 
Step by Step on How to Setup DarkComet
Step by Step on How to Setup DarkCometStep by Step on How to Setup DarkComet
Step by Step on How to Setup DarkComet
 
Ultimate Guide to Setup DarkComet with NoIP
Ultimate Guide to Setup DarkComet with NoIPUltimate Guide to Setup DarkComet with NoIP
Ultimate Guide to Setup DarkComet with NoIP
 
Apple mac
Apple macApple mac
Apple mac
 
10 things you're doing wrong in Talend
10 things you're doing wrong in Talend10 things you're doing wrong in Talend
10 things you're doing wrong in Talend
 
10 things you're doing wrong in Talend
10 things you're doing wrong in Talend10 things you're doing wrong in Talend
10 things you're doing wrong in Talend
 
Pandas tool for data scientist
Pandas tool for data scientist Pandas tool for data scientist
Pandas tool for data scientist
 
Createlistener
CreatelistenerCreatelistener
Createlistener
 
44CON 2014 - Switches Get Stitches, Eireann Leverett & Matt Erasmus
44CON 2014 - Switches Get Stitches,  Eireann Leverett & Matt Erasmus44CON 2014 - Switches Get Stitches,  Eireann Leverett & Matt Erasmus
44CON 2014 - Switches Get Stitches, Eireann Leverett & Matt Erasmus
 
Synchronous Reads Asynchronous Writes RubyConf 2009
Synchronous Reads Asynchronous Writes RubyConf 2009Synchronous Reads Asynchronous Writes RubyConf 2009
Synchronous Reads Asynchronous Writes RubyConf 2009
 
Installing 12c R1 database on oracle linux
Installing 12c R1 database on oracle linuxInstalling 12c R1 database on oracle linux
Installing 12c R1 database on oracle linux
 
Playfulness at Work
Playfulness at WorkPlayfulness at Work
Playfulness at Work
 
Mist concept introduction with notes
Mist concept introduction with notesMist concept introduction with notes
Mist concept introduction with notes
 
Macintosh Myths
Macintosh MythsMacintosh Myths
Macintosh Myths
 
Help! My PC Just Died & Our Techie Is On Vacation!
Help! My PC Just Died & Our Techie Is On Vacation!Help! My PC Just Died & Our Techie Is On Vacation!
Help! My PC Just Died & Our Techie Is On Vacation!
 
Reproducible datascience [with Terraform]
Reproducible datascience [with Terraform]Reproducible datascience [with Terraform]
Reproducible datascience [with Terraform]
 
Hackers The Anarchists Of Our Time
Hackers The Anarchists Of Our TimeHackers The Anarchists Of Our Time
Hackers The Anarchists Of Our Time
 
11 unix osx_commands
11 unix osx_commands11 unix osx_commands
11 unix osx_commands
 
FME UC 2014: Keynote from Boundless
FME UC 2014: Keynote from BoundlessFME UC 2014: Keynote from Boundless
FME UC 2014: Keynote from Boundless
 
Sap Solman Instguide Dba Cockpit Setup
Sap Solman Instguide Dba Cockpit SetupSap Solman Instguide Dba Cockpit Setup
Sap Solman Instguide Dba Cockpit Setup
 

TOAD Database Connection Problems

  • 1. TOAD Database Connections Problems One of the mostcommonTOAD questionsorproblemareasiswithconnectingtoremote and/orlocal databases.The processandrequirementsare actuallyquitesimple –yetthisremainsahighfrequency questionthatseems tocause remarkable confusion.Andnotjustfornew Oracle or new TOADusers,as sometimesevenoldproscanforgetand ask.Theyjustoftendo a HomerSimpson“Doh”once theyhear the answer Nowthere are literallydozensof scenariosthatyoumightencounter,Iamnot goingto show themall. InsteadI’ll showyoua commonyeteasyone to understandandtroubleshoot.Thenyousimplyneedto applyyournew “detective skills” to solve the otherscenariosyoumightruninto.Justremember,TOAD has twomillion+users–and if we had a real connectionproblemwe’dhave heardaboutitandfixedit. Almosteverytime yougetanunable toconnect to database error message –it’sa local PC or possibly evena database serverlistenerconfiguration problem.I’mnotsimply tryingtopassthe buckhere.I’m justtellingyouthatit’sthe rare exceptionandnotthe rule – connectionerrorsare mostlikelyonyour end,soinvestigate before justsayingTOAD’sbroken. The most commonscenariowe run intoisthat people say“Ican connect withOracle SQL*Plusonmy PC and TOADgivesan Oracle error – so TOAD doesnotworkfor me or my very special conditions.Sohere’s a screensnapshotof SQL*Plusworkingonmy WindowsXPPC.
  • 2. OK – so SQL*Plusworkson myPC. Nowlookat thisscreensnapshot – same PC yetTOAD won’tconnect. So let’ssee whatIdidto get thiswonderful Oracle errorORA-12154 (justone of the three to fourerror messagesyou’re likelytosee whileyourSQL*Netenvironmentorconfigurationisnotright).Lookat the firstthree solidarrows– I gave the correct user ID andpassword,plusthe correct Oracle SID or instance ID. So whydidI getthisdatabase connectionerror?Lookat the crossed,fattererrorsnearthe bottom righthand corner– these are youclues. I have instructedTOADto use the Oracle 11g clientonmy PC,and the red “X” nextto the “TNSNames Editor”button indicatesthatthere isno TNSNames.orafile.OK –buy thenwhydidSQL*Pluswork?Look againback at the firstscreensnapshot. ItappearsthatI have runSQL*Plusfrom Oracle 10g somehow?If I thendo a righthand mouse on“MY Computer”on mydesktopandchoose properties,the Windows “SystemProperties”window will pop-up. Now if I nextchoose the “Advanced”taband thenpressthe “EnvironmentVariables”button,the window inthe nextscreensnapshotcomesup.Ifinallydouble click the “PATH” so I can reviewandpossiblyeditmyPATHenvironmentvariable –because here’swhere the problemlies.Lookatthe screena momentbefore readingon.
  • 3. OK – my environmenthasthe Oracle 10g home firstinmyPATH order.So whenI runSQL*Plusit starts the binary from Oracle 10g andby defaultlooksforthe TNSNames.orafile underthe same home –so it worksbecause there isa TNSNames.orafilethere.We know thatforsure because asthisnextand final screensnapshotfromTOADshows,whenIuse the Oracle 10G home the red “X” turns to a green-> and the “TNSNamesEditor”buttonindicatesthatthere isa validTNSNames.orafile. Thisattempttoconnect usingTOADworks – and worksjustfine.
  • 4. So the keylessonorconclusiontotake away fromthisblogisas follows:TOADcan connectto Oracle databasesandit works99.99% of the time.If youhave a problemandgetsome Oracle connectionerror message,oddsare that youhave one of the followingproblems:abadSQL*netinstall,are pointingto the wrong Oracle Home,have a WindowsPATHenvironmentorderingproblem, orsome otheruser setupandconfigurationproblemrelatedtoyourWindowsand/orOracle home. So please applythistype of investigativeprocessandthinkinganytime thatyoucannotconnectto your database withTOAD.TOAD couldneverhave achievedsuchhuge adoptionandsuccessif itcouldnot connectto peoples’databases.Thusthe problemismostlikelysome minorlittlethingspecifictoyour PC.Because inthe lasttenyearsI can counton one hand the real database connectionproblemsthat people have runinto. It’sthatrare.