当前位置:网站首页>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)
边栏推荐
- To meet the needs of consumers in technological upgrading, Angel water purifier's competitive way of "value war"
- [wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login
- Bc35 & bc95 onenet mqtt (old)
- Upgraded wechat tool applet source code for mobile phone detection - supports a variety of main traffic modes
- About asp Net core uses a small detail of datetime date type parameter
- Global and Chinese markets of beverage seasoning systems 2022-2028: Research Report on technology, participants, trends, market size and share
- Recommend an online interface mock tool usemock
- gradle
- Xinniuniu blind box wechat applet source code_ Support flow realization, with complete material pictures
- Otaku wallpaper Daquan wechat applet source code - with dynamic wallpaper to support a variety of traffic owners
猜你喜欢

Leetcode skimming: stack and queue 05 (inverse Polish expression evaluation)

Creation of volume group for AIX storage management (I)

Principle of finding combinatorial number and template code

Picture puzzle wechat applet source code_ Support multi template production and traffic master

Keepalived introduction and installation

一名优秀的软件测试人员,需要掌握哪些技能?

Infiltration records of CFS shooting range in the fourth phase of the western regions' Dadu Mansion

Bc35 & bc95 onenet mqtt (old)

969 interlaced string

2022 safety officer-a certificate examination questions and online simulation examination
随机推荐
Sql--- related transactions
Zak's latest "neural information transmission", with slides and videos
Excel search and reference function
Han Zhichao: real time risk control practice of eBay based on graph neural network
AIX存储管理之卷组属性的查看和修改(二)
How does schedulerx help users solve the problem of distributed task scheduling?
[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login
DTL dephossite | prediction method of dephosphorylation sites based on Transfer Learning
SQL injection for Web Security (2)
Leetcode skimming: binary tree 02 (middle order traversal of binary tree)
cookie、session、tooken
Slf4j print abnormal stack information
Circular statements in shell programming
Global and Chinese market of aircraft MRO software 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of collaborative applications 2022-2028: Research Report on technology, participants, trends, market size and share
sso单点登录的实现。
Cat Party (Easy Edition)
Output results of convolution operation with multiple tensors and multiple convolution kernels
New version of free mobile phone, PC, tablet, notebook four terminal Website thumbnail display diagram online one click to generate website source code
Daily work and study notes