Discussions
Categories
- 385.5K All Categories
- 4.9K Data
- 2.5K Big Data Appliance
- 2.4K Data Science
- 453.4K Databases
- 223.2K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 47 Multilingual Engine
- 606 MySQL Community Space
- 486 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.2K ORDS, SODA & JSON in the Database
- 585 SQLcl
- 4K SQL Developer Data Modeler
- 188K SQL & PL/SQL
- 21.5K SQL Developer
- 46 Data Integration
- 46 GoldenGate
- 298.4K Development
- 4 Application Development
- 20 Developer Projects
- 166 Programming Languages
- 295K Development Tools
- 150 DevOps
- 3.1K QA/Testing
- 646.7K Java
- 37 Java Learning Subscription
- 37.1K Database Connectivity
- 201 Java Community Process
- 108 Java 25
- 22.2K Java APIs
- 138.3K Java Development Tools
- 165.4K Java EE (Java Enterprise Edition)
- 22 Java Essentials
- 176 Java 8 Questions
- 86K Java Programming
- 82 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 208 Java User Groups
- 25 JavaScript - Nashorn
- Programs
- 667 LiveLabs
- 41 Workshops
- 10.3K Software
- 6.7K Berkeley DB Family
- 3.6K JHeadstart
- 6K Other Languages
- 2.3K Chinese
- 207 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 474 Portuguese
IO Error: The Network Adapter could not establish the connection

I am doing the activities of the course "Oracle Database 19c: SQL workshop) and I am asked to create a connection from SQL developer to the ora1 account (this count contains the schemas I need for the course) .
I write the following data as indicated to me in the practice:
Name: myconnection
username: ora1
password: xxxx (I hide the password)
hostname: localhost
port:1 521
service name: PDBORCL
When I test the connection , I get this error:
Status: IO Error: The Network Adapter could not establish the connection (CONNECTION_ID=R5V5/Nl/SUquPyzNoanDtg==)
On the course help, suggested me that I check the status of the listener,
$lsnrctl status
But if I type this command on my terminal, I get the follow error:
"lsnrtl" is not recognized as an internal or external command, program or executable batch file.
How can I fix this error?
Note: I have no previously installed any Oracle Database
Thanks in advance!
Best Answers
-
That indicates you should have an installation of Oracle Database on your personal machine.
Do you?
-
"lsnrtl" is not recognized as an internal or external command, program or executable batch file.
You mistyped lsnrctl here.
-
So, when you typed the correct command, what was the result? If it was still "is not recognized as an internal or external command, program or executable batch file.",
Then just like any other command that returns that error, it is because the executable ('lsnrctl' in this case) is not located in any directory that is part of your system PATH. Either you have not installed Oracle database on this machine (the one where you issued 'lsnrctl'), or you have failed to set the system environment variable PATH. Actually, that should have been done by the installation, if on Windows.
You said, "I also believe that I should have installed an Oracle Database". Well either you did or you didn't. And it's not something trivial that you would have done without knowing for sure. If you are relying on the installation of SQL Dev, then no you have not installed an Oracle database. SQL Dev is just an IDE - a client. It is not a database, and does not have a database bundled in with it.
Answers
-
That indicates you should have an installation of Oracle Database on your personal machine.
Do you?
-
"lsnrtl" is not recognized as an internal or external command, program or executable batch file.
You mistyped lsnrctl here.
-
upsss! I'm sorry, I made a mistake in writing. I typed the correct command, I typed: lsnrctl
-
Yes, I also believe that I should have installed an Oracle Database!
Thanks in advance! @thatJeffSmith-Oracle and @cormaco
-
So, when you typed the correct command, what was the result? If it was still "is not recognized as an internal or external command, program or executable batch file.",
Then just like any other command that returns that error, it is because the executable ('lsnrctl' in this case) is not located in any directory that is part of your system PATH. Either you have not installed Oracle database on this machine (the one where you issued 'lsnrctl'), or you have failed to set the system environment variable PATH. Actually, that should have been done by the installation, if on Windows.
You said, "I also believe that I should have installed an Oracle Database". Well either you did or you didn't. And it's not something trivial that you would have done without knowing for sure. If you are relying on the installation of SQL Dev, then no you have not installed an Oracle database. SQL Dev is just an IDE - a client. It is not a database, and does not have a database bundled in with it.
-
Thanks for your answer.
Yes, I installed Oracle Database 19c @EdStevens
Now, the error I get when I try to create the connection is:
Status: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
(CONNECTION_ID=/7ii3DHaT2Gz+eJN44XCEQ==)
I
-
If I type >lsnrctl status
The message I am receiving is: listener is already started but it does not support any services .
and if I type >oraenv it
Tells me:
"oraenv is not recognized as an internal or external command,
program or executable batch file"
-
If I type >lsnrctl status
The message I am receiving is: listener is already started but it does not support any services .
That means your database is not started.
and if I type >oraenv it
Tells me:
"oraenv is not recognized as an internal or external command,
program or executable batch file"
'oraenv' exists only on *nix systems, not on Windows. what were you expecting by trying to execute it?