I downloaded instant-client zip directories for basic Linux, sqlplus and for SDK and unzipped them in opt/oracle
.Then I added to my .bashrc file to follows:
export PATH=:$PATH:/opt/oracle/instantclient_18_5
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/oracle/instantclient_18_5
I have sqlplus executable in /opt/oracle/instantclient_18_5
.When I run ./sqlplus from home I get command not found. It however opens when I go to its'
directory and run ./sqlplus
but prompts me for username-password which I do not know since this is the first time I am starting?Two questions :
- How can I run using
sqlplus
rather than./sqlplus
and that too if I want to do so from any where(not just that subdirectory)? - I do not know username or password. Tried using / as sysdba but not working.What can I do?