当前位置:网站首页>Installing Oracle database in docker
Installing Oracle database in docker
2022-06-29 01:14:00 【Jaffy】
List of articles
Preface
Landlord installation Oracle My original intention is to learn how to install , Then get some installation experience from it , By the way, if you study Oracle Database related knowledge , So that it won't get stuck in the installation process , The threshold of learning is lowered instantly .
install
1. visit Docker Image warehouse official website

2. Find the corresponding version
# This is quick
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
It may take a little time , Because it's bigger .
If you try to configure the image, you can refer to the description of the image

3. Look at the mirror image
After pulling the image ,docker images Check whether the image is pulled successfully .
docker images

4. start-up Oracle
docker run -d -it -p 1521:1521 \
--name oracle \
--restart=always \
--mount source=oracle_vol,target=/home/oracle/app/oracle/oradata registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
adopt docker ps Check to see if it is already running

Modify file
Enter the container first
docker exec -it oracle /bin/bash
# Switch root user # password :helowin
su root
The first way
load
.bash_profilefile , We can start with an ordercat /home/oracle/.bash_profileCheck the contents , By checking, we can know that it definesORACLE_HOME,ORACLE_SIDConfiguration like that .source /home/oracle/.bash_profileThe second way
modify
/etc/profilefile , take ORACLE_HOME and ORACLE_SID Configure into , Then take effect .vi /etc/profile # Configure the content export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2 export ORACLE_SID=helowin export PATH=$ORACLE_HOME/bin:$PATH # Profile validation source /etc/profile
Create a soft connection
ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
Sign in sqlplus
# Switch back to the oracle user
su oracle
sqlplus /nolog
connect / as sysdba
# modify system Password of account number
alter user system identified by 123456;
# modify sys Password of account number
alter user sys identified by 123456;
Create a user ( Look at yourself )
# Create user
create user jiefei identified by jiefei;
# Grant authority
grant connect,resource,dba to jiefei;
Tool connection
The landlord here uses Navicat Premium Tool connection Oracle Database testing .


边栏推荐
- How many locks are added to an update statement? Take you to understand the underlying principles
- [js practice every m days] JS export object analysis based on libcef application (steam)
- Large-scale case applications to developing post-click conversion rate estimation with MTL
- After easycvr creates a new user, the video access page cannot be clicked. Fix the problem
- Code repetition of reinforcement learning based parameters adaptation method for particlewarn optimization
- Rasa对话机器人之HelpDesk (五)
- 如何进行数据库选型
- 狼人杀休闲游戏微信小程序模板源码/微信小游戏源码
- 《Reinforcement learning based parameters adaption method for particleswarm optimization》代码复现
- To the interface problems we have encountered
猜你喜欢
![[temperature detection] thermal infrared image temperature detection system based on Matlab GUI [including Matlab source code 1920]](/img/b7/95601082e67fd31aab80c35d57f273.png)
[temperature detection] thermal infrared image temperature detection system based on Matlab GUI [including Matlab source code 1920]

Advanced Installer Architect创作工具

BMFONT制作位图字体并在CocosCreator中使用

【图像增强】基于matlab人工多重曝光融合AMEF图像去雾【含Matlab源码 1916期】

分析框架——用户体验度量数据体系搭建

Check the open source projects of yyds in June!

广度度优先搜索实现抓牛问题

After easycvr creates a new user, the video access page cannot be clicked. Fix the problem

The function of Schottky diode in preventing reverse connection of power supply

Exclusive analysis | about resume and interview
随机推荐
mysql数据库修改密码
统计字符串中不同回文子序列的个数
User login (remember the user) & user registration (verification code) [using cookie session technology]
[UVM] my main_ Why can't the case exit when the phase runs out? Too unreasonable!
Notes on the infrastructure of large websites
Nodejs installation and download
Oracle uses sqlloader to prompt sql*loader-406 Import failed but no error was reported
XML and other file contents in idea cannot be highlighted, and the file becomes gray
一条update语句到底加了多少锁?带你深入理解底层原理
FSS object storage how to access the Intranet
Qt est basé sur le système de gestion RFID (peut être appliqué à la plupart des systèmes de gestion RFID)
Different subsequence problems I
流媒体集群应用与配置:如何在一台服务器部署多个EasyCVR?
Linux7 (centos7) setting oracle11 boot auto start
成功解决(机器学习分割数据问题):ModuleNotFoundError: No module named ‘sklearn.cross_validation‘
最大路径和问题(摘樱桃问题)
大厂裁员潮下,测试人员路在何方?
[image processing] image curve adjustment system based on MATLAB
Blazor University (34) forms - get form status
Statistical learning method (2/22) perceptron