当前位置:网站首页>Installation de la base de données Oracle dans docker
Installation de la base de données Oracle dans docker
2022-06-29 01:13:00 【Jeff!】
Catalogue des articles
Préface
Installation principale du bâtimentOracleL'intention était d'apprendre à installer,Et puis obtenir une certaine expérience d'installation,Au fait, si tu étudies plus tardOracleQuand on connaît la base de données,Au point de ne pas s'accrocher à l'installation,Le seuil d'apprentissage diminue instantanément.
Installation
1.Accès àDockerMiroir du site officiel de l'entrepôt

2.Version correspondante trouvée
#Allez!
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
Ça pourrait prendre un peu de temps,Parce que c'est plus grand..
Si vous essayez de configurer vous - même, vous pouvez vous référer aux instructions de ce miroir

3.Voir le miroir
Après avoir tiré le miroir ,docker images Vérifiez si le miroir a été tiré avec succès .
docker images

4.DémarrageOracle
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
Adoptiondocker ps Voir si elle est déjà en cours d'exécution

Modifier le fichier
Entrez d'abord dans le contenant
docker exec -it oracle /bin/bash
#BasculerrootUtilisateurs #Mot de passe:helowin
su root
La première façon
Chargement
.bash_profileDocumentation, On peut commencer par les ordrescat /home/oracle/.bash_profileRegarde ce qu'il y a dedans , En regardant, nous pouvons voir qu'il y a une définitionORACLE_HOME,ORACLE_SIDCe genre de configuration.source /home/oracle/.bash_profileLa deuxième façon
Modifier
/etc/profileDocumentation,Oui.ORACLE_HOMEEtORACLE_SID Configurer pour , Et ça marche. .vi /etc/profile #Contenu de la configuration export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2 export ORACLE_SID=helowin export PATH=$ORACLE_HOME/bin:$PATH #Profil en vigueur source /etc/profile
Créer une connexion souple
ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
Connexionsqlplus
#Revenir en arrièreoracleUtilisateurs
su oracle
sqlplus /nolog
connect / as sysdba
#ModifiersystemMot de passe pour le compte
alter user system identified by 123456;
#ModifiersysMot de passe pour le compte
alter user sys identified by 123456;
Créer un utilisateur(Regarde - toi.)
#Créer un utilisateur
create user jiefei identified by jiefei;
#Autorisation
grant connect,resource,dba to jiefei;
Connexion des outils
Le propriétaire utilise Navicat PremiumConnexion des outilsOracleBase de données pour les tests.


边栏推荐
- How to mount FSS object storage locally
- Hello i am back
- The latest justnews theme source code 6.0.1 happy version + social Q & a plug-in 2.3.1+ tutorial
- 大厂裁员潮下,测试人员路在何方?
- Flask-SQLAlchemy的基本使用
- Depth first search to realize the problem of catching cattle
- 多维分析预汇总应该怎样做才管用?
- 狼人杀休闲游戏微信小程序模板源码/微信小游戏源码
- [RRT 3D path planning] rapid expansion of random tree UAV 3D path planning based on MATLAB [including Matlab source code phase 1914]
- 戴口罩人脸数据集和戴口罩人脸生成方法
猜你喜欢
![[staff] pedal mark (step on pedal ped mark | release pedal * mark | corresponding pedal command in MIDI | continuous control signal | switch control signal)](/img/2b/e358b22d62ce6d683ed93418ff39fe.jpg)
[staff] pedal mark (step on pedal ped mark | release pedal * mark | corresponding pedal command in MIDI | continuous control signal | switch control signal)

统计学习方法(3/22)K近邻法

【火灾检测】基于matlab GUI森林火灾检测系统(带面板)【含Matlab源码 1921期】

第七天 脚本与特效

多维分析预汇总应该怎样做才管用?

第八天 脚本与音频

戴口罩人脸数据集和戴口罩人脸生成方法

Esmm reading notes

同期群分析是什么?教你用 SQL 来搞定

EasyCVR集群版本替换成老数据库造成的服务崩溃是什么原因?
随机推荐
[UVM] my main_ Why can't the case exit when the phase runs out? Too unreasonable!
It is safer for individuals to choose a securities company to open an account when buying interbank certificates of deposit
免疫组化和免疫组学之间的区别是啥?
SRAM和DRAM之间的异同
Drawing ECG curve with WPF
Is it safe to open a securities account at qiniu business school in 2022?
机构加密资产产品上周流出4.23亿美元资金,创历史新高
What is the difference between the history and Western blotting
DO280分配持久性存储
[MCU club] design of GSM version of range hood based on MCU [physical design]
Is Huatai Securities safe
Linux7 (centos7) setting oracle11 boot auto start
[staff] accent mark, gradually stronger mark and gradually weaker mark
What kind of life is a tester with a monthly salary of over 10000?
狼人杀休闲游戏微信小程序模板源码/微信小游戏源码
GUI Graphical user interface programming example - color selection box
2022_ 2_ 16 the second day of learning C language_ Constant, variable
统计学习方法(4/22)朴素贝叶斯
The function of Schottky diode in preventing reverse connection of power supply
Depth first search to realize the problem of catching cattle