当前位置:网站首页>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 .


边栏推荐
- Check the open source projects of yyds in June!
- What is the difference between immunohistochemistry and immunohistochemistry?
- 深度优先搜索实现抓牛问题
- 企业和IT领导者对创新的误解
- [MCU club] design of GSM version of range hood based on MCU [simulation design]
- Hello i am back
- EasyCVR集群版本替换成老数据库造成的服务崩溃是什么原因?
- 独家分析 | 关于简历和面试
- 最新Justnews主题源码6.0.1开心版+社交问答插件2.3.1+附教程
- EdrawMax思维导图,EdrawMax组织结构图
猜你喜欢

Getting started with SQL

Browser cache library design summary (localstorage/indexeddb)

DO280分配持久性存储

统计学习方法(4/22)朴素贝叶斯

IT治理方面的七个错误,以及如何避免

致我们曾经遇到过的接口问题

独家分析 | 关于简历和面试

How can multidimensional analysis pre summary work?
![[MCU club] design of blind water cup based on MCU [physical design]](/img/06/93d7a8fd97cdccbc639d2a95b10826.jpg)
[MCU club] design of blind water cup based on MCU [physical design]

After easycvr creates a new user, the video access page cannot be clicked. Fix the problem
随机推荐
XML and other file contents in idea cannot be highlighted, and the file becomes gray
肖特基二极管在防止电源反接的作用
Nodejs安装和下载
Advanced Installer Architect创作工具
第七天 脚本与特效
[Architect (Part 38)] locally install the latest version of MySQL database developed by the server
EasyCVR集群版本替换成老数据库造成的服务崩溃是什么原因?
【RRT三维路径规划】基于matlab快速扩展随机树无人机三维路径规划【含Matlab源码 1914期】
Browser cache library design summary (localstorage/indexeddb)
【图像增强】基于matlab人工多重曝光融合AMEF图像去雾【含Matlab源码 1916期】
Magic Quadrant of motianlun's 2021 China Database
With this tool, automatic identification and verification code is no longer a problem
QT is based on RFID Management System (applicable to most RFID Management Systems)
Different subsequence problems I
Large-scale case applications to developing post-click conversion rate estimation with MTL
[image enhancement] manual multiple exposure fusion amef image defogging based on MATLAB [including Matlab source code 1916]
Count the number of different palindrome subsequences in the string
戴口罩人脸数据集和戴口罩人脸生成方法
大厂裁员潮下,测试人员路在何方?
What is the difference between immunohistochemistry and immunohistochemistry?