没有合适的资源?快使用搜索试试~ 我知道了~
Mac上安装oracle步骤
5星 · 超过95%的资源 需积分: 46 13 下载量 124 浏览量
2020-05-11
10:10:20
上传
评论 2
收藏 5KB TXT 举报
温馨提示
试读
6页
这是一篇通过使用docker服务容器进行安装oracle11g的教程.因为大家都知道在Macos上是没有对应的oracle版本的.后期还是希望能更新出更多适配Mac的软件,更多的Mac软件需求,文件中有联系方式哦~
资源推荐
资源详情
资源评论
最新编辑版本,需要先下载安装dock
~ root# sudo docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
mac-chark:~ root# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest fce289e99eb9 3 months ago 1.84kB
mac-chark:~ root# docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
Using default tag: latest
latest: Pulling from helowin/oracle_11g
~ root# sudo docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
mac-chark:~ root# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest fce289e99eb9 3 months ago 1.84kB
mac-chark:~ root# docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
Using default tag: latest
latest: Pulling from helowin/oracle_11g
ed5542b8e0e1: Pull complete
a3ed95caeb02: Pull complete
1e8f80d0799e: Pull complete
Digest: sha256:4c12b98372dfcbaafcd9564a37c8d91456090a5c6fb07a4ec18270c9d9ef9726
Status: Downloaded newer image for registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g:latest
mac-chark:~ root# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest fce289e99eb9 3 months ago 1.84kB
registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g latest 3fa112fd3642 3 years ago 6.85GB
mac-chark:~ root# docker run -d -p 1521:1521 --name oracle11g registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
441d7e54d28ae4e5554d245c2a6f4954f666e63f21e2108a8f93c7cf8f4e4d99
mac-chark:~ root# docker start oracle11g
oracle11g
mac-chark:~ root# docker exec -it oracle11g bash
[oracle@441d7e54d28a /]$ sqlplus /nolog
bash: sqlplus: command not found
[oracle@441d7e54d28a /]$ sqlplus /nolog
bash: sqlplus: command not found
[oracle@441d7e54d28a /]$ su root
Password:
su: incorrect password
[oracle@441d7e54d28a /]$ su root
Password:
[root@441d7e54d28a /]#
[root@441d7e54d28a /]# export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
[root@441d7e54d28a /]# export ORACLE_SID=helowin
[root@441d7e54d28a /]# export PATH=$ORACLE_HOME/bin:$PATH
[root@441d7e54d28a /]# vi /etc/profile
[root@441d7e54d28a /]# ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
[root@441d7e54d28a /]# su - oracle
a3ed95caeb02: Pull complete
1e8f80d0799e: Pull complete
Digest: sha256:4c12b98372dfcbaafcd9564a37c8d91456090a5c6fb07a4ec18270c9d9ef9726
Status: Downloaded newer image for registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g:latest
mac-chark:~ root# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest fce289e99eb9 3 months ago 1.84kB
registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g latest 3fa112fd3642 3 years ago 6.85GB
mac-chark:~ root# docker run -d -p 1521:1521 --name oracle11g registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
441d7e54d28ae4e5554d245c2a6f4954f666e63f21e2108a8f93c7cf8f4e4d99
mac-chark:~ root# docker start oracle11g
oracle11g
mac-chark:~ root# docker exec -it oracle11g bash
[oracle@441d7e54d28a /]$ sqlplus /nolog
bash: sqlplus: command not found
[oracle@441d7e54d28a /]$ sqlplus /nolog
bash: sqlplus: command not found
[oracle@441d7e54d28a /]$ su root
Password:
su: incorrect password
[oracle@441d7e54d28a /]$ su root
Password:
[root@441d7e54d28a /]#
[root@441d7e54d28a /]# export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
[root@441d7e54d28a /]# export ORACLE_SID=helowin
[root@441d7e54d28a /]# export PATH=$ORACLE_HOME/bin:$PATH
[root@441d7e54d28a /]# vi /etc/profile
[root@441d7e54d28a /]# ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
[root@441d7e54d28a /]# su - oracle
剩余5页未读,继续阅读
资源评论
- weixin_551807662022-03-04真的非常非常感谢!翻了一晚上的资料,试了各种方法,就只有这个哥的资料能连上,后面出了点问题,答主帮我远程连上的,非常非常好的资料!非常非常好的答主!csdn之光!
韶华年少_chark
- 粉丝: 0
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功