Oracle 11gR2

Posted on 2013-12-11
Last Modified: 2013-12-12

I installed Oracle 11gR2 server in my machine. OS is Windows 2008 64 bit server.

I am the administrator of the machine and also included in ora_dba group.

But when I try to login in the same machine where server is installed as "sqlplus / as sysdba" its giving error like

ora-12560 TNS Protocol adapter error.

I started oracle services in the machine also.

I set ORACLE_SID also as there in tnsnames. ora at the command prompt.

Still am getting the error. What else I can check?

Can you please suggest all the possible options to avoid this error and get connected to idle instance?

Question by:GouthamAnand
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
LVL 11

Expert Comment

ID: 39713257
Can you use the relevant IP of the machine, as the hostname in TNS?

Author Comment

ID: 39713273
Tried but still getting the same error.
LVL 11

Expert Comment

ID: 39713293
1. Run lsnrctl in database BIN folder
2. Then run
services your_sid_name
Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part


Author Comment

ID: 39713307
Done. But still not able to connect.
LVL 11

Expert Comment

ID: 39713309
what do you get by the current check?

Author Comment

ID: 39713311
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myIpconfig)(PORT=1521))(C
Services Summary...
Service "myservicename" has 1 instance(s).
  Instance "myservicename", status UNKNOWN, has 1 handler(s) for this service...
      "DEDICATED" established:0 refused:0
The command completed successfully
LVL 11

Expert Comment

ID: 39713328
Can you show me the details of your Listener.ora file?
LVL 77

Accepted Solution

slightwv (䄆 Netminder) earned 500 total points
ID: 39713924
Since you are on the local machine, I do not believe this has anything to do with the listener.  You should be doing a BEQUETH connection so the listener isn't involved.

>>I set ORACLE_SID also as there in tnsnames. ora

Forget about the tnsnames.ora file for now.

If your database name is ORCL:
Make sure the Windows Service, OracleServiceORCL is started.
From a command prompt:  
sqlplus / as sysdba

replace ORCL with whatever the database is named.

Author Closing Comment

ID: 39715857
Thank you.

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question