When I run sqlplus it connect to orcl2 instance but I need to connect to orcl I can connect to my normal user using this:
sqlplus user/passowrd@//localhost:1521/orcl
but how can I connect as sysdba? I've try:
sqlplus / as sysdba@orcl
but it connect to orcl2 instance.
sqlplus usr/pwd@orcl as sysdba, I thinkorclis a valid sid, you can set theORACLE_SIDenvironment variable toorcl, then you should be able to dosqlplus / as sysdba