Connecting to Oracle on the dos interface reports an error ora-12560: tns: protocol adapter error solution

1. Windows+R to open the run interface, enter cmd to enter the dos interface, enter the user name and password (correct), and the ORA-12560 error is displayed.

2. Re-enter the user name and password and @ the instance name of the database is the SID of the database


3. That's it, if you want to use sysdba to log in: the command is as follows: sqlplus /@orcl as sysdba

Note : When you log in with the sysdba identity, you cannot query the table created with the scott identity.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325809350&siteId=291194637