I am new to oracle. I have oracle 11g installed on my PC (windows 10). I am trying to connect to the database and grant a privilege Create Session to a user 'ABC'. When I try to connect through cmd it keeps saying "TNS: no listener". When I go through Visual Studio, it keeps saying insufficient privileges. I, for the life of me, can't figure out what is wrong and what to do. Please help me out here.
EDIT: sqlplus sys/password@DBNAME as sysdba
sqlplus system/password@localhost:1521/DBNAME
sqlplus / as sysdbaorsqlplus sys/password as sysdba? - atokpassqlplus sys/password@tnsname as sysdbanot DBNAME. In order to do that you should have tnsnames created to point to the remote database service, - atokpas