[英]How can I run SQL Plus on Ubuntu 18.04 server, after I've installed Oracle 19c on it using Docker?
I've installed Oracle 19c on Ubuntu 18.04 server, using Docker.我已经使用 Docker 在 Ubuntu 18.04 服务器上安装了 Oracle 19c。
I can connect to the installed DB, using SQL developer & Dbeaver, and am working with it fine.我可以使用 SQL 开发人员和 Dbeaver 连接到已安装的数据库,并且可以正常使用它。
But I can't run SqlPlus, or restore Dump backup file on it.但我无法运行 SqlPlus,或在其上恢复 Dump 备份文件。
sudo docker exec -ti oracle19c sqlplus /as sysdba sudo docker exec -ti oracle19c sqlplus /as sysdba
Could anyone help me pl?有人可以帮我吗?
I tried with my 18cXE image (container_name: oracle).我尝试使用我的 18cXE 映像(容器名称:oracle)。 I think you have to make sure environment is set before you issue
sqlplus / as sysdba
我认为您必须确保在发出
sqlplus / as sysdba
之前设置环境
docker container exec -it oracle su oracle -c ". oraenv <<< XE; sqlplus / as sysdba"
ORACLE_SID = [XE] ? The Oracle base remains unchanged with value /opt/oracle
SQL*Plus: Release 18.0.0.0.0 - Production on Wed Feb 3 22:44:10 2021
Version 18.4.0.0.0
Copyright (c) 1982, 2018, Oracle. All rights reserved.
Connected to:
Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0
SQL> select instance_name from v$instance;
INSTANCE_NAME
----------------
XE
SQL> exit
Disconnected from Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0
Best of luck!祝你好运!
Oracle is not supported on Ubuntu, period. Ubuntu 不支持 Oracle,期间。 It is written for an entirely different branch of Linux.
它是为 Linux 的一个完全不同的分支编写的。 If your container is running RHEL or Oracle Linux then things might work within that context, but it will not run (or will not run reliably, in a supported fashion, even if you hack it in) on the Ubuntu kernel.
If your container is running RHEL or Oracle Linux then things might work within that context, but it will not run (or will not run reliably, in a supported fashion, even if you hack it in) on the Ubuntu kernel. You will need a Red Hat or Red Hat compatible kernel if you want either the client or the server to run as intended.
如果您希望客户端或服务器按预期运行,您将需要与 Red Hat 或 Red Hat 兼容的 kernel。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.