当前位置:网站首页>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)
边栏推荐
- The pain of Xiao Sha
- [eight sorts ②] select sort (select sort, heap sort)
- Creating logical volumes and viewing and modifying attributes for AIX storage management
- Hcip day 14 (MPLS protocol)
- Global and Chinese market of ancillary software 2022-2028: Research Report on technology, participants, trends, market size and share
- cookie、session、tooken
- ACM tutorial - quick sort (regular + tail recursion + random benchmark)
- AIX存储管理之总结篇
- 【js通过url下载文件】
- Global and Chinese markets for the application of artificial intelligence in security, public security and national security 2022-2028: Research Report on technology, participants, trends, market size
猜你喜欢

Day 13 of hcip (relevant contents of BGP agreement)

【微信授权登录】uniapp开发小程序,实现获取微信授权登录功能

【八大排序④】归并排序、不基于比较的排序(计数排序、基数排序、桶排序)

Principle of finding combinatorial number and template code

Promise and modular programming

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

Source code of Qiwei automatic card issuing system

SAP ui5 beginner tutorial XXI - trial version of custom formatter of SAP ui5

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

【会议资源】2022年第三届自动化科学与工程国际会议(JCASE 2022)
随机推荐
Basic usage of three JS high-order functions --filter---map---reduce
Global and Chinese market of wireless charging magnetic discs 2022-2028: Research Report on technology, participants, trends, market size and share
Keepalived introduction and installation
Sql--- related transactions
Part 29 supplement (XXIX) basis of ECMAScript
Leetcode 45 Jumping game II (2022.02.14)
[eight sorts ④] merge sort, sort not based on comparison (count sort, cardinal sort, bucket sort)
Datawhale 社区黑板报(第1期)
学习笔记24--多传感器后融合技术
"C zero foundation introduction hundred knowledge hundred examples" (73) anonymous function -- lambda expression
AIX存储管理之卷组属性的查看和修改(二)
ACM tutorial - quick sort (regular + tail recursion + random benchmark)
sso单点登录的实现。
Design and control of multi rotor aircraft (VII) -- sensor calibration and measurement model
Global and Chinese market of picture archiving and communication system (PACS) 2022-2028: Research Report on technology, participants, trends, market size and share
RFID让固定资产盘点更快更准
XMIND mind map
Source code of Qiwei automatic card issuing system
CEPH buffer yyds dry inventory
The concept and application of Cartland number