windows上使用docker安装oracle11g
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了windows上使用docker安装oracle11g,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1241字,纯文字阅读大概需要2分钟。
内容图文
-hangzhou.aliyuncs.com/helowin/oracle_11g 启动oracle镜像作为容器 docker run --restart=always -d -p 1521:1521 --name oracle11g registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g 进入容器 docker exec -it oracle11g /bin/bash进入容器之后进行下列操作
【
修改环境变量
su root
#密码 helowin
vi /etc/profile
#行末 unset -f pathmunge 下一行 按i 粘贴如下环境变量
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export ORACLE_SID=helowin
export PATH=$ORACLE_HOME/bin:$PATH
#按esc 输入 :wq! 按enter
最后输入下列代码,退出
source /etc/profile
】
依次输入以下命令 sqlplus /nolog conn /as sysdba; alter user system identified by oracle; //这里是把system用户密码设为oracle conn system/oracle; create user account identified by password; //注意这里user后面是你设置的用户名,by后面是你设置的密码 grant create session to 用户名; //给用户授权之后才能登陆
grant create session to 用户名; //给用户授权之后才能登陆
windows上使用docker安装oracle11g
标签:环境 unset 安装 div style -name exp bho export
本文系统来源:https://www.cnblogs.com/1439107348s/p/12819382.html
内容总结
以上是互联网集市为您收集整理的windows上使用docker安装oracle11g全部内容,希望文章能够帮你解决windows上使用docker安装oracle11g所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。