当前位置:网站首页>Docker安装Oracle_11g
Docker安装Oracle_11g
2022-07-02 01:09:00 【昌昌苦练背后】
Docker安装Oracle_11g
1.拉取oracle_11g镜像
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
2.创建Oracle_11g容器
docker run -d -p 1521:1521 --name oracle11g registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
3.查看oracle11g容器是否创建成功
docker ps -a
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Qk2yQVBW-1655884196821)(C:\Users\q\AppData\Roaming\Typora\typora-user-images\image-20220621140949246.png)]](/img/86/db610eb556cb793acd88031e226550.png)
4.启动oracle11g容器
docker start oracle11g
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-KCT1LJTe-1655884196822)(C:\Users\q\AppData\Roaming\Typora\typora-user-images\image-20220621141057590.png)]](/img/50/43def723e15b07ca87285dbd703a34.png)
5.进入oracle11g容器进行配置
docker exec -it oracle11g bash
6.切换到root用户下进行配置
su root
密码为:helowin

7、编辑profile文件配置ORACLE环境变量
vi /etc/profile

8、最后添加以下3行配置
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export ORACLE_SID=helowin
export PATH=$ORACLE_HOME/bin:$PATH

保存 ::wq
让配置生效:source /etc/profile
9、创建软连接
ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
10、切换到oracle 用户
su - oracle

11、登录sqlplus并修改sys、system用户密码
sqlplus /nolog
conn /as sysdba

12、修改sys、system用户密码并刷新权限
alter user system identified by oracle;
alter user sys identified by oracle;
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

退出:exit;
13、查看一下oracle实例状态
lsnrctl status

14、用nacivat连接oracle数据库
服务名:helowin(一定要填写helowin)
密码:oracle(第12步设置的密码)

注意:如果是第一次连接需要一下操作才能连接成功
1.解压 instantclient_**
2.添加环境变量
添加 instantclient_** 路径到环境变量 path。增加 path=F:\Program Files\instantclient_11_2即可。
ORACLE_HOME=F:\Program Files\instantclient_11_2
LD_LIBRARY_PATH=%ORACLE_HOME%
path=%ORACLE_HOME%
3.在navicat中配置oci.dll文件(如图所示)
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-EWX2IxuI-1655884196825)(C:\Users\q\AppData\Roaming\Typora\typora-user-images\image-20220621142114696.png)]](/img/44/d2f7ce0d358e298d7a9088d9657932.png)
边栏推荐
- Global and Chinese market of picture archiving and communication system (PACS) 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets for supply chain strategy and operation consulting 2022-2028: Research Report on technology, participants, trends, market size and share
- King combat power query renamed toolbox applet source code - with traffic main incentive advertisement
- Otaku wallpaper Daquan wechat applet source code - with dynamic wallpaper to support a variety of traffic owners
- With the acquisition of Xilinx, AMD is more than "walking on two legs" | Jiazi found
- [eight sorts ④] merge sort, sort not based on comparison (count sort, cardinal sort, bucket sort)
- 测试人进阶技能:单元测试报告应用指南
- 【底部弹出-选择器】uniapp Picker组件——底部弹起的滚动选择器
- How to extract login cookies when JMeter performs interface testing
- 449 original code, complement code, inverse code
猜你喜欢

【八大排序②】选择排序(选择排序,堆排序)

How to type spaces in latex

How to reflect and solve the problem of bird flight? Why are planes afraid of birds?

XMind思维导图

Collection: comprehensive summary of storage knowledge
![[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login](/img/c1/23be4399119f42d85a7b86fc8a59fc.png)
[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login

AIX存储管理之逻辑卷的创建及属性的查看和修改

DTL dephossite | prediction method of dephosphorylation sites based on Transfer Learning

Slf4j print abnormal stack information

Schrodinger's Japanese learning applet source code
随机推荐
8.8.4-PointersOnC-20220215
Upgraded wechat tool applet source code for mobile phone detection - supports a variety of main traffic modes
Promise and modular programming
2022 low voltage electrician examination questions and answers
Xinniuniu blind box wechat applet source code_ Support flow realization, with complete material pictures
Viewing and modifying volume group attributes of Aix storage management (II)
Leetcode skimming: binary tree 02 (middle order traversal of binary tree)
关于ASP.NET CORE使用DateTime日期类型参数的一个小细节
SQL injection for Web Security (2)
UDS bootloader of s32kxxx bootloader
[eight sorting ③] quick sorting (dynamic graph deduction Hoare method, digging method, front and back pointer method)
Global and Chinese market of ancillary software 2022-2028: Research Report on technology, participants, trends, market size and share
CTF daily question day45 sensor
Global and Chinese markets for food allergens and intolerance tests 2022-2028: Research Report on technology, participants, trends, market size and share
Review notes of compilation principles
Evolution of Himalayan self-developed gateway architecture
gradle
2022 safety officer-b certificate examination practice questions simulated examination platform operation
Collection: comprehensive summary of storage knowledge
How does schedulerx help users solve the problem of distributed task scheduling?