当前位置:网站首页>Docker installing Oracle_ 11g
Docker installing Oracle_ 11g
2022-07-02 01:12:00 【Behind Changchang's hard training】
Docker install Oracle_11g
1. Pull oracle_11g Mirror image
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
2. establish Oracle_11g Containers
docker run -d -p 1521:1521 --name oracle11g registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
3. see oracle11g Whether the container was created successfully
docker ps -a
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-Qk2yQVBW-1655884196821)(C:\Users\q\AppData\Roaming\Typora\typora-user-images\image-20220621140949246.png)]](/img/86/db610eb556cb793acd88031e226550.png)
4. start-up oracle11g Containers
docker start oracle11g
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-KCT1LJTe-1655884196822)(C:\Users\q\AppData\Roaming\Typora\typora-user-images\image-20220621141057590.png)]](/img/50/43def723e15b07ca87285dbd703a34.png)
5. Get into oracle11g Container configuration
docker exec -it oracle11g bash
6. Switch to root Configure under user
su root
The password for :helowin

7、 edit profile File configuration ORACLE environment variable
vi /etc/profile

8、 Finally, add the following 3 Line configuration
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export ORACLE_SID=helowin
export PATH=$ORACLE_HOME/bin:$PATH

preservation ::wq
Make the configuration work :source /etc/profile
9、 Create a soft connection
ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
10、 Switch to oracle user
su - oracle

11、 Sign in sqlplus And modify it sys、system User password
sqlplus /nolog
conn /as sysdba

12、 modify sys、system User password and refresh permissions
alter user system identified by oracle;
alter user sys identified by oracle;
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

sign out :exit;
13、 Check it out. oracle Instance status
lsnrctl status

14、 use nacivat Connect oracle database
service name :helowin( Be sure to fill in helowin)
password :oracle( The first 12 Step set password )

Be careful : If it is the first time to connect, you need one operation to connect successfully
1. decompression instantclient_**
2. Add environment variables
add to instantclient_** Path to environment variable path. increase path=F:\Program Files\instantclient_11_2 that will do .
ORACLE_HOME=F:\Program Files\instantclient_11_2
LD_LIBRARY_PATH=%ORACLE_HOME%
path=%ORACLE_HOME%
3. stay navicat Middle configuration oci.dll file ( As shown in the figure )
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-EWX2IxuI-1655884196825)(C:\Users\q\AppData\Roaming\Typora\typora-user-images\image-20220621142114696.png)]](/img/44/d2f7ce0d358e298d7a9088d9657932.png)
边栏推荐
- Global and Chinese market of wireless charging magnetic discs 2022-2028: Research Report on technology, participants, trends, market size and share
- Common loss function of deep learning
- SQL injection for Web Security (2)
- 什么是商业养老保险?商业养老保险安全靠谱吗?
- [leetcode] number of maximum consecutive ones
- Viewing and modifying volume group attributes of Aix storage management (II)
- sso单点登录的实现。
- AIX存储管理之卷组的创建(一)
- S32Kxxx bootloader之UDS bootloader
- How to compress video size while adding watermark with one click?
猜你喜欢

测试人进阶技能:单元测试报告应用指南

Creation of volume group for AIX storage management (I)

Weather forecast applet source code weather wechat applet source code

Zak's latest "neural information transmission", with slides and videos

ACM教程 - 快速排序(常规 + 尾递归 + 随机基准数)

How does schedulerx help users solve the problem of distributed task scheduling?

【八大排序③】快速排序(动图演绎Hoare法、挖坑法、前后指针法)

969 interlaced string

About asp Net core uses a small detail of datetime date type parameter

【会议资源】2022年第三届自动化科学与工程国际会议(JCASE 2022)
随机推荐
Day 13 of hcip (relevant contents of BGP agreement)
Global and Chinese market of wireless chipsets 2022-2028: Research Report on technology, participants, trends, market size and share
Sql--- related transactions
Hcip day 14 (MPLS protocol)
970 golang realizes the communication between multithreaded server and client
2022 safety officer-a certificate examination questions and online simulation examination
Source code of Qiwei automatic card issuing system
[eight sorts ④] merge sort, sort not based on comparison (count sort, cardinal sort, bucket sort)
AIX存储管理之总结篇
Variables and constants of go language foundation
SSO single sign on implementation.
If the browser is accidentally closed, how does react cache the forms filled out by users?
Synthetic watermelon game wechat applet source code / wechat game applet source code
Global and Chinese markets for freight and logistics 2022-2028: Research Report on technology, participants, trends, market size and share
S32Kxxx bootloader之UDS bootloader
Powerful calendar wechat applet source code - support the main mode of doing more traffic
sso单点登录的实现。
How to compress video size while adding watermark with one click?
[conference resources] the Third International Conference on Automation Science and Engineering in 2022 (jcase 2022)
Viewing and modifying volume group attributes of Aix storage management (II)