Solved

ORA-12560:TNS Protocol adapter error.

Posted on 2004-03-27
6
4,233 Views
Last Modified: 2012-06-27
I tried to connect to the database ( Two sid's ) using
SQL*Plus I got the error messages :

ORA-01034 : Oracle Not Available
ORA-27101 : Shared memory realm does not exit.

and by  Manager SVRMGRL,  I got the following error message:
ORA-12560:TNS Protocol adapter error.

I created a new databese service by using ORADIM utilities. I got the
same error message. I checked listener and tnsnames and looks fine
but by changing the GLOBAL_DBNAME on SID_DESC  from GLOBAL_DBNAME
= PROD( The name of the sid) to GLOBAL_DBNAME = Oracle8.) and the error message changed to ORA
- 12514 :TNS:Listener couldn't resolve SERVICE_NAME given in connect
descriptor.


0
Comment
Question by:hadimdh
6 Comments
 
LVL 47

Expert Comment

by:schwertner
ID: 10694095
You have to use the Net tools (NETCA, NETCONFIG, EASYCONFIG) to create and to TEST the entry in tnsnames.ora file.
Use
c:>tnsping 10 orawin

where 'orawin' stands for the alias names in tnsnames.ora to check if using this alias you can connect the listener.
0
 

Expert Comment

by:AhmedKhalil
ID: 10694170
in SQLNET.ORA
change the value of
SQLNET.AUTHENTICATION_SERVICES=(NTS) to SQLNET.AUTHENTICATION_SERVICES=(NONE)

Change the user that starts the OracleService to the Oracle DBA user who is
defined to the Windows domain.
1. Go to Control Panel, Services,
2.  right click the OracleService<SID>
3.  select properties, select the Log On tab
4.  Click on the Account radio button
5. fill in the domain qualified dba user and password (e.g. oradba\dbapwd)
6. Click OK
7. Restart the service
0
 
LVL 8

Accepted Solution

by:
baonguyen1 earned 50 total points
ID: 10695319
The first two errors (ORA-01034, ORA-27101) show that your oracle has not been started or shutdown abnormal. Try to start from command prompt on the server

C:\set ORACLE_SID=<SID>
C:\sqlplus /nolog
SQL>connect  / as sysdba
or
SQL>connect sys/pass@<SID> as sysdba
SQL>startup pfile=..../init<SID>.ora

Then connect from sqlplus or svrmgrl should work.

Hope this helps.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:hadimdh
ID: 10697223
Schewertner,
Thanks for your comments, I used tnsping 10 orawin, but I got the following error message :
Failed to resolve names.

0
 

Author Comment

by:hadimdh
ID: 10697289
Thanks Baonguyen1,
All the sid's are up and running, Thaks for every body
0
 

Author Comment

by:hadimdh
ID: 10723026
Baonguen1,
When I restarted the server I got the same problem, It looks that the problem exist still, If I run a backup scripts also I should restart all services manually with the scripts which you have provided.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now