To connect in linux server where your DB is installed follow as below
1) First you should know your oracle home as we required to SET this in linux server.
We can find easily Oracle_home using below query.
select SYS_CONTEXT ('USERENV','ORACLE_HOME') from dual;
2) Connect to Linux server (Where DB is installed) using Putty or any other Tool which you prefer
sh-4.2$ export ORACLE_HOME=/scratch/oraofss/app_18c/product/18.3.0.0/dbhome_1
sh-4.2$ export PATH=/scratch/oraofss/app_18c/product/18.3.0.0/dbhome_1/bin
sh-4.2$ sqlplus user_name/password@Oracle_Database
Refer screenshot, Its connected to SQL.
1) First you should know your oracle home as we required to SET this in linux server.
We can find easily Oracle_home using below query.
select SYS_CONTEXT ('USERENV','ORACLE_HOME') from dual;
2) Connect to Linux server (Where DB is installed) using Putty or any other Tool which you prefer
sh-4.2$ export ORACLE_HOME=/scratch/oraofss/app_18c/product/18.3.0.0/dbhome_1
sh-4.2$ export PATH=/scratch/oraofss/app_18c/product/18.3.0.0/dbhome_1/bin
sh-4.2$ sqlplus user_name/password@Oracle_Database
Refer screenshot, Its connected to SQL.