刚才,我在我的macbook上重装了OSX。然后安装Docker Desktop。因为我想使用oracle数据库。但我遇到了这些日志。
Database is not installed. Installing... Installation files not found. Unzip installation files into mounted(/install) folder
首先,我安装SQL Developer。在终端中,我通过docker安装jaspeen/oracle-11g。
然后,我运行docker image。
$ docker run -d -p 59160:22 -p 59161:1521 jaspeen/oracle-11g
然后,我输入了
$ docker ps -l
但是容器的状态是“已退出(1) 16秒前”
12750f964708 jaspeen/oracle-11g "/assets/entrypoint.…" 17 seconds ago Exited (1) 16 seconds ago busy_dewdney
如果我必须在oracle主页中安装ORACLE数据库?
发布于 2020-04-02 15:37:10
我也遇到了同样的问题,并通过以下方式解决了它:
从https://www.oracle.com/database/technologies/oracle-database-software-downloads.htm
docker run --privileged --name oracle11g -p 1521:1521 -v path/to/your/install_folder:/install jaspeen/oracle-11g中。这里的想法是,您为"path/ to /your/install_ folder“设置的值是包含"database”文件夹的文件夹的位置。在您的例子中是"install_folder“文件夹吗?该-v标志实际上是将您的"install_folder“挂载到停靠容器中的"/install”位置。这个过程需要一段时间才能结束。它应该首先输出以下内容:
Database is not installed. Installing...
Installing Oracle Database 11g
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 50321 MB Passed
Checking swap space: must be greater than 150 MB. Actual 856 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-03-30_08-00-03PM. Please wait ...当您可以使用下面的凭据连接到它时,它就启动并运行了:
username/password: SYS/oracle
SID: orcl注意:在找到幸运的版本之前,我已经尝试了多个甲骨文的download site版本。例如,在一种情况下,控制台无缘无故退出。当我输入docker ps时,它显示容器以255状态退出(我没有发现它有什么帮助)。
我也从这里找到了灵感:https://programmer.group/install-oracle-11g-using-docker.html
发布于 2019-08-11 21:12:03
从http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index-092322.html下载数据库安装文件并解压缩到install_folder。运行容器,它将安装oracle并创建数据库:
docker运行--特权--名称oracle11g jaspeen 1521:1521 -v :/install jaspeen/oracle-11g
https://stackoverflow.com/questions/57450026
复制相似问题