Solved

Oracle 11gR2

Posted on 2013-12-11
9
542 Views
Last Modified: 2013-12-12
Hi,

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?

Thanks.
0
Comment
Question by:GouthamAnand
[X]
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
9 Comments
 
LVL 10

Expert Comment

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

Author Comment

by:GouthamAnand
ID: 39713273
Tried but still getting the same error.
0
 
LVL 10

Expert Comment

by:HuaMinChen
ID: 39713293
1. Run lsnrctl in database BIN folder
2. Then run
services your_sid_name
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Author Comment

by:GouthamAnand
ID: 39713307
Done. But still not able to connect.
0
 
LVL 10

Expert Comment

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

Author Comment

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

Expert Comment

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

Accepted Solution

by:
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:  
set ORACLE_SID=ORCL
sqlplus / as sysdba

replace ORCL with whatever the database is named.
0
 

Author Closing Comment

by:GouthamAnand
ID: 39715857
Thank you.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle Insert not working 10 77
Fill Null values 5 55
pl/sql parameter is null sometimes 2 39
Oracle - BLOB Extract Line 2 20
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

751 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