I installed Oracle 11g xe on my Mac in docker:
docker run -h "oraclehost" --name "oracle" -d -p 1521:1521 carloscastillo/rgt-oracle-xe-11g
In docker terminal (CLI, not the normal Mac terminal), everything seems fine and I can execute queries:
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Kevins-MacBook-Pro:~ kevin$ docker exec -it 6b............1a /bin/sh; exit
# sqlplus
SQL*Plus: Release 11.2.0.2.0 Production on Mon Mar 15 10:50:29 2021
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter user-name: system
Enter password:
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> connect hr/tiger
Connected.
But when I want to create spool files it shows the error bellow. I tried to google it but that still didn't work. Is the filepath correct? or does this action have the permission to do so?
SQL> SPOOL Users/kevin/Desktop/DBM/DBsession1.txt
SP2-0606: Cannot create SPOOL file "Users/kevin/Desktop/DBM/DBsession1.txt"
Another question is that when I want to move arrow keys in the terminal in docker, it shows: ^[[C^[[C^[[D^[[C
I changed Mac terminal preference to Commanded (complete path): /bin/bash as said in this page, but that still does not work...
Can anyone help please leave a message, thank you!