当前位置:网站首页>Docker deploy Oracle
Docker deploy Oracle
2022-07-07 14:15:00 【Today, the flowers are sad】
1. Pull the mirror image
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
2. Start the container
docker run -d -p 1521:1521 --name oracle11g registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
perform docker ps Command to confirm that the container started successfully
3. To configure , First execute the following command to enter oracle In a container environment :
docker
exec
-it oracle11g bash
Then execute the following command to switch to oracle Database root Under the user ( The password for :helowin)
su root
edit profile file :
vi /etc/profile
Add the following at the end ORACLE Save the environment variable parameters and exit :
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export ORACLE_SID=helowin
export PATH=
$ORACLE_HOME
/bin:
$PATH
Then execute the following command to create a soft connection :
ln -s
$ORACLE_HOME
/bin/sqlplus /usr/bin
Then execute the following command to switch to oracle user :
su - oracle
Then execute the following commands to log in sqlplus:
sqlplus /nolog
conn /
as
sysdba
Executing the following command will system and sys The passwords of the two accounts are set to 123456:
alter user system identified by 123456;
alter user sys identified by 123456;
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
We can also execute the following command to unlock scott user , At the same time, set its password to 123456:
alter user scott account unlock;
alter user scott identified by 123456;
commit;
After configuration , Continuous execution of multiple exit You can exit the container , Return to the host .
Connect the test , We use the client tool to connect this Oracle database ( among SID by helowin), It can be found that the connection is successful :
边栏推荐
- oracle 非自动提交解决
- IP address home location query
- 2022-7-6 beginner redis (I) download, install and run redis under Linux
- Environment configuration
- 常用數字信號編碼之反向不歸零碼碼、曼徹斯特編碼、差分曼徹斯特編碼
- 3D Detection: 3D Box和点云 快速可视化
- Is the spare money in your hand better to fry stocks or buy financial products?
- Social responsibility · value co creation, Zhongguancun network security and Information Industry Alliance dialogue, wechat entrepreneur Haitai Fangyuan, chairman Mr. Jiang Haizhou
- Parameter keywords final, flags, internal, mapping keywords internal
- [untitled]
猜你喜欢
The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)
UML sequence diagram (sequence diagram)
Excerpt from "misogyny: female disgust in Japan"
XML文件的解析操作
常用数字信号编码之反向不归零码码、曼彻斯特编码、差分曼彻斯特编码
Parsing of XML files
一个简单LEGv8处理器的Verilog实现【四】【单周期实现基础知识及模块设计讲解】
2022-7-6 Leetcode27. Remove the element - I haven't done the problem for a long time. It's such an embarrassing day for double pointers
js 获取当前时间 年月日,uniapp定位 小程序打开地图选择地点
Supply chain supply and demand estimation - [time series]
随机推荐
The meaning of variables starting with underscores in PHP
交换机和路由器的异同
属性关键字Aliases,Calculated,Cardinality,ClientName
How does MySQL control the number of replace?
oracle 触发器实现级联更新
Redis can only cache? Too out!
Huawei image address
Laravel form builder uses
Search engine interface
2022-7-6 sigurg is used to receive external data. I don't know why it can't be printed out
PHP中用下划线开头的变量含义
UML state diagram
接口自动化测试-接口间数据依赖问题解决
[AI practice] Application xgboost Xgbregressor builds air quality prediction model (II)
Codes de non - retour à zéro inversés, codes Manchester et codes Manchester différentiels couramment utilisés pour le codage des signaux numériques
杭电oj2054 A == B ? ???
最长上升子序列模型 AcWing 1012. 友好城市
Cargo placement problem
通过 iValueConverter 给datagrid 的背景颜色 动态赋值
AutoCAD - how to input angle dimensions and CAD diameter symbols greater than 180 degrees?