简体   繁体   English

How can I run SQL Plus on Ubuntu 18.04 server, after I've installed Oracle 19c on it using Docker?

[英]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?有人可以帮我吗?

ORA-12162 & ORA-12154 errors ORA-12162 & ORA-12154 错误

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.

相关问题 Oracle 19c - 无法连接到我在 SQL 开发人员中创建的新用户 - Oracle 19c - can't connect with a new user I've created in SQL developer 如何将带有 Oracle 12c 的 docker 容器升级到 Oracle 19c? - How can I upgrade docker container with Oracle 12c to Oracle 19c? 如何使用 bash 脚本和 SQL PLUS 自动启动 Oracle 19C? - How to startup automatically Oracle 19C using bash scripting and SQL PLUS? 使用 Sql Developer 连接远程 Oracle 19c 数据库 - Connecting Remote Oracle 19c Database using Sql Developer 使用 SSIS 从 Oracle 19c 到 SQL Server 2016 批量/批量传输数据的最佳方式 - Best way to transfer data IN BATCHES/BULK from Oracle 19c to SQL Server 2016 using SSIS ORA-01031: 运行脚本时权限不足 (oracle 19c) - ORA-01031: insufficient privileges when I run my script (oracle 19c) 如何使用 sys.anydataset sql oracle 19c - How to use sys.anydataset sql oracle 19c 我在 oracle 19c 中创建一个 PL SQL function 以找到最大的两个数字 - I am creating a PL SQL function in oracle 19c to find largest among two numbers 在 Oracle 19c 数据库中,如何找出表空间、模式、允许访问的表、分配给按该用户名分组的用户的权限? - In Oracle 19c database, how can I find out tablespace, schema, tables allowed to access, privileges assigned to a user grouping by that username? 如何使用 oracle db 19c 创建从 windows 客户端到另一台 windows 机器的 ssl/tls 连接? - How can I create a ssl/tls connection from windows client to another windows machine with oracle db 19c?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM