I have been trying to connect to sqlplus the same way I used to do in my earlier company but I get these error messages , please suggest way out -
user name - xyzuser
schema name - xyzschema
[ceadmin@FNPRODCE1:/home/ceadmin]$ sqlplus xyzuser@xyzschema
ksh: sqlplus: not found.
[ceadmin@FNPRODCE1:/home/ceadmin]$ sqlplus -s xyzuser@xyzschema
ksh: sqlplus: not found.
[ceadmin@FNPRODCE1:/home/ceadmin]$ man sqlplus
Manual entry for sqlplus not found or not installed.
[ceadmin@FNPRODCE1:/home/ceadmin]$ /sqlplus -s xyzuser@xyzschema<
ksh: /bin/sqlplus: not found.
[ceadmin@FNPRODCE1:/home/ceadmin]$ /usr/local/bin/sqlplus
ksh: /usr/local/bin/sqlplus: not found.
If all else fails, try a blunt search to find out where the program resides and by implication whether the Server Administrator has allowed you to see the program. The redirect of the error channel to /dev/null is because you are not the "root" user and will be refused access to numerous directories.
Please post the result of:
find // -type f -name sqlplus -exec ls -ald {} \; 2>/dev/null
If there is more than one version of Oracle on the computer, you may get more than one hit.
Another way to find out the the Oracle-home(s) on your box is to look into the file /etc/oratab . The free Oracle-Express databases doesn't ship with oraenv (that should also find in /usr/local/bin) but have the script $ORACLE_HOME/bin/oracle_env.sh to set up your environment.
Its structure is