I Google[d] for this error ORA-12560: TNS:protocol adaptor error but not able to find the actual reason and how to solve this error ?
Can anyone tell me a perfect solution to solve login problem.
I Google[d] for this error ORA-12560: TNS:protocol adaptor error but not able to find the actual reason and how to solve this error ?
Can anyone tell me a perfect solution to solve login problem.
Seems like database is not up. It might be due to restarting machine and the instance is not set to autostart and it so not started munually after starting from services Screen.
Just goto Command prompt
Set Oracle SID C:>set oracle_sid=ORCL
Now run Net start command. C:>net start oracleserviceORCL
If none the above work, then try this : Modify the
LISTENER.ora
(mine is found in :oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
) ==> add a custom listener that points to your database(SID), example my SID is XZ0301, so :Restart your machine
For Windows 7, use the following to modify the LISTENER.ora: - Go to Start > All Programs > Accessories - Right click Notepad and then click Run as Administrator . - File>open and navigate to the tnsnames.ora file. - Make the changes then it should allow you to save
In my case (for OracleExpress) the service was running, but I got this issue when trying to access the database via sqlplus without connection identifier:
To make it work I needed to add the connection identifier (XE for Oracle Express), so following command worked ok:
If you still get ORA-12560, make sure you can ping the XE service. Use:
And you should get OK message along with full connection string (tnsping command is located in oracle's installation dir: [oracle express installation dir]\app\oracle\product\11.2.0\server\bin). If you can not ping make sure your
tnsnames.ora
file is reachable for sqlplus. You might need to set TNS_ADMIN environment variable pointing to your ADMIN directory, where the file is located, for example:ORA-12560: TNS:erro de adaptador de protocolo
It really has worked on my machine. But instead of OracleServiceORCL I found OracleServiceXE.
In my case I didn't have an
OracleService
(OracleServiceORCL) in WindowsServices.msc
as described in Bharathi's answer.I executed this command:
and then the
OracleService
called OracleServiceORCL just showed up and got started in Services.msc. Really nice.Source: https://forums.oracle.com/forums/message.jspa?messageID=4044655#4044655