Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command not found- bash : sqlplus:

I'm trying to use sqlplus in Oracle database docker container (for Windows 10).

Commands given:

"docker run -d -p 8080:8080 -p 1521:1521 --name OracleDB store/oracle/database/enterprise:12.2.0.1"
"docker start OracleDB"
"docker exec -it OracleDB bash"
"sqlplus / as sysdba"

And now I get the error message:

"bash: sqlplus: command not found"

Image01

image02

like image 286
Qendrim Krasniqi Avatar asked Jan 02 '23 08:01

Qendrim Krasniqi


1 Answers

Try with this:

"docker run -d -p 8080:8080 -p 1521:1521 --name OracleDB store/oracle/database/enterprise:12.2.0.1"
"docker start OracleDB"
"docker exec -it OracleDB bash"
"/u01/app/oracle/product/12.2.0/dbhome_1/bin/sqlplus / as sysdba"
like image 187
Derviş Kayımbaşıoğlu Avatar answered Jan 03 '23 22:01

Derviş Kayımbaşıoğlu